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

Function rounde

python/singa/autograd.py:5637–5645  ·  view source on GitHub ↗

Element-wise round the input, In case of halfs, round to the nearest even integer Args: x (Tensor): input tensor. Returns: the output Tensor.

(x)

Source from the content-addressed store, hash-verified

5635
5636
5637def rounde(x):
5638 """
5639 Element-wise round the input, In case of halfs, round to the nearest even integer
5640 Args:
5641 x (Tensor): input tensor.
5642 Returns:
5643 the output Tensor.
5644 """
5645 return Rounde()(x)[0]
5646
5647
5648class Embedding(Operator):

Callers 1

Cuda>Method · 0.85

Calls 1

RoundeClass · 0.85

Tested by

no test coverage detected