23.08
|
Go to the documentation of this file.
56 auto it = _pack.find(
id);
59 return it->second.ctensor !=
nullptr ? it->second.ctensor : it->second.tensor;
66 auto it = _pack.find(
id);
67 return it != _pack.end() ? it->second.tensor :
nullptr;
void remove_tensor(int id)
Remove the tensor stored with the given id.
Interface for CPU tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
ITensor * get_tensor(int id)
Get tensor of a given id from the pac.
void add_const_tensor(int id, const ITensor *tensor)
Add const tensor to the pack.
bool empty() const
Checks if pack is empty.
const ITensor * get_const_tensor(int id) const
Get constant tensor of a given id.
size_t size() const
Pack size accessor.
CLTensor * tensor
Pointer to the auxiliary tensor.
Copyright (c) 2017-2023 Arm Limited.
ITensorPack()=default
Default Constructor.