ONE - On-device Neural Engine
|
#include <PoolingSpec.h>
Public Member Functions | |
PoolingSpec (const ::caffe::PoolingParameter ¶m) | |
const nncc::core::ADT::tensor::Shape & | ifm_shape (void) const |
void | ifm_shape (const nncc::core::ADT::tensor::Shape &shape) |
PoolingMethod | method (void) const |
uint32_t | window_height (void) const |
uint32_t | window_width (void) const |
uint32_t | vertical_pad (void) const |
uint32_t | horizontal_pad (void) const |
uint32_t | vertical_stride (void) const |
uint32_t | horizontal_stride (void) const |
nncc::core::ADT::tensor::Shape | ofm_shape (void) const |
Definition at line 30 of file PoolingSpec.h.
PoolingSpec::PoolingSpec | ( | const ::caffe::PoolingParameter & | param | ) |
Definition at line 23 of file PoolingSpec.cpp.
uint32_t PoolingSpec::horizontal_pad | ( | void | ) | const |
Definition at line 87 of file PoolingSpec.cpp.
References build_raw_padding(), build_spatial_padding(), PaddingBase< Derived >::value(), RawPaddingBuilder::with(), and SpatialPaddingBuilder::with().
Referenced by ofm_shape().
uint32_t PoolingSpec::horizontal_stride | ( | void | ) | const |
Definition at line 111 of file PoolingSpec.cpp.
Referenced by ofm_shape().
|
inline |
Definition at line 37 of file PoolingSpec.h.
|
inline |
Definition at line 36 of file PoolingSpec.h.
Referenced by caffeimport::PoolingBuilder::build().
PoolingMethod PoolingSpec::method | ( | void | ) | const |
Definition at line 28 of file PoolingSpec.cpp.
nncc::core::ADT::tensor::Shape PoolingSpec::ofm_shape | ( | void | ) | const |
Definition at line 126 of file PoolingSpec.cpp.
References nncc::core::ADT::tensor::Shape::dim(), horizontal_pad(), horizontal_stride(), nncc::core::ADT::tensor::Shape::rank(), nncc::core::ADT::tensor::Shape::resize(), vertical_pad(), vertical_stride(), window_height(), and window_width().
uint32_t PoolingSpec::vertical_pad | ( | void | ) | const |
Definition at line 78 of file PoolingSpec.cpp.
References build_raw_padding(), build_spatial_padding(), PaddingBase< Derived >::value(), RawPaddingBuilder::with(), and SpatialPaddingBuilder::with().
Referenced by ofm_shape().
uint32_t PoolingSpec::vertical_stride | ( | void | ) | const |
Definition at line 96 of file PoolingSpec.cpp.
Referenced by ofm_shape().
uint32_t PoolingSpec::window_height | ( | void | ) | const |
Definition at line 48 of file PoolingSpec.cpp.
Referenced by ofm_shape().
uint32_t PoolingSpec::window_width | ( | void | ) | const |
Definition at line 63 of file PoolingSpec.cpp.
Referenced by ofm_shape().