shallow copy calls copy constructor of singa::Tensor Returns: new tensor copied
(self)
| 478 | return _call_singa_func(singa.DefaultTranspose, self.data) |
| 479 | |
| 480 | def copy(self): |
| 481 | '''shallow copy calls copy constructor of singa::Tensor |
| 482 | |
| 483 | Returns: |
| 484 | new tensor copied |
| 485 | ''' |
| 486 | return _call_singa_func(CTensor, self.data) |
| 487 | |
| 488 | def deepcopy(self): |
| 489 | '''Same as clone(). |