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