12 #include <arm_compute/core/Coordinates.h>
13 #include <arm_compute/runtime/CL/CLTensor.h>
24 arm_compute::TensorShape shape = armcomputetensorutils::BuildArmComputeTensorShape(subTensorShape);
31 coords.set(i, armnn::numeric_cast<int>(subTensorOrigin[revertedIndex]));
34 const arm_compute::TensorShape parentShape = armcomputetensorutils::BuildArmComputeTensorShape(parent.
GetShape());
38 if (coords.x() != 0 || coords.y() != 0)
42 if ((parentShape.x() != shape.x()) || (parentShape.y() != shape.y()))
47 if (!::arm_compute::error_on_invalid_subtensor(__func__, __FILE__, __LINE__, parentShape, coords, shape))
52 return std::make_unique<ClImportSubTensorHandle>(
53 PolymorphicDowncast<IClTensorHandle*>(&parent), shape, coords);
58 std::unique_ptr<ClImportTensorHandle> tensorHandle = std::make_unique<ClImportTensorHandle>(tensorInfo,
66 std::unique_ptr<ClImportTensorHandle> tensorHandle = std::make_unique<ClImportTensorHandle>(tensorInfo,
73 const bool IsMemoryManaged)
const
84 const bool IsMemoryManaged)
const
116 return m_ExportFlags;
121 return m_ImportFlags;
130 std::vector<Capability> capabilities;
134 capabilities.push_back(paddingCapability);