SetDataSize
Description
Sets the memory size of a tensor, in bytes.
Prototype
void SetDataSize(uint64_t size)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
size |
Input |
Memory size, in bytes. |
Returns
None
Restrictions
None
Example
tensor->SetDataSize(1024);
Parent topic: Class Tensor