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

Method backward

python/singa/autograd.py:4326–4336  ·  view source on GitHub ↗

backward of floor. Derivative of floor is 0 Args: dy (CTensor): gradient tensor Returns: the gradient tensor over the input tensor.

(self, dy)

Source from the content-addressed store, hash-verified

4324 return singa.Floor(x)
4325
4326 def backward(self, dy):
4327 """
4328 backward of floor. Derivative of floor is 0
4329 Args:
4330 dy (CTensor): gradient tensor
4331 Returns:
4332 the gradient tensor over the input tensor.
4333 """
4334 dy = singa.Tensor(dy.shape(), dy.device())
4335 dy.SetFloatValue(0.)
4336 return dy
4337
4338
4339def floor(x):

Callers

nothing calls this directly

Calls 3

shapeMethod · 0.95
deviceMethod · 0.95
TensorMethod · 0.80

Tested by

no test coverage detected