24.02.1
|
Go to the documentation of this file.
37 _legacy_tensor = std::make_unique<CLTensor>();
45 if (_legacy_tensor ==
nullptr)
51 _legacy_tensor->map();
52 return _legacy_tensor->buffer();
59 if (_legacy_tensor ==
nullptr)
64 _legacy_tensor->unmap();
73 _legacy_tensor->allocator()->allocate();
87 return _legacy_tensor.get();
Base class specifying the tensor interface.
decltype(strategy::transforms) typedef type
Target type() const
Target type accessor.
#define ARM_COMPUTE_LOG_ERROR_ACL(msg)
StatusCode allocate()
Allocates tensor.
ClTensor(IContext *ctx, const AclTensorDescriptor &desc)
Construct a new OpenCL Tensor object.
Interface for CPU tensor.
StatusCode unmap() override
Unmap tensor.
#define ARM_COMPUTE_ASSERT(cond)
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
StatusCode import(void *handle, ImportMemoryType type) override
Import external memory handle.
TensorInfo convert_to_legacy_tensor_info(const AclTensorDescriptor &desc)
Convert a descriptor to a legacy format one.
Copyright (c) 2017-2024 Arm Limited.
arm_compute::ITensor * tensor() const override
Get the legacy tensor object.
void * map() override
Map tensor to a host pointer.