24.02.1
|
#include <Acl.hpp>
Data Structures | |
struct | PackPair |
Pack pair construct. More... | |
Public Member Functions | |
TensorPack (Context &ctx, StatusCode *status=nullptr) | |
Constructor. More... | |
StatusCode | add (Tensor &tensor, int32_t slot_id) |
Add tensor to tensor pack. More... | |
StatusCode | add (std::initializer_list< PackPair > packed) |
Add a list of tensors to a tensor pack. More... | |
Public Member Functions inherited from ObjectBase< AclTensorPack_ > | |
~ObjectBase ()=default | |
Destructor. More... | |
ObjectBase (const ObjectBase< AclTensorPack_ > &)=default | |
Copy constructor. More... | |
ObjectBase (ObjectBase< AclTensorPack_ > &&)=default | |
Move Constructor. More... | |
ObjectBase< AclTensorPack_ > & | operator= (const ObjectBase< AclTensorPack_ > &)=default |
Copy assignment operator. More... | |
ObjectBase< AclTensorPack_ > & | operator= (ObjectBase< AclTensorPack_ > &&)=default |
Move assignment operator. More... | |
void | reset (AclTensorPack_ *val) |
Reset object value. More... | |
const AclTensorPack_ * | get () const |
Access uderlying object. More... | |
AclTensorPack_ * | get () |
Access uderlying object. More... | |
Tensor pack class.
Pack is a utility construct that is used to create a collection of tensors that can then be passed into operator as inputs.
|
inlineexplicit |
Constructor.
[in] | ctx | Context from where the tensor pack will be created from |
[out] | status | Status information if requested |
Definition at line 705 of file Acl.hpp.
References AclCreateTensorPack(), ObjectBase< T >::get(), arm_compute::test::validation::pack, and ObjectBase< AclTensorPack_ >::reset().
|
inline |
Add a list of tensors to a tensor pack.
[in] | packed | Pair packs to be added |
Definition at line 733 of file Acl.hpp.
References AclPackTensors().
|
inline |
Add tensor to tensor pack.
[in] | slot_id | Slot id of the tensor in respect with the operator |
[in] | tensor | Tensor to be added in the pack |
Definition at line 723 of file Acl.hpp.
References AclPackTensor(), and tensor.