MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / MyModel

Class MyModel

tests/layers/test_layernode.py:146–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 print('-' * 20, 'layerlist', '-' * 20)
145
146 class MyModel(Model):
147
148 def __init__(self):
149 super(MyModel, self).__init__()
150 self.layers = LayerList([Dense(50, in_channels=100), Dropout(0.9), Dense(10, in_channels=50)])
151
152 def forward(self, x):
153 return self.layers(x)
154
155 net = MyModel()
156 self.assertEqual(net._nodes_fixed, False)

Callers 2

test_layerlistMethod · 0.70
test_ModelLayerMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_layerlistMethod · 0.56
test_ModelLayerMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…