Returns: a new Tensor which does deep copy of this tensor
(self)
| 402 | raise ValueError("t should be Tensor or numpy array.") |
| 403 | |
| 404 | def clone(self): |
| 405 | ''' |
| 406 | Returns: |
| 407 | a new Tensor which does deep copy of this tensor |
| 408 | ''' |
| 409 | return _call_singa_func(self.data.Clone) |
| 410 | |
| 411 | def repeat(self, repeats, axis): |
| 412 | '''Repeat data of a tensor |