Args: t (Tensor): input Tensor Returns: a new Tensor whose element y = sign(x)
(t)
| 998 | |
| 999 | |
| 1000 | def sign(t): |
| 1001 | ''' |
| 1002 | Args: |
| 1003 | t (Tensor): input Tensor |
| 1004 | |
| 1005 | Returns: |
| 1006 | a new Tensor whose element y = sign(x) |
| 1007 | ''' |
| 1008 | return _call_singa_func(singa.Sign, t.data) |
| 1009 | |
| 1010 | |
| 1011 | def sqrt(t): |
no test coverage detected