ONE - On-device Neural Engine
|
Go to the source code of this file.
Data Structures | |
struct | Dims< N > |
Functions | |
Dims< 4 > | convertShapeToDims (const Shape &shape) |
int | Offset (const Dims< 4 > &dims, int i0, int i1, int i2, int i3) |
template<int N> | |
int | ArraySize (const Dims< N > &array, int index) |
template<int N> | |
int | FlatSize (const Dims< N > &dims) |
int | RequiredBufferSizeForDims (const Dims< 4 > &dims) |
template<int N> | |
int | MatchingFlatSize (const Dims< N > &dims, const Dims< N > &check_dims_0) |
template<int N> | |
int | MatchingFlatSize (const Dims< N > &dims, const Dims< N > &check_dims_0, const Dims< N > &check_dims_1) |
template<int N> | |
int | MatchingFlatSize (const Dims< N > &dims, const Dims< N > &check_dims_0, const Dims< N > &check_dims_1, const Dims< N > &check_dims_2) |
template<int N> | |
int | MatchingFlatSize (const Dims< N > &dims, const Dims< N > &check_dims_0, const Dims< N > &check_dims_1, const Dims< N > &check_dims_2, const Dims< N > &check_dims_3) |
template<int N> | |
bool | IsPackedWithoutStrides (const Dims< N > &dims) |
int ArraySize | ( | const Dims< N > & | array, |
int | index | ||
) |
Definition at line 76 of file Dims.h.
References DCHECK, and Dims< N >::sizes.
Referenced by AveragePool(), BroadcastAdd(), BroadcastDiv(), BroadcastMul(), BroadcastSub(), Concatenation(), Conv(), optimized_ops::DepthwiseConv(), FullyConnected(), Im2col(), MatchingArraySize(), MatchingArraySize(), MatchingFlatSize(), MatchingFlatSize(), MatchingFlatSize(), MatchingFlatSize(), MaxPool(), and NdArrayDescsForElementwiseBroadcast().
Definition at line 31 of file Dims.h.
References Shape::dimensions, getSizeOfDimension(), Dims< N >::sizes, and Dims< N >::strides.
Referenced by concatenationFloat32(), padGeneric(), and softmaxFloat32().
|
inline |
Definition at line 83 of file Dims.h.
References Dims< N >::sizes.
Referenced by MatchingFlatSize(), MatchingFlatSize(), and MatchingFlatSize().
bool IsPackedWithoutStrides | ( | const Dims< N > & | dims | ) |
Definition at line 155 of file Dims.h.
References Dims< N >::sizes, and Dims< N >::strides.
Referenced by Add(), Concatenation(), Div(), Im2col(), Mul(), and Sub().
|
inline |
Definition at line 108 of file Dims.h.
References ArraySize(), DCHECK_EQ, and FlatSize().
Referenced by tflite::reference_ops::Dequantize(), onert::backend::cpu::ops::ElementwiseActivationLayer::EvalUsingLookupTable(), tflite::reference_ops::FakeQuant(), MatchingFlatSize(), tflite::reference_ops::Maximum(), tflite::reference_ops::Minimum(), tflite::reference_ops::Pow(), tflite::reference_ops::RankOneSelect(), tflite::reference_ops::Relu(), tflite::reference_ops::Relu1(), tflite::reference_ops::Relu6(), tflite::reference_ops::ReluX(), tflite::reference_ops::ReluX(), onert::backend::cpu::ops::QuantizeLayer::run(), and tflite::reference_ops::Select().
|
inline |
Definition at line 119 of file Dims.h.
References ArraySize(), DCHECK_EQ, and MatchingFlatSize().
|
inline |
Definition at line 131 of file Dims.h.
References ArraySize(), DCHECK_EQ, and FlatSize().
|
inline |
Definition at line 143 of file Dims.h.
References ArraySize(), DCHECK_EQ, and FlatSize().
|
inline |
Definition at line 64 of file Dims.h.
References DCHECK, Dims< N >::sizes, and Dims< N >::strides.
Referenced by AveragePool(), BroadcastAdd(), BroadcastDiv(), BroadcastMul(), tflite::reference_ops::BroadcastPow4DSlow(), tflite::reference_ops::BroadcastSelect4DSlow(), BroadcastSub(), ExtractPatchIntoBufferColumn(), tflite::reference_ops::LstmCell(), MaxPool(), tflite::reference_ops::Slice(), and tflite::reference_ops::SparseToDense().
|
inline |
Definition at line 94 of file Dims.h.
References Dims< N >::sizes, and Dims< N >::strides.
Referenced by MapAsVector().