backward of floor. Derivative of floor is 0 Args: dy (CTensor): gradient tensor Returns: the gradient tensor over the input tensor.
(self, dy)
| 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 | |
| 4339 | def floor(x): |