shallow copy. Returns: a new Tensor which shares the underlying data memory (shallow copy).
(self)
| 470 | return t |
| 471 | |
| 472 | def T(self): |
| 473 | ''' shallow copy. |
| 474 | |
| 475 | Returns: |
| 476 | a new Tensor which shares the underlying data memory (shallow copy). |
| 477 | ''' |
| 478 | return _call_singa_func(singa.DefaultTranspose, self.data) |
| 479 | |
| 480 | def copy(self): |
| 481 | '''shallow copy calls copy constructor of singa::Tensor |