shallow copy. Returns: a new Tensor which shares the underlying data memory (shallow copy).
(self)
| 439 | return t |
| 440 | |
| 441 | def T(self): |
| 442 | ''' shallow copy. |
| 443 | |
| 444 | Returns: |
| 445 | a new Tensor which shares the underlying data memory (shallow copy). |
| 446 | ''' |
| 447 | return _call_singa_func(singa.DefaultTranspose, self.data) |
| 448 | |
| 449 | def copy(self): |
| 450 | '''shallow copy calls copy constructor of singa::Tensor |
no test coverage detected