ONE - On-device Neural Engine
|
Data Structures | |
class | AclActivationBuilder |
class | AclBackendContext |
class | AclConstantInitializer |
class | AclFunction |
class | AclInternalBufferManager |
class for InternalBufferManager which has arm_compute::IMemoryManager pointer More... | |
class | AclLinearMemoryManager |
class | AclMemoryManager |
class | AclSubTensorAnalyzer |
Class to analyze tensor subsumption. More... | |
class | AclTensorBuilder |
class | AclTensorManager |
class | AclTensorRegistry |
Tensor registry class for acl backends. More... | |
class | ARMComputeAxis |
class | IACLTensor |
Class representing Tensor for ACL. More... | |
struct | IInternalBufferManager |
Interface for InternalBufferManager which has arm_compute::IMemoryManager pointer. More... | |
Typedefs | |
using | float16 = uint16_t |
Functions | |
template<typename T > | |
void | copyInit (const onert::ir::Operand &model_obj, onert::backend::ITensor &obj) |
template<typename T > | |
void | initReverseOrder (const ir::Operand &model_obj, backend::ITensor &obj) |
void | enableDimCorrection (IACLTensor *tensor) |
void | disableDimCorrection (IACLTensor *tensor) |
template<typename Layer , typename... Args> | |
std::unique_ptr< arm_compute::IFunction > | generateLayer (Args &&...args) |
template<typename Layer , typename... Args> | |
std::unique_ptr< arm_compute::IFunction > | generateLayer (std::shared_ptr< arm_compute::IMemoryManager > memory_manager, Args &&...args) |
template<typename T_FunctionWrapper , typename T_Tensor , typename T_ACLLayer , typename T_TensorRegistry > | |
std::unique_ptr< exec::IFunction > | kernelGenLSTM (const ir::operation::LSTM &node, const ir::Operands &operands, const std::shared_ptr< T_TensorRegistry > &tensor_reg) |
template<typename T_FunctionWrapper , typename T_Tensor , typename T_ACLLayer , typename T_TensorBuilder , typename T_TensorRegistry > | |
std::unique_ptr< exec::IFunction > | kernelGenFullyConnected (const ir::operation::FullyConnected &node, const ir::Operands &operands, const std::shared_ptr< T_TensorBuilder > &tensor_builder, const std::shared_ptr< T_TensorRegistry > &tensor_reg) |
template<typename T_ACLLayer , typename T_PoolOp , typename T_AclTensorRegistry > | |
std::unique_ptr<::arm_compute::IFunction > | kernelGenPool2D (const T_PoolOp &node, const ir::Operands &operands, const std::shared_ptr< T_AclTensorRegistry > &tensor_reg, ::arm_compute::PoolingType pooling_type) |
template<typename T_MemoryManager , typename T_PoolManager , typename T_LifetimeManager > | |
std::shared_ptr< T_MemoryManager > | createMemoryManager () |
::arm_compute::TensorShape | asTensorShape (const ir::Shape &shape, bool apply_dim_correction) |
::arm_compute::Coordinates | asTensorCoordinate (const ir::Coordinates &coord) |
::arm_compute::DataType | asDataType (const ir::DataType type) |
::arm_compute::QuantizationInfo | asQuantizationInfo (const float scale, const int32_t offset) |
::arm_compute::TensorInfo | asTensorInfo (const ir::Shape &shape, const ir::TypeInfo &typeInfo, bool apply_dim_correction) |
::arm_compute::PadStrideInfo | asPadStrideInfo (const ir::ExplicitPadding &padding, const ir::Stride &stride) |
::arm_compute::ActivationLayerInfo | asActivationLayerInfo (const ir::Activation act_code) |
::arm_compute::ActivationLayerInfo | asActivationLayerInfo (const ir::operation::ElementwiseActivation::Type op_type, float alpha, float beta) |
arm_compute::Coordinates | asCoordinates (const ir::Operand &operand, int32_t rank) |
std::set< uint32_t > | asSet (const ir::Operand &operand, int32_t rank) |
std::unique_ptr< AclFunction > | asAclFunction (std::unique_ptr<::arm_compute::IFunction > &&layer) |
ir::DataType | asRuntimeDataType (::arm_compute::DataType data_type) |
arm_compute::PoolingType | convertPoolType (ir::operation::Pool2D::PoolType pool_type_ir) |
arm_compute::ReductionOperation | convertReduceType (ir::operation::Reduce::ReduceType reduce_type_ir) |
arm_compute::PixelValue | asPixelValue (const ir::Operand &operand) |
arm_compute::Size2D | asDilation (uint32_t dilation_width, uint32_t dilation_height) |
template<typename T_Function > | |
std::unique_ptr< T_Function > | asFunction (std::unique_ptr<::arm_compute::IFunction > &&fn) |
ARMComputeAxis | ToARMComputeAxis (uint32_t rank, uint32_t axis) |
inline ::arm_compute::Coordinates | getARMComputeAxises (uint32_t rank) |
inline ::arm_compute::PermutationVector | getARMComputePermutationVector (uint32_t rank, const std::vector< int32_t > runtime_pv) |
template<typename T > | |
T | ReorderBits (T in, size_t numOfBits) |
using onert::backend::acl_common::float16 = typedef uint16_t |
Definition at line 121 of file AclConstantInitializer.cc.
std::unique_ptr< AclFunction > onert::backend::acl_common::asAclFunction | ( | std::unique_ptr<::arm_compute::IFunction > && | layer | ) |
Definition at line 250 of file Convert.cc.
arm_compute::ActivationLayerInfo onert::backend::acl_common::asActivationLayerInfo | ( | const ir::Activation | act_code | ) |
Definition at line 135 of file Convert.cc.
References onert::ir::NONE, onert::ir::RELU, onert::ir::RELU1, onert::ir::RELU6, onert::ir::SIGMOID, and onert::ir::TANH.
Referenced by kernelGenLSTM().
arm_compute::ActivationLayerInfo onert::backend::acl_common::asActivationLayerInfo | ( | const ir::operation::ElementwiseActivation::Type | op_type, |
float | alpha, | ||
float | beta | ||
) |
Definition at line 168 of file Convert.cc.
References onert::ir::operation::ElementwiseActivation::infinity, onert::ir::operation::ElementwiseActivation::LEAKY_RELU, onert::ir::operation::ElementwiseActivation::LOGISTIC, onert::ir::operation::ElementwiseActivation::RELU, and onert::ir::operation::ElementwiseActivation::TANH.
arm_compute::Coordinates onert::backend::acl_common::asCoordinates | ( | const ir::Operand & | operand, |
int32_t | rank | ||
) |
Definition at line 211 of file Convert.cc.
References asSet().
arm_compute::DataType onert::backend::acl_common::asDataType | ( | const ir::DataType | type | ) |
Definition at line 75 of file Convert.cc.
Referenced by asTensorInfo().
arm_compute::Size2D onert::backend::acl_common::asDilation | ( | uint32_t | dilation_width, |
uint32_t | dilation_height | ||
) |
Definition at line 334 of file Convert.cc.
std::unique_ptr< T_Function > onert::backend::acl_common::asFunction | ( | std::unique_ptr<::arm_compute::IFunction > && | fn | ) |
arm_compute::PadStrideInfo onert::backend::acl_common::asPadStrideInfo | ( | const ir::ExplicitPadding & | padding, |
const ir::Stride & | stride | ||
) |
Definition at line 123 of file Convert.cc.
References onert::ir::ExplicitPadding::bottom, onert::ir::Stride::horizontal, onert::ir::ExplicitPadding::left, onert::ir::ExplicitPadding::right, onert::ir::ExplicitPadding::top, and onert::ir::Stride::vertical.
Referenced by kernelGenPool2D().
arm_compute::PixelValue onert::backend::acl_common::asPixelValue | ( | const ir::Operand & | operand | ) |
Definition at line 313 of file Convert.cc.
References onert::ir::Operand::asScalar(), onert::ir::Operand::isConstant(), onert::ir::Operand::shape(), onert::ir::TypeInfo::type(), and onert::ir::Operand::typeInfo().
::arm_compute::QuantizationInfo onert::backend::acl_common::asQuantizationInfo | ( | const float | scale, |
const int32_t | offset | ||
) |
Definition at line 108 of file Convert.cc.
References offset().
Referenced by asTensorInfo().
ir::DataType onert::backend::acl_common::asRuntimeDataType | ( | ::arm_compute::DataType | data_type | ) |
Definition at line 255 of file Convert.cc.
Referenced by onert::backend::acl_common::IACLTensor::data_type().
std::set< uint32_t > onert::backend::acl_common::asSet | ( | const ir::Operand & | operand, |
int32_t | rank | ||
) |
Definition at line 224 of file Convert.cc.
References onert::ir::Operand::data(), onert::ir::Operand::shape(), ToARMComputeAxis(), onert::ir::TypeInfo::type(), and onert::ir::Operand::typeInfo().
Referenced by asCoordinates().
arm_compute::Coordinates onert::backend::acl_common::asTensorCoordinate | ( | const ir::Coordinates & | coord | ) |
Definition at line 59 of file Convert.cc.
References onert::ir::Coordinates::size(), and ToARMComputeAxis().
arm_compute::TensorInfo onert::backend::acl_common::asTensorInfo | ( | const ir::Shape & | shape, |
const ir::TypeInfo & | typeInfo, | ||
bool | apply_dim_correction | ||
) |
Definition at line 113 of file Convert.cc.
References asDataType(), asQuantizationInfo(), asTensorShape(), info, onert::ir::TypeInfo::scale(), onert::ir::TypeInfo::type(), and onert::ir::TypeInfo::zero_point().
arm_compute::TensorShape onert::backend::acl_common::asTensorShape | ( | const ir::Shape & | shape, |
bool | apply_dim_correction | ||
) |
Definition at line 31 of file Convert.cc.
References loco::TensorShape::dim(), loco::TensorShape::rank(), and ToARMComputeAxis().
Referenced by asTensorInfo(), and kernelGenFullyConnected().
arm_compute::PoolingType onert::backend::acl_common::convertPoolType | ( | ir::operation::Pool2D::PoolType | pool_type_ir | ) |
Definition at line 283 of file Convert.cc.
References onert::ir::operation::Pool2D::AVG, onert::ir::operation::Pool2D::L2, and onert::ir::operation::Pool2D::MAX.
arm_compute::ReductionOperation onert::backend::acl_common::convertReduceType | ( | ir::operation::Reduce::ReduceType | reduce_type_ir | ) |
Definition at line 298 of file Convert.cc.
References onert::ir::operation::Reduce::MAX, onert::ir::operation::Reduce::MIN, and onert::ir::operation::Reduce::SUM.
void onert::backend::acl_common::copyInit | ( | const onert::ir::Operand & | model_obj, |
onert::backend::ITensor & | obj | ||
) |
Definition at line 127 of file AclConstantInitializer.h.
std::shared_ptr< T_MemoryManager > onert::backend::acl_common::createMemoryManager | ( | ) |
Definition at line 34 of file AclLinearMemoryManager.h.
void onert::backend::acl_common::disableDimCorrection | ( | IACLTensor * | tensor | ) |
Definition at line 40 of file AclKernelGen.h.
void onert::backend::acl_common::enableDimCorrection | ( | IACLTensor * | tensor | ) |
Definition at line 33 of file AclKernelGen.h.
std::unique_ptr< arm_compute::IFunction > onert::backend::acl_common::generateLayer | ( | Args &&... | args | ) |
Definition at line 48 of file AclKernelGen.h.
std::unique_ptr< arm_compute::IFunction > onert::backend::acl_common::generateLayer | ( | std::shared_ptr< arm_compute::IMemoryManager > | memory_manager, |
Args &&... | args | ||
) |
Definition at line 59 of file AclKernelGen.h.
inline ::arm_compute::Coordinates onert::backend::acl_common::getARMComputeAxises | ( | uint32_t | rank | ) |
Definition at line 56 of file Swizzle.h.
References ToARMComputeAxis().
Referenced by getARMComputePermutationVector().
inline ::arm_compute::PermutationVector onert::backend::acl_common::getARMComputePermutationVector | ( | uint32_t | rank, |
const std::vector< int32_t > | runtime_pv | ||
) |
Definition at line 72 of file Swizzle.h.
References getARMComputeAxises(), ToARMComputeAxis(), and onert::backend::acl_common::ARMComputeAxis::value().
void onert::backend::acl_common::initReverseOrder | ( | const ir::Operand & | model_obj, |
backend::ITensor & | obj | ||
) |
Definition at line 133 of file AclConstantInitializer.h.
References onert::ir::Operand::data(), and onert::ir::Operand::shape().
std::unique_ptr< exec::IFunction > onert::backend::acl_common::kernelGenFullyConnected | ( | const ir::operation::FullyConnected & | node, |
const ir::Operands & | operands, | ||
const std::shared_ptr< T_TensorBuilder > & | tensor_builder, | ||
const std::shared_ptr< T_TensorRegistry > & | tensor_reg | ||
) |
Definition at line 228 of file AclKernelGen.h.
References asTensorShape(), onert::util::ObjectManager< Index, Object >::at(), onert::ir::OperandIndexSequence::at(), onert::ir::Operation::getInputs(), and onert::ir::Operation::getOutputs().
std::unique_ptr< exec::IFunction > onert::backend::acl_common::kernelGenLSTM | ( | const ir::operation::LSTM & | node, |
const ir::Operands & | operands, | ||
const std::shared_ptr< T_TensorRegistry > & | tensor_reg | ||
) |
Definition at line 70 of file AclKernelGen.h.
References onert::ir::operation::LSTM::Param::activation, asActivationLayerInfo(), onert::util::ObjectManager< Index, Object >::at(), onert::ir::OperandIndexSequence::at(), onert::ir::operation::LSTM::CELL_BIAS, onert::ir::operation::LSTM::CELL_STATE_IN, onert::ir::operation::LSTM::CELL_STATE_OUT, onert::ir::operation::LSTM::Param::cell_threshold, onert::ir::operation::LSTM::CELL_TO_FORGET_WEIGHTS, onert::ir::operation::LSTM::CELL_TO_INPUT_WEIGHTS, onert::ir::operation::LSTM::CELL_TO_OUTPUT_WEIGHTS, onert::ir::operation::LSTM::FORGET_GATE_BIAS, onert::ir::Operation::getInputs(), onert::ir::Operation::getOutputs(), onert::ir::operation::LSTM::INPUT, onert::ir::operation::LSTM::INPUT_GATE_BIAS, onert::ir::operation::LSTM::INPUT_TO_CELL_WEIGHTS, onert::ir::operation::LSTM::INPUT_TO_FORGET_WEIGHTS, onert::ir::operation::LSTM::INPUT_TO_INPUT_WEIGHTS, onert::ir::operation::LSTM::INPUT_TO_OUTPUT_WEIGHTS, onert::ir::operation::LSTM::OUTPUT, onert::ir::operation::LSTM::OUTPUT_GATE_BIAS, onert::ir::operation::LSTM::OUTPUT_STATE_IN, onert::ir::operation::LSTM::OUTPUT_STATE_OUT, onert::ir::operation::LSTM::param(), onert::ir::operation::LSTM::PROJECTION_BIAS, onert::ir::operation::LSTM::Param::projection_threshold, onert::ir::operation::LSTM::PROJECTION_WEIGHTS, onert::ir::operation::LSTM::RECURRENT_TO_CELL_WEIGHTS, onert::ir::operation::LSTM::RECURRENT_TO_FORGET_WEIGHTS, onert::ir::operation::LSTM::RECURRENT_TO_INPUT_WEIGHTS, onert::ir::operation::LSTM::RECURRENT_TO_OUTPUT_WEIGHTS, and onert::ir::operation::LSTM::SCRATCH_BUFFER.
std::unique_ptr<::arm_compute::IFunction > onert::backend::acl_common::kernelGenPool2D | ( | const T_PoolOp & | node, |
const ir::Operands & | operands, | ||
const std::shared_ptr< T_AclTensorRegistry > & | tensor_reg, | ||
::arm_compute::PoolingType | pooling_type | ||
) |
Definition at line 292 of file AclKernelGen.h.
References asPadStrideInfo(), onert::util::ObjectManager< Index, Object >::at(), onert::ir::calculatePadding(), info, and VERBOSE.
|
inline |
Definition at line 93 of file Swizzle.h.
References ToARMComputeAxis(), and onert::backend::acl_common::ARMComputeAxis::value().
|
inline |
Definition at line 49 of file Swizzle.h.
Referenced by asSet(), asTensorCoordinate(), asTensorShape(), getARMComputeAxises(), getARMComputePermutationVector(), ReorderBits(), and onert::backend::acl_cl::ConstantInitializer::visit().