GetSize
Function Usage
Obtains the memory size of the tensor data.
Prototype
1 | size_t GetSize() const |
Parameters
None
Returns
Memory size occupied by a tensor, in bytes.
Constraints
None
Examples
1 2 3 | auto addr = reinterpret_cast<void *>(0x10); TensorData td(addr, HostAddrManager, 100U, kOnHost); auto td_size = td.GetSize(); // 100U |
Parent topic: TensorData