backward of Ceil Args: dy (CTensor): gradient tensor. Returns: the gradient tensor over input tensor.
(self, dy)
| 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 | |
| 4295 | def ceil(x): |