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

Method get_unstack_model

tests/layers/test_layernode.py:80–93  ·  view source on GitHub ↗
(input_shape)

Source from the content-addressed store, hash-verified

78 print('-' * 20, 'test_net2', '-' * 20)
79
80 def get_unstack_model(input_shape):
81 ni = Input(input_shape)
82
83 nn = Dropout(keep=0.9)(ni)
84
85 a, b, c = UnStack(axis=-1)(nn)
86
87 b = Flatten()(b)
88 b = Dense(10)(b)
89
90 c = Flatten()(c)
91
92 M = Model(inputs=ni, outputs=[a, b, c])
93 return M
94
95 net = get_unstack_model([None, 24, 24, 3])
96

Callers

nothing calls this directly

Calls 6

ModelClass · 0.90
InputFunction · 0.85
DropoutClass · 0.85
UnStackClass · 0.85
FlattenClass · 0.85
DenseClass · 0.85

Tested by

no test coverage detected