Args: t (Tensor): input Tensor Returns: a new Tensor whose element y = x * x, x is an element of t
(t)
| 1020 | |
| 1021 | |
| 1022 | def square(t): |
| 1023 | ''' |
| 1024 | Args: |
| 1025 | t (Tensor): input Tensor |
| 1026 | |
| 1027 | Returns: |
| 1028 | a new Tensor whose element y = x * x, x is an element of t |
| 1029 | ''' |
| 1030 | return _call_singa_func(singa.Square, t.data) |
| 1031 | |
| 1032 | |
| 1033 | def tanh(t): |
no test coverage detected