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

Function square

python/singa/tensor.py:1022–1030  ·  view source on GitHub ↗

Args: t (Tensor): input Tensor Returns: a new Tensor whose element y = x * x, x is an element of t

(t)

Source from the content-addressed store, hash-verified

1020
1021
1022def 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
1033def tanh(t):

Callers 1

Cuda>Method · 0.50

Calls 1

_call_singa_funcFunction · 0.70

Tested by

no test coverage detected