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

Method __init__

test/python/test_model.py:40–43  ·  view source on GitHub ↗
(self, a, b, c)

Source from the content-addressed store, hash-verified

38class DoubleLinear(layer.Layer):
39
40 def __init__(self, a, b, c):
41 super(DoubleLinear, self).__init__()
42 self.l1 = layer.Linear(a, b)
43 self.l2 = layer.Linear(b, c)
44
45 def forward(self, x):
46 y = self.l1(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected