ONE - On-device Neural Engine
|
#include <NodeShape.h>
Public Member Functions | |
NodeShape ()=default | |
NodeShape (const BiasShape &shape) | |
NodeShape (const DepthwiseFilterShape &shape) | |
NodeShape (const FeatureShape &shape) | |
NodeShape (const FilterShape &shape) | |
NodeShape (const MatrixShape &shape) | |
NodeShape (const TensorShape &shape) | |
const Domain & | domain (void) const |
void | set (const BiasShape &) |
void | set (const DepthwiseFilterShape &) |
void | set (const FeatureShape &) |
void | set (const FilterShape &) |
void | set (const MatrixShape &) |
void | set (const TensorShape &) |
template<typename ShapeType > | |
ShapeType | as (void) const |
template<> | |
BiasShape | as (void) const |
template<> | |
DepthwiseFilterShape | as (void) const |
template<> | |
FeatureShape | as (void) const |
template<> | |
FilterShape | as (void) const |
template<> | |
MatrixShape | as (void) const |
template<> | |
TensorShape | as (void) const |
Definition at line 34 of file NodeShape.h.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ShapeType loco::NodeShape::as | ( | void | ) | const |
Referenced by moco::as_feature_shape(), exo::Conv2DConverter::convert(), exo::DepthwiseConv2DConverter::convert(), exo::MatMulConverter::convert(), exo::TensorTransposeConverter::convert(), exo::TransposedConv2DConverter::convert(), luci::CircleShapeInferenceRule::infer(), loco::operator==(), exo::to_shape_description(), luci::to_shape_description(), luci::sinf::Algorithm::visit(), and luci::sinf::Algorithm::visit().
BiasShape loco::NodeShape::as | ( | void | ) | const |
Definition at line 36 of file NodeShape.cpp.
References loco::Bias, and loco::BiasShape::length().
DepthwiseFilterShape loco::NodeShape::as | ( | void | ) | const |
Definition at line 66 of file NodeShape.cpp.
References loco::DepthwiseFilterShape::depth(), loco::DepthwiseFilter, loco::DepthwiseFilterShape::height(), loco::DepthwiseFilterShape::multiplier(), and loco::DepthwiseFilterShape::width().
FeatureShape loco::NodeShape::as | ( | void | ) | const |
Definition at line 99 of file NodeShape.cpp.
References loco::FeatureShape::count(), loco::FeatureShape::depth(), loco::Feature, loco::FeatureShape::height(), and loco::FeatureShape::width().
FilterShape loco::NodeShape::as | ( | void | ) | const |
Definition at line 132 of file NodeShape.cpp.
References loco::FilterShape::count(), loco::FilterShape::depth(), loco::Filter, loco::FilterShape::height(), and loco::FilterShape::width().
MatrixShape loco::NodeShape::as | ( | void | ) | const |
Definition at line 163 of file NodeShape.cpp.
References loco::MatrixShape::height(), loco::Matrix, and loco::MatrixShape::width().
TensorShape loco::NodeShape::as | ( | void | ) | const |
Definition at line 194 of file NodeShape.cpp.
References loco::TensorShape::dim(), loco::TensorShape::rank(), and loco::Tensor.
|
inline |
Definition at line 48 of file NodeShape.h.
Referenced by moco::as_feature_shape(), exo::FeatureBiasAddConverter::convert(), locop::FormattedGraphImpl< Formatter::LinearV1 >::dump(), locoex::COpShapeInferenceRule::infer(), moco::node_shape(), loco::operator==(), exo::to_shape_description(), and luci::to_shape_description().
void loco::NodeShape::set | ( | const BiasShape & | shape | ) |
Definition at line 28 of file NodeShape.cpp.
References loco::Bias, and loco::BiasShape::length().
Referenced by locoex::COpShapeInferenceRule::infer(), NodeShape(), NodeShape(), NodeShape(), NodeShape(), NodeShape(), and NodeShape().
void loco::NodeShape::set | ( | const DepthwiseFilterShape & | shape | ) |
Definition at line 55 of file NodeShape.cpp.
References loco::DepthwiseFilterShape::depth(), loco::DepthwiseFilter, loco::DepthwiseFilterShape::height(), loco::DepthwiseFilterShape::multiplier(), and loco::DepthwiseFilterShape::width().
void loco::NodeShape::set | ( | const FeatureShape & | shape | ) |
Definition at line 88 of file NodeShape.cpp.
References loco::FeatureShape::count(), loco::FeatureShape::depth(), loco::Feature, loco::FeatureShape::height(), and loco::FeatureShape::width().
void loco::NodeShape::set | ( | const FilterShape & | shape | ) |
Definition at line 121 of file NodeShape.cpp.
References loco::FilterShape::count(), loco::FilterShape::depth(), loco::Filter, loco::FilterShape::height(), and loco::FilterShape::width().
void loco::NodeShape::set | ( | const MatrixShape & | shape | ) |
Definition at line 154 of file NodeShape.cpp.
References loco::MatrixShape::height(), loco::Matrix, and loco::MatrixShape::width().
void loco::NodeShape::set | ( | const TensorShape & | shape | ) |
Definition at line 183 of file NodeShape.cpp.
References loco::TensorShape::dim(), loco::TensorShape::rank(), and loco::Tensor.