ONE - On-device Neural Engine
|
#include <Tensor.h>
Public Member Functions | |
Tensor (const TensorVariant &t) | |
T | at (const Index &id) const |
T & | at (const Index &id) |
T | atOffset (int32_t offset) const |
T & | atOffset (int32_t offset) |
ExternalRegion< T > | getRegion (const Index &idx) |
const Shape & | getShape () const |
|
inlineexplicit |
|
inline |
|
inline |
Definition at line 31 of file Tensor.h.
References mir::TensorVariant::at().
Referenced by mir_caffe::CaffeOpCreator::convertBatchNorm(), mir_onnx::convertBatchNormalizationV9(), mir_tflite::TFLiteOpCreator::convertPad(), mir_caffe2::Caffe2OpCreator::convertReshape(), mir_onnx::convertReshapeV5(), mir_tflite::TFLiteOpCreator::convertResizeNearestNeighbor(), mir_caffe2::Caffe2OpCreator::convertSpatialBN(), mir_interpreter::Dequantize(), mir_interpreter::Quantize(), mir_interpreter::AvgPool2DImpl< uint8_t >::run(), mir_interpreter::AvgPool2DImpl< T >::run(), mir_interpreter::DepthwiseConv2DImpl< T >::run(), mir_interpreter::DepthwiseConv2DImpl< uint8_t >::run(), mir_interpreter::ELUImpl< T >::run(), mir_interpreter::LeakyReLUImpl< T >::run(), mir_interpreter::CappedReLUImpl< T >::run(), mir_interpreter::CappedReLUImpl< uint8_t >::run(), mir_interpreter::SoftmaxImpl< T >::run(), mir_interpreter::AbsImpl< T >::run(), mir_interpreter::ReLUImpl< T >::run(), mir_interpreter::SigmoidImpl< T >::run(), mir_interpreter::SqrtImpl< T >::run(), mir_interpreter::TanhImpl< T >::run(), mir_interpreter::MaxPool2DImpl< uint8_t >::run(), mir_interpreter::MaxPool2DImpl< T >::run(), mir_interpreter::PadImpl< T >::run(), mir_interpreter::ReduceMeanImpl< T >::run(), mir_interpreter::FullyConnectedImpl< T >::run(), mir_interpreter::Conv2DImpl< uint8_t >::run(), mir_interpreter::AddImpl< T >::run(), mir_interpreter::AddImpl< uint8_t >::run(), mir_interpreter::DivImpl< T >::run(), mir_interpreter::EqualImpl< T >::run(), mir_interpreter::GreaterImpl< T >::run(), mir_interpreter::LessImpl< T >::run(), mir_interpreter::MaxImpl< T >::run(), mir_interpreter::MulImpl< T >::run(), mir_interpreter::SubImpl< T >::run(), and mir_interpreter::FillImpl< T >::run().
|
inline |
|
inline |
Definition at line 35 of file Tensor.h.
References mir::TensorVariant::atOffset(), and offset().
Referenced by mir_interpreter::GatherImpl< T, IndicesT >::run().
|
inline |
Definition at line 39 of file Tensor.h.
References mir::TensorVariant::at(), mir::Index::at(), mir::Shape::dim(), mir::Tensor< T >::getShape(), and mir::Shape::rank().
|
inline |
Definition at line 48 of file Tensor.h.
References mir::TensorVariant::getShape().
Referenced by mir_caffe::CaffeOpCreator::convertBatchNorm(), mir_onnx::convertBatchNormalizationV9(), mir_caffe2::Caffe2OpCreator::convertReshape(), mir_caffe2::Caffe2OpCreator::convertSpatialBN(), mir::Tensor< T >::getRegion(), and mir_interpreter::PadImpl< T >::run().