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

Method forward

python/singa/autograd.py:463–470  ·  view source on GitHub ↗

Return a<b, where a and b are CTensor.

(self, x, y)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 1

__sub__Method · 0.45

Tested by

no test coverage detected