ONE - On-device Neural Engine
|
#include <Tensor.h>
Public Member Functions | |
RuntimeShape (const RuntimeShape &other) | |
int | flatSize () const |
int32_t * | dimsData () |
const int32_t * | dimsData () const |
RuntimeShape () | |
RuntimeShape (int dimensions_count) | |
RuntimeShape (int dimensions_count, const int32_t *dims_data) | |
RuntimeShape (int new_shape_size, const RuntimeShape &shape, int pad_value) | |
RuntimeShape (int shape_size, int32_t value) | |
bool | operator== (const RuntimeShape &comp) const |
int32_t | dimensionsCount () const |
int32_t | dims (int i) const |
void | setDim (int i, int32_t val) |
void | resize (int dimensions_count) |
Static Public Member Functions | |
static RuntimeShape | extendedShape (int new_shape_size, const RuntimeShape &shape) |
|
inline |
Definition at line 38 of file Tensor.h.
References dimsData().
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
Definition at line 74 of file Tensor.h.
References dimensionsCount(), dimsData(), resize(), and setDim().
|
inline |
|
inline |
Definition at line 106 of file Tensor.h.
Referenced by luci_interpreter::kernels::areShapesEqual(), luci_interpreter_pal::ArgMinMax(), luci_interpreter_pal::BatchToSpaceND(), luci_interpreter_pal::Concatenation(), onert_micro::execute::pal::Concatenation(), onert_micro::import::configure_kernel_CircleConv2D(), onert_micro::import::configure_kernel_CircleDepthwiseConv2D(), onert_micro::import::configure_kernel_CircleGRU(), onert_micro::import::configure_kernel_CircleSoftmax(), onert_micro::import::configure_kernel_CircleSVDF(), onert_micro::import::helpers::configure_pooling_kernel_common(), onert_micro::import::helpers::configure_spaces_batches_nd_kernel_common(), luci_interpreter::execute_kernel_CircleAdd(), onert_micro::execute::pal::Floor(), luci_interpreter_pal::Floor(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected< int8_t >(), luci_interpreter_pal::GatherND(), onert_micro::train::pal::GRUWeightGrads(), luci_interpreter_pal::L2Normalization(), luci_interpreter_pal::LogSoftmax(), luci_interpreter_pal::Negate(), luci_interpreter_pal::Offset(), luci_interpreter_pal::ProcessBroadcastShapes(), RuntimeShape(), luci_interpreter_pal::SpaceToBatchND(), onert_micro::execute::pal::Split(), luci_interpreter_pal::TransposeImpl(), and onert_micro::execute::pal::Unpack().
|
inline |
Definition at line 108 of file Tensor.h.
Referenced by luci_interpreter::kernels::areShapesEqual(), luci_interpreter_pal::ArgMinMax(), onert_micro::execute::pal::AveragePool(), onert_micro::execute::pal::AveragePool(), luci_interpreter_pal::AveragePool(), luci_interpreter_pal::AveragePool(), onert_micro::execute::pal::BatchToSpaceND(), luci_interpreter_pal::BatchToSpaceND(), luci_interpreter_pal::BroadcastArithmeticOp4DSlow(), luci_interpreter_pal::BroadcastBinaryOp4DSlow(), luci_interpreter_pal::BroadcastPrelu4DSlowFloat(), luci_interpreter_pal::BroadcastTISO4DSlow(), luci_interpreter_pal::Concatenation(), onert_micro::execute::pal::Concatenation(), onert_micro::import::configure_kernel_CircleDepthwiseConv2D(), onert_micro::import::configure_kernel_CircleGRU(), onert_micro::import::configure_kernel_CircleSpaceToDepth(), onert_micro::import::configure_kernel_CircleSVDF(), onert_micro::import::configure_kernel_CircleUnpack(), onert_micro::execute::pal::ConvFloat(), onert_micro::execute::pal::ConvPerChannel(), luci_interpreter_pal::copyDimsToDesc(), luci_interpreter_pal::DepthToSpace(), onert_micro::execute::pal::DepthwiseConv2D< float >(), onert_micro::execute::pal::DepthwiseConvPerChannel(), luci_interpreter::execute_kernel_CircleAdd(), onert_micro::execute::pal::Floor(), luci_interpreter_pal::Floor(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected< int8_t >(), luci_interpreter_pal::GatherND(), onert_micro::train::pal::GRUWeightGrads(), onert_micro::execute::pal::L2Pool(), luci_interpreter_pal::L2Pool(), luci_interpreter_pal::MatchingDim(), onert_micro::execute::pal::MaxPool(), onert_micro::execute::pal::MaxPool(), luci_interpreter_pal::MaxPool(), luci_interpreter_pal::MaxPool(), luci_interpreter_pal::Mean(), luci_interpreter_pal::Negate(), luci_interpreter_pal::ResizeNearestNeighbor(), onert_micro::execute::pal::SpaceToBatchND(), luci_interpreter_pal::SpaceToBatchND(), luci_interpreter_pal::SpaceToDepth(), onert_micro::execute::pal::Split(), luci_interpreter_pal::StridedSlice(), onert_micro::execute::pal::SVDF(), luci_interpreter_pal::TransposeConv(), onert_micro::execute::pal::TransposeConv< float >(), and onert_micro::execute::pal::Unpack().
|
inline |
Definition at line 56 of file Tensor.h.
Referenced by onert_micro::execute::pal::BatchToSpaceND(), luci_interpreter_pal::BatchToSpaceND(), luci_interpreter_pal::BroadcastPrelu4DSlowFloat(), luci_interpreter_pal::lstm_internal::calculateLstmGate(), luci_interpreter_pal::DepthToSpace(), onert_micro::execute::pal::DepthwiseConv2D< float >(), flatSize(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected(), onert_micro::execute::pal::FullyConnected< int8_t >(), luci_interpreter_pal::L2Normalization(), onert_micro::execute::pal::L2Pool(), luci_interpreter_pal::L2Pool(), luci_interpreter_pal::LogSoftmax(), luci_interpreter_pal::Mean(), luci_interpreter_pal::Offset(), operator==(), RuntimeShape(), RuntimeShape(), RuntimeShape(), onert_micro::execute::pal::SpaceToBatchND(), luci_interpreter_pal::SpaceToBatchND(), onert_micro::execute::pal::SpaceToDepth(), luci_interpreter_pal::SpaceToDepth(), luci_interpreter_pal::TransposeConv(), and onert_micro::execute::pal::TransposeConv< float >().
|
inline |
|
inlinestatic |
Definition at line 95 of file Tensor.h.
References RuntimeShape().
Referenced by luci_interpreter_pal::BroadcastArithmeticOp4DSlow(), luci_interpreter_pal::BroadcastBinaryOp4DSlow(), luci_interpreter_pal::BroadcastPrelu4DSlowFloat(), luci_interpreter_pal::BroadcastTISO4DSlow(), luci_interpreter_pal::BroadcastTo(), luci_interpreter_pal::DepthToSpace(), luci_interpreter_pal::Mean(), luci_interpreter_pal::NdArrayDescsForElementwiseBroadcast(), luci_interpreter_pal::Pad(), luci_interpreter_pal::ProcessBroadcastShapes(), luci_interpreter_pal::ResizeNearestNeighbor(), luci_interpreter_pal::SpaceToDepth(), luci_interpreter_pal::StridedSlice(), and luci_interpreter_pal::TransposeImpl().
|
inline |
Definition at line 45 of file Tensor.h.
References dimsData().
Referenced by luci_interpreter_pal::BroadcastTo(), onert_micro::import::configure_kernel_CircleFullyConnected(), onert_micro::import::configure_kernel_CircleReshape(), luci_interpreter::evalInteger(), luci_interpreter::execute_kernel_CircleAbs(), luci_interpreter::execute_kernel_CircleAdd(), onert_micro::execute::execute_kernel_CircleAdd(), onert_micro::execute::execute_kernel_CircleAddN(), luci_interpreter::execute_kernel_CircleCast(), luci_interpreter::execute_kernel_CircleCeil(), luci_interpreter::execute_kernel_CircleCos(), luci_interpreter::execute_kernel_CircleDequantize(), luci_interpreter::execute_kernel_CircleElu(), luci_interpreter::execute_kernel_CircleExp(), luci_interpreter::execute_kernel_CircleFloorDiv(), luci_interpreter::execute_kernel_CircleFloorMod(), luci_interpreter::execute_kernel_CircleLeakyRelu(), luci_interpreter::execute_kernel_CircleLog(), luci_interpreter::execute_kernel_CircleLogistic(), luci_interpreter::execute_kernel_CircleMaximum(), onert_micro::execute::execute_kernel_CircleMean(), luci_interpreter::execute_kernel_CircleMinimum(), onert_micro::execute::execute_kernel_CircleMul(), luci_interpreter::execute_kernel_CircleQuantize(), luci_interpreter::execute_kernel_CircleRelu(), luci_interpreter::execute_kernel_CircleRelu6(), luci_interpreter::execute_kernel_CircleRound(), luci_interpreter::execute_kernel_CircleRsqrt(), luci_interpreter::execute_kernel_CircleSin(), luci_interpreter::execute_kernel_CircleSqrt(), luci_interpreter::execute_kernel_CircleSquare(), luci_interpreter::execute_kernel_CircleSquaredDifference(), onert_micro::execute::execute_kernel_CircleSum(), luci_interpreter::execute_kernel_CircleTanh(), luci_interpreter::execute_kernel_CircleZerosLike(), onert_micro::execute::pal::Fill(), luci_interpreter_pal::Floor(), luci_interpreter_pal::GatherND(), onert_micro::execute::pal::GRU(), onert_micro::train::pal::GRUWeightGrads(), luci_interpreter_pal::lstm_internal::lstmStep(), luci_interpreter_pal::lstm_internal::mul(), luci_interpreter_pal::lstm_internal::mul(), luci_interpreter_pal::lstm_internal::mul(), luci_interpreter_pal::Negate(), luci_interpreter_pal::ProcessBroadcastShapes(), onert_micro::execute::pal::Select(), luci_interpreter_pal::Select(), luci_interpreter_pal::lstm_internal::sigmoid(), luci_interpreter_pal::lstm_internal::sigmoid(), luci_interpreter_pal::lstm_internal::tanh(), luci_interpreter_pal::lstm_internal::tanh(), luci_interpreter_pal::TransposeConv(), and onert_micro::execute::pal::TransposeConv< float >().
|
inline |
Definition at line 100 of file Tensor.h.
References dimsData().
|
inline |
Definition at line 121 of file Tensor.h.
Referenced by luci_interpreter::kernels::SplitV::configure(), mir_onnx::convertConvV1(), luci_interpreter::kernels::getTensorRuntimeShape(), RuntimeShape(), RuntimeShape(), RuntimeShape(), and nnkit::support::moco::tf::Backend::setInputOutputFromGraph().
|
inline |
Definition at line 114 of file Tensor.h.
Referenced by luci_interpreter::kernels::calculateShapeForBroadcast(), luci_interpreter::execute_kernel_CircleAdd(), luci_interpreter::execute_kernel_CircleReshape(), luci_interpreter::execute_kernel_CircleSlice(), luci_interpreter::kernels::getTensorRuntimeShape(), luci_interpreter::kernels::getTensorShape(), RuntimeShape(), and RuntimeShape().