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

Method backward

python/singa/autograd.py:4282–4292  ·  view source on GitHub ↗

backward of Ceil Args: dy (CTensor): gradient tensor. Returns: the gradient tensor over input tensor.

(self, dy)

Source from the content-addressed store, hash-verified

4280 return singa.Ceil(x)
4281
4282 def backward(self, dy):
4283 """
4284 backward of Ceil
4285 Args:
4286 dy (CTensor): gradient tensor.
4287 Returns:
4288 the gradient tensor over input tensor.
4289 """
4290 dy = singa.Tensor(dy.shape(), dy.device())
4291 dy.SetFloatValue(0.)
4292 return dy
4293
4294
4295def ceil(x):

Callers

nothing calls this directly

Calls 3

shapeMethod · 0.95
deviceMethod · 0.95
TensorMethod · 0.80

Tested by

no test coverage detected