19 static inline int CanonicalAxis(
const int axis,
const int rank) {
26 static inline int SizeToAxis(
const int axis,
const std::vector<int64_t>& dims) {
28 for (
int i = 0; i < axis; i++) {
34 static inline int SizeFromAxis(
const int axis,
35 const std::vector<int64_t>& dims) {
37 for (
int i = axis; i < dims.size(); i++) {
43 static inline int SizeOutAxis(
const int axis,
44 const std::vector<int64_t>& dims) {
46 for (
int i = axis + 1; i < dims.size(); i++) {
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16