MCPcopy
hub / github.com/tensorlayer/TensorLayer / MyModel

Method MyModel

tests/layers/test_layernode.py:170–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 print('-' * 20, 'ModelLayer', '-' * 20)
169
170 def MyModel():
171 nii = Input(shape=[None, 100])
172 nn = Dense(50, in_channels=100)(nii)
173 nn = Dropout(0.9)(nn)
174 nn = Dense(10)(nn)
175 M = Model(inputs=nii, outputs=nn)
176 return M
177
178 mlayer = MyModel().as_layer()
179

Callers

nothing calls this directly

Calls 4

ModelClass · 0.90
InputFunction · 0.85
DenseClass · 0.85
DropoutClass · 0.85

Tested by

no test coverage detected