Return a<b, where a and b are CTensor.
(self, x, y)
| 461 | super(Less, self).__init__() |
| 462 | |
| 463 | def forward(self, x, y): |
| 464 | """ |
| 465 | Return a<b, where a and b are CTensor. |
| 466 | """ |
| 467 | cur = singa.LTFloat(singa.__sub__(x, y), 0) |
| 468 | if training: |
| 469 | self.cache = cur |
| 470 | return cur |
| 471 | |
| 472 | def backward(self, dy): |
| 473 | """ |