Tensor Constructor and Destructor
Description
Constructs or destructs an object of class Tensor.
Prototype
1 2 3 4 5 6 | Tensor() ~Tensor() = default explicit Tensor(const TensorDesc &tensor_desc) Tensor(const TensorDesc &tensor_desc, const std::vector<uint8_t> &data) Tensor(const TensorDesc &tensor_desc, const uint8_t *data, size_t size) Tensor(TensorDesc &&tensor_desc, std::vector<uint8_t> &&data) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensor_desc |
Input |
TensorDesc object, that is, tensor descriptor to be set. |
data |
Input |
Data to be set. |
size |
Input |
Data length, in bytes. |
Returns
A Tensor object.
Exception Handling
None
Restrictions
None
Parent topic: Tensor