Sets the memory size of the tensor data.
void SetSize(const size_t size)
None
std::vector<int> a = {10}; auto addr = reinterpret_cast<void *>(a.data()); TensorData td(addr, HostAddrManager, 100U, kOnHost); td.SetSize(10U);