Obtains the memory size of the tensor data.
size_t GetSize() const
None
Memory size, in bytes.
StorageShape sh({1, 2, 3}, {1, 2, 3}); Tensor t = {sh, {}, {}, ge::DT_FLOAT, nullptr}; auto td_size = t.GetSize(); // 1*2*3*sizeof(float) = 24;