Returns: the number of Bytes allocated for this tensor.
(self)
| 217 | return self.data.Size() |
| 218 | |
| 219 | def memsize(self): |
| 220 | ''' |
| 221 | Returns: |
| 222 | the number of Bytes allocated for this tensor. |
| 223 | ''' |
| 224 | return self.data.MemSize() |
| 225 | |
| 226 | def contiguous(self): |
| 227 | t = Tensor(self.shape, self.device, self.dtype) |