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

Function abs

examples/model_selection/Trails/singa_pkg_code/tensor.py:910–918  ·  view source on GitHub ↗

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

(t)

Source from the content-addressed store, hash-verified

908
909
910def abs(t):
911 '''
912 Args:
913 t (Tensor): input Tensor
914
915 Returns:
916 a new Tensor whose element y = abs(x), x is an element of t
917 '''
918 return _call_singa_func(singa.Abs, t.data)
919
920
921def exp(t):

Callers 3

compareMethod · 0.50
_p1_evaluate_onlineMethod · 0.50
_p1_evaluate_simuMethod · 0.50

Calls 1

_call_singa_funcFunction · 0.70

Tested by

no test coverage detected