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

Method forward

python/singa/autograd.py:3520–3528  ·  view source on GitHub ↗

Return `np.logical_or(a,b)`, where a and b are CTensor.

(self, a, b)

Source from the content-addressed store, hash-verified

3518 super(Or, self).__init__()
3519
3520 def forward(self, a, b):
3521 """
3522 Return `np.logical_or(a,b)`, where a and b are CTensor.
3523 """
3524 m = singa.__add__(singa.PowFloat(singa.Sign(a), 2.0),
3525 singa.PowFloat(singa.Sign(b), 2.0))
3526 cur = singa.Sign(m)
3527
3528 return cur
3529
3530 def backward(self, dy):
3531 """

Callers

nothing calls this directly

Calls 1

__add__Method · 0.45

Tested by

no test coverage detected