16 const unsigned int* subTensorOrigin)
const
19 arm_compute::TensorShape shape = armcomputetensorutils::BuildArmComputeTensorShape(subTensorShape);
26 coords.set(i, armnn::numeric_cast<int>(subTensorOrigin[revertedIndex]));
29 const arm_compute::TensorShape parentShape = armcomputetensorutils::BuildArmComputeTensorShape(parent.
GetShape());
33 if (coords.x() != 0 || coords.y() != 0)
37 if ((parentShape.x() != shape.x()) || (parentShape.y() != shape.y()))
42 if (!::arm_compute::error_on_invalid_subtensor(__func__, __FILE__, __LINE__, parentShape, coords, shape))
47 return std::make_unique<GpuFsaSubTensorHandle>(PolymorphicDowncast<IClTensorHandle*>(&parent), shape, coords);
62 const bool IsMemoryManaged)
const
64 std::unique_ptr<GpuFsaTensorHandle> tensorHandle = std::make_unique<GpuFsaTensorHandle>(tensorInfo);
67 ARMNN_LOG(
warning) <<
"GpuFsaTensorHandleFactory only has support for memory managed.";
69 tensorHandle->SetMemoryGroup(m_MemoryManager->GetInterLayerMemoryGroup());
75 const bool IsMemoryManaged)
const
77 std::unique_ptr<GpuFsaTensorHandle> tensorHandle = std::make_unique<GpuFsaTensorHandle>(tensorInfo, dataLayout);
80 ARMNN_LOG(
warning) <<
"GpuFsaTensorHandleFactory only has support for memory managed.";
82 tensorHandle->SetMemoryGroup(m_MemoryManager->GetInterLayerMemoryGroup());