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

Class MyLayer

test/python/test_onnx.py:1975–1985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1973 conv2 = layer.Conv2d(1, 2)
1974
1975 class MyLayer(layer.Layer):
1976
1977 def __init__(self, conv1, conv2):
1978 super(MyLayer, self).__init__()
1979 self.conv1 = conv1
1980 self.conv2 = conv2
1981
1982 def forward(self, inputs):
1983 x = self.conv1(inputs)
1984 x = self.conv2(x)
1985 return x
1986
1987 y = MyLayer(conv1, conv2)(x)
1988 x1 = conv1(x)

Callers 3

_inference_helperMethod · 0.85
_retraining_helperMethod · 0.85

Calls

no outgoing calls

Tested by 3

_inference_helperMethod · 0.68
_retraining_helperMethod · 0.68