17#ifndef __ONERT_BACKEND_ACL_COMMON_CONVERT_H__
18#define __ONERT_BACKEND_ACL_COMMON_CONVERT_H__
20#include <arm_compute/core/PixelValue.h>
21#include <arm_compute/core/TensorInfo.h>
22#include <arm_compute/core/SubTensorInfo.h>
23#include <arm_compute/core/TensorShape.h>
50::arm_compute::TensorShape
asTensorShape(
const ir::Shape &shape,
bool apply_dim_correction =
true);
53::arm_compute::TensorInfo
asTensorInfo(
const ir::Shape &shape,
const ir::TypeInfo &typeInfo,
54 bool apply_dim_correction =
true);
56::arm_compute::PadStrideInfo
asPadStrideInfo(
const ir::ExplicitPadding &padding,
57 const ir::Stride &stride);
60::arm_compute::ActivationLayerInfo
64arm_compute::Coordinates
asCoordinates(
const ir::Operand &operand, int32_t rank);
66std::set<uint32_t>
asSet(
const ir::Operand &operand, int32_t rank);
68std::unique_ptr<AclFunction>
asAclFunction(std::unique_ptr<::arm_compute::IFunction> &&layer);
70template <
typename T_Function>
71std::unique_ptr<T_Function>
asFunction(std::unique_ptr<::arm_compute::IFunction> &&fn)
73 return std::make_unique<T_Function>(std::move(fn));
82arm_compute::Size2D
asDilation(uint32_t dilation_width, uint32_t dilation_height);
arm_compute::PoolingType convertPoolType(ir::operation::Pool2D::PoolType pool_type_ir)
::arm_compute::Coordinates asTensorCoordinate(const ir::Coordinates &coord)
std::set< uint32_t > asSet(const ir::Operand &operand, int32_t rank)
::arm_compute::ActivationLayerInfo asActivationLayerInfo(const ir::Activation act_code)
arm_compute::ReductionOperation convertReduceType(ir::operation::Reduce::ReduceType reduce_type_ir)
arm_compute::Coordinates asCoordinates(const ir::Operand &operand, int32_t rank)
arm_compute::PixelValue asPixelValue(const ir::Operand &operand)
arm_compute::Size2D asDilation(uint32_t dilation_width, uint32_t dilation_height)
::arm_compute::PadStrideInfo asPadStrideInfo(const ir::ExplicitPadding &padding, const ir::Stride &stride)
std::unique_ptr< AclFunction > asAclFunction(std::unique_ptr<::arm_compute::IFunction > &&layer)
std::unique_ptr< T_Function > asFunction(std::unique_ptr<::arm_compute::IFunction > &&fn)
::arm_compute::TensorShape asTensorShape(const ir::Shape &shape, bool apply_dim_correction)
::arm_compute::TensorInfo asTensorInfo(const ir::Shape &shape, const ir::TypeInfo &typeInfo, bool apply_dim_correction)
::arm_compute::DataType asDataType(const ir::DataType type)
ir::DataType asRuntimeDataType(::arm_compute::DataType data_type)
This file contains Shape class for feature.
This file contains Shape structure.