MCPcopy Create free account
hub / github.com/apache/singa / sign

Function sign

python/singa/tensor.py:1000–1008  ·  view source on GitHub ↗

Args: t (Tensor): input Tensor Returns: a new Tensor whose element y = sign(x)

(t)

Source from the content-addressed store, hash-verified

998
999
1000def 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
1011def sqrt(t):

Callers 1

Cuda>Method · 0.50

Calls 1

_call_singa_funcFunction · 0.70

Tested by

no test coverage detected