ONE - On-device Neural Engine
|
Data Structures | |
struct | Accessor |
class | Buffer |
struct | CHWLayout |
struct | HWCLayout |
class | Layout |
class | Overlay |
struct | Reader |
class | Shape |
class | View |
Functions | |
template<typename T , typename LayoutImpl > | |
Buffer< T > | make_buffer (const Shape &shape) |
template<typename T , typename LayoutImpl > | |
Overlay< T > | make_overlay (const Shape &shape, T *base) |
uint32_t | num_elements (const Shape &shape) |
The number of elements of a feature map of a given shape. | |
bool | operator== (const Shape &l, const Shape &r) |
Buffer< T > nncc::core::ADT::feature::make_buffer | ( | const Shape & | shape | ) |
Definition at line 49 of file Buffer.h.
References make_buffer().
Referenced by make_buffer().
Overlay< T > nncc::core::ADT::feature::make_overlay | ( | const Shape & | shape, |
T * | base | ||
) |
|
inline |
The number of elements of a feature map of a given shape.
WARN The result is valid only when the expected value is less than 2^32 - 1
Definition at line 59 of file Shape.h.
References nncc::core::ADT::feature::Shape::depth(), nncc::core::ADT::feature::Shape::height(), num_elements(), and nncc::core::ADT::feature::Shape::width().
Referenced by coco::FeatureLayouts::BCHW::at(), coco::FeatureLayouts::BHWC::at(), and num_elements().