24 #ifndef SRC_COMMON_ITENSOR_H_ 25 #define SRC_COMMON_ITENSOR_H_ 63 this->
header.
type = detail::ObjectType::Invalid;
71 return this->
header.
type == detail::ObjectType::Tensor;
77 virtual void *
map() = 0;
102 size_t get_size()
const;
131 if(tensor ==
nullptr || !tensor->
is_valid())
134 return StatusCode::InvalidArgument;
136 return StatusCode::Success;
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.
void unmap(T &tensor)
Unmaps a tensor if needed.
arm_compute::detail::Header header
void dec_ref() const
Decrement context refcount.
ITensorV2(IContext *ctx)
Explict Operator Constructor.
bool is_valid() const
Checks if a queue is valid.
void map(T &tensor, bool blocking)
Maps a tensor if needed.
virtual ~ITensorV2()
Destructor.
void inc_ref() const
Increment context refcount.
ITensorV2 * get_internal(AclTensor tensor)
Extract internal representation of a Tensor.
#define ARM_COMPUTE_ASSERT_NOT_NULLPTR(ptr)