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