24 #ifndef SRC_COMMON_ITENSORPACK_H_ 25 #define SRC_COMMON_ITENSORPACK_H_ 108 return static_cast<TensorPack *>(pack);
121 if(pack ==
nullptr || !pack->
is_valid())
TensorPack(IContext *ctx)
Constructor.
AclStatus add_tensor(ITensorV2 *tensor, int32_t slot_id)
Add tensor to the pack.
Base class specifying the tensor interface.
arm_compute::ITensor * get_tensor(int32_t slot_id)
Get tensor of a given id from the pac.
bool is_valid() const
Checks if an object is valid.
bool empty() const
Checks if pack is empty.
#define ARM_COMPUTE_LOG_ERROR_ACL(msg)
Log an error message to the logger.
Interface for CPU tensor.
Copyright (c) 2017-2021 Arm Limited.
arm_compute::detail::Header header
arm_compute::ITensorPack & get_tensor_pack()
Get legacy tensor pack.
StatusCode validate_internal_pack(const TensorPack *pack)
Check if an internal TensorPack is valid.
size_t size() const
Pack size accessor.
IContext * get_internal(AclContext ctx)
Extract internal representation of a Context.