ONE - On-device Neural Engine
|
#include <Shape.h>
Public Member Functions | |
Shape & | operator= (Shape const &)=delete |
Shape () | |
Shape (int dimensions_count) | |
Shape (int shape_size, int32_t value) | |
Shape (int dimensions_count, const int32_t *dims_data) | |
Shape (const std::initializer_list< int > init_list) | |
Shape (Shape const &other) | |
bool | operator== (const Shape &comp) const |
~Shape () | |
int32_t | DimensionsCount () const |
int32_t | Dims (int i) const |
void | SetDim (int i, int32_t val) |
int32_t * | DimsData () |
const int32_t * | DimsData () const |
const int32_t * | DimsDataUpTo4D () const |
void | Resize (int dimensions_count) |
void | ReplaceWith (int dimensions_count, const int32_t *dims_data) |
void | ReplaceWith (const Shape &other) |
void | ReplaceWith (Shape &&other) |
template<typename T > | |
void | BuildFrom (const T &src_iterable) |
void | BuildFrom (const std::initializer_list< int > init_list) |
int | FlatSize () const |
bool | operator!= (const Shape &comp) const |
Static Public Member Functions | |
static Shape | ExtendedShape (int new_shape_size, const Shape &shape) |
Static Public Attributes | |
static constexpr int | kMaxSmallSize = 5 |
|
inline |
|
inlineexplicit |
Definition at line 42 of file Shape.h.
References _dims_pointer, and kMaxSmallSize.
|
inline |
|
inline |
Definition at line 59 of file Shape.h.
References ReplaceWith().
|
inline |
Definition at line 64 of file Shape.h.
References BuildFrom().
|
inline |
Definition at line 68 of file Shape.h.
References _dims_pointer, DimsData(), and kMaxSmallSize.
|
inline |
Definition at line 83 of file Shape.h.
References _dims_pointer, and kMaxSmallSize.
|
inline |
|
inline |
Definition at line 152 of file Shape.h.
References DimsData(), and Resize().
Referenced by Shape().
|
inline |
Definition at line 91 of file Shape.h.
Referenced by nnfw::ruy::checkMatching(), nnfw::ruy::DilatedIm2col(), nnfw::ruy::ExtractPatchIntoBufferColumn(), nnfw::ruy::FlatSizeSkipDim(), nnfw::ruy::FullyConnected(), nnfw::ruy::Im2col(), nnfw::ruy::MatchingFlatSizeSkipDim(), nnfw::ruy::MatchingFlatSizeSkipDim(), nnfw::ruy::Offset(), and ReplaceWith().
|
inline |
Definition at line 92 of file Shape.h.
References _dims, _dims_pointer, and kMaxSmallSize.
Referenced by nnfw::ruy::checkMatching(), nnfw::ruy::DilatedIm2col(), nnfw::ruy::FullyConnected(), nnfw::ruy::Im2col(), nnfw::ruy::MatchingDim(), nnfw::ruy::MatchingDim(), nnfw::ruy::MatchingFlatSizeSkipDim(), and nnfw::ruy::MatchingFlatSizeSkipDim().
|
inline |
Definition at line 112 of file Shape.h.
References _dims, _dims_pointer, and kMaxSmallSize.
Referenced by BuildFrom(), FlatSize(), nnfw::ruy::FlatSizeSkipDim(), onert::backend::ruy::ops::getTensorShape(), operator==(), ReplaceWith(), ReplaceWith(), and Shape().
|
inline |
|
inline |
|
inlinestatic |
|
inline |
Definition at line 181 of file Shape.h.
References DimsData().
Referenced by nnfw::ruy::checkMatching(), nnfw::ruy::FullyConnected(), nnfw::ruy::MatchingElementsSize(), nnfw::ruy::MatchingFlatSize(), nnfw::ruy::Conv::operator()(), and onert::backend::ruy::ops::FullyConnectedLayer::prepare().
|
inline |
|
inline |
Definition at line 77 of file Shape.h.
References DimsData().
|
inline |
Definition at line 137 of file Shape.h.
References DimensionsCount(), DimsData(), and ReplaceWith().
|
inline |
Definition at line 130 of file Shape.h.
References DimsData(), and Resize().
Referenced by ReplaceWith(), and Shape().
|
inline |
Definition at line 142 of file Shape.h.
References _dims, _dims_pointer, kMaxSmallSize, and Resize().
|
inline |
Definition at line 117 of file Shape.h.
References _dims_pointer, and kMaxSmallSize.
Referenced by BuildFrom(), ReplaceWith(), ReplaceWith(), and Shape().
|
inline |
Definition at line 98 of file Shape.h.
References _dims, _dims_pointer, and kMaxSmallSize.
Referenced by Shape().
int32_t nnfw::ruy::Shape::_dims[kMaxSmallSize] |
Definition at line 216 of file Shape.h.
Referenced by Dims(), DimsData(), DimsData(), DimsDataUpTo4D(), ReplaceWith(), and SetDim().
int32_t* nnfw::ruy::Shape::_dims_pointer {nullptr} |
Definition at line 217 of file Shape.h.
Referenced by Dims(), DimsData(), DimsData(), ReplaceWith(), Resize(), SetDim(), Shape(), Shape(), and ~Shape().
|
staticconstexpr |
Definition at line 36 of file Shape.h.
Referenced by Dims(), DimsData(), DimsData(), ReplaceWith(), Resize(), SetDim(), Shape(), Shape(), and ~Shape().