24.02.1
|
Tensor Descriptor class. More...
#include <Acl.hpp>
Public Member Functions | |
TensorDescriptor (const std::vector< int32_t > &shape, DataType data_type) | |
Constructor. More... | |
TensorDescriptor (const AclTensorDescriptor &desc) | |
Constructor. More... | |
const AclTensorDescriptor * | get () const |
Get underlying C tensor descriptor. More... | |
bool | operator== (const TensorDescriptor &other) |
Operator to compare two TensorDescriptor. More... | |
Tensor Descriptor class.
Structure that contains all the required meta-data to represent a tensor
|
inline |
Constructor.
[in] | shape | Shape of the tensor |
[in] | data_type | Data type of the tensor |
Definition at line 508 of file Acl.hpp.
References AclTensorDescriptor::boffset, AclTensorDescriptor::data_type, AclTensorDescriptor::ndims, AclTensorDescriptor::shape, and AclTensorDescriptor::strides.
|
inlineexplicit |
Constructor.
[in] | desc | C-type descriptor |
Definition at line 520 of file Acl.hpp.
References AclTensorDescriptor::data_type, AclTensorDescriptor::ndims, and AclTensorDescriptor::shape.
|
inline |
Get underlying C tensor descriptor.
Definition at line 534 of file Acl.hpp.
Referenced by Tensor::Tensor().
|
inline |
Operator to compare two TensorDescriptor.
[in] | other | The instance to compare against |
Definition at line 544 of file Acl.hpp.