Same as clone(). Returns: a new Tensor
(self)
| 455 | return _call_singa_func(CTensor, self.data) |
| 456 | |
| 457 | def deepcopy(self): |
| 458 | '''Same as clone(). |
| 459 | |
| 460 | Returns: |
| 461 | a new Tensor |
| 462 | ''' |
| 463 | return self.clone() |
| 464 | |
| 465 | def bernoulli(self, p, inplace=True): |
| 466 | '''Sample 0/1 for each element according to the given probability. |
no test coverage detected