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