ONE - On-device Neural Engine
|
A wrapper class that allows additional queries over tensor shape. More...
#include <ShapeQuery.h>
Public Member Functions | |
ShapeQuery (const nncc::core::ADT::tensor::Shape *shape) | |
uint32_t | axis (const AxisSpecifier &) const |
Return the dimension number (axis) specified by a given axis specifier. | |
A wrapper class that allows additional queries over tensor shape.
Definition at line 57 of file ShapeQuery.h.
|
inlineexplicit |
Definition at line 60 of file ShapeQuery.h.
uint32_t ShapeQuery::axis | ( | const AxisSpecifier & | specifier | ) | const |
Return the dimension number (axis) specified by a given axis specifier.
Definition at line 29 of file ShapeQuery.cpp.
References nncc::core::ADT::tensor::Shape::rank(), and AxisSpecifier::value().
Referenced by ConvolutionSpec::channel_axis().