|
ONE - On-device Neural Engine
|
Data Structures | |
| struct | Accessor |
| class | Buffer |
| class | IndexEnumerator |
| class | Layout |
| struct | NCHWLayout |
| struct | NHWCLayout |
| class | Overlay |
| struct | OverlayFactory |
| struct | Reader |
| class | Shape |
| struct | View |
| class | ViewImpl |
Functions | |
| template<typename T , typename LayoutImpl > | |
| Buffer< T > | make_buffer (const Shape &shape) |
| template<typename T , typename LayoutImpl > | |
| Overlay< T, T * > | make_overlay (const Shape &shape, T *base) |
| uint32_t | num_elements (const Shape &shape) |
| Return the number of elements in a kernel of a given shape. | |
| bool | operator== (const Shape &lhs, const Shape &rhs) |
| Buffer< T > nncc::core::ADT::kernel::make_buffer | ( | const Shape & | shape | ) |
| Overlay< T, T * > nncc::core::ADT::kernel::make_overlay | ( | const Shape & | shape, |
| T * | base | ||
| ) |
Definition at line 71 of file Overlay.h.
References nncc::core::ADT::kernel::OverlayFactory< T, LayoutImpl >::make().
Referenced by ConvBackend::ConvBackend().
|
inline |
Return the number of elements in a kernel of a given shape.
WARN The result is valid only when the expected value is less than 2^32 - 1
Definition at line 61 of file Shape.h.
References nncc::core::ADT::kernel::Shape::count(), nncc::core::ADT::kernel::Shape::depth(), nncc::core::ADT::kernel::Shape::height(), and nncc::core::ADT::kernel::Shape::width().
Referenced by ConvBackend::ConvBackend().