24 #ifndef SRC_COMMON_ITENSOR_H_ 25 #define SRC_COMMON_ITENSOR_H_ 77 virtual void *
map() = 0;
118 return static_cast<ITensorV2 *>(tensor);
131 if(tensor ==
nullptr || !tensor->
is_valid())
Base class specifying the tensor interface.
#define ARM_COMPUTE_LOG_ERROR_ACL(msg)
Log an error message to the logger.
StatusCode validate_internal_tensor(const ITensorV2 *tensor)
Check if an internal tensor is valid.
decltype(strategy::transforms) typedef type
Interface for CPU tensor.
Copyright (c) 2017-2021 Arm Limited.
arm_compute::detail::Header header
void dec_ref() const
Decrement context refcount.
virtual void * map()=0
Map tensor to a host pointer.
size_t get_size() const
Get the size of the tensor in byte.
virtual StatusCode unmap()=0
Unmap tensor.
ITensorV2(IContext *ctx)
Explict Operator Constructor.
bool is_valid() const
Checks if a queue is valid.
virtual ~ITensorV2()
Destructor.
void inc_ref() const
Increment context refcount.
#define ARM_COMPUTE_ASSERT_NOT_NULLPTR(ptr)
virtual arm_compute::ITensor * tensor() const =0
Get the legacy tensor object.
IContext * get_internal(AclContext ctx)
Extract internal representation of a Context.
AclTensorDescriptor get_descriptor() const
Get the descriptor of this tensor.