ONE - On-device Neural Engine
|
#include <ConvolutionSpec.h>
Public Member Functions | |
ConvolutionSpec (const ::caffe::ConvolutionParameter ¶m) | |
uint32_t | ifm_rank (void) const |
uint32_t | ifm_dim (uint32_t axis) const |
uint32_t | group (void) const |
uint32_t | channel_axis (void) const |
uint32_t | num_batch_axes (void) const |
uint32_t | num_spatial_axes (void) const |
uint32_t | pad (uint32_t spatial_axis) const |
uint32_t | stride (uint32_t spatial_axis) const |
uint32_t | ker_dim (uint32_t spatial_axis) const |
const nncc::core::ADT::tensor::Shape & | ifm_shape (void) const |
void | ifm_shape (const nncc::core::ADT::tensor::Shape &shape) |
uint32_t | ker_count (void) const |
nncc::core::ADT::tensor::Shape | ker_shape (void) const |
nncc::core::ADT::tensor::Shape | ofm_shape (void) const |
Definition at line 24 of file ConvolutionSpec.h.
ConvolutionSpec::ConvolutionSpec | ( | const ::caffe::ConvolutionParameter & | param | ) |
Definition at line 23 of file ConvolutionSpec.cpp.
uint32_t ConvolutionSpec::channel_axis | ( | void | ) | const |
Definition at line 32 of file ConvolutionSpec.cpp.
References ShapeQuery::axis(), axis_specifier(), ifm_shape(), and query_on().
Referenced by ker_shape(), num_batch_axes(), and num_spatial_axes().
uint32_t ConvolutionSpec::group | ( | void | ) | const |
Definition at line 30 of file ConvolutionSpec.cpp.
Referenced by ker_shape().
|
inline |
Definition at line 31 of file ConvolutionSpec.h.
References nncc::core::ADT::tensor::Shape::dim().
Referenced by ker_shape(), and ofm_shape().
|
inline |
Definition at line 30 of file ConvolutionSpec.h.
References nncc::core::ADT::tensor::Shape::rank().
Referenced by num_spatial_axes().
|
inline |
Definition at line 46 of file ConvolutionSpec.h.
|
inline |
Definition at line 45 of file ConvolutionSpec.h.
Referenced by caffeimport::ConvolutionBuilder::build(), and channel_axis().
|
inline |
Definition at line 49 of file ConvolutionSpec.h.
Referenced by ker_shape(), and ofm_shape().
uint32_t ConvolutionSpec::ker_dim | ( | uint32_t | spatial_axis | ) | const |
Definition at line 70 of file ConvolutionSpec.cpp.
References num_spatial_axes().
Referenced by ker_shape(), and ofm_shape().
nncc::core::ADT::tensor::Shape ConvolutionSpec::ker_shape | ( | void | ) | const |
Definition at line 103 of file ConvolutionSpec.cpp.
References channel_axis(), nncc::core::ADT::tensor::Shape::dim(), group(), ifm_dim(), ker_count(), ker_dim(), num_spatial_axes(), and nncc::core::ADT::tensor::Shape::resize().
|
inline |
Definition at line 37 of file ConvolutionSpec.h.
References channel_axis().
Referenced by ofm_shape().
|
inline |
Definition at line 38 of file ConvolutionSpec.h.
References channel_axis(), and ifm_rank().
Referenced by ker_dim(), ker_shape(), ofm_shape(), pad(), and stride().
nncc::core::ADT::tensor::Shape ConvolutionSpec::ofm_shape | ( | void | ) | const |
Definition at line 120 of file ConvolutionSpec.cpp.
References nncc::core::ADT::tensor::Shape::dim(), ifm_dim(), ker_count(), ker_dim(), num_batch_axes(), num_spatial_axes(), pad(), nncc::core::ADT::tensor::Shape::resize(), and stride().
uint32_t ConvolutionSpec::pad | ( | uint32_t | spatial_axis | ) | const |
Definition at line 37 of file ConvolutionSpec.cpp.
References build_raw_padding(), build_spatial_padding(), num_spatial_axes(), PaddingBase< Derived >::value(), RawPaddingBuilder::with(), and SpatialPaddingBuilder::with().
Referenced by ofm_shape().
uint32_t ConvolutionSpec::stride | ( | uint32_t | spatial_axis | ) | const |
Definition at line 47 of file ConvolutionSpec.cpp.
References num_spatial_axes().
Referenced by ofm_shape().