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

Class ReLU

python/singa/layer.py:1403–1412  ·  view source on GitHub ↗

Generate a ReLU operator

Source from the content-addressed store, hash-verified

1401
1402
1403class ReLU(Layer):
1404 """
1405 Generate a ReLU operator
1406 """
1407
1408 def __init__(self):
1409 super(ReLU, self).__init__()
1410
1411 def forward(self, x):
1412 return autograd.relu(x)
1413
1414
1415class Sigmoid(Layer):

Callers 2

TEST_FFunction · 0.50
TEST_FFunction · 0.50

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.40
TEST_FFunction · 0.40