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

Function create_base_network

tests/models/test_model_save_graph.py:160–170  ·  view source on GitHub ↗

Base network to be shared (eq. to feature extraction).

(input_shape)

Source from the content-addressed store, hash-verified

158
159
160def create_base_network(input_shape):
161 '''Base network to be shared (eq. to feature extraction).
162 '''
163 input = Input(shape=input_shape)
164 x = Flatten()(input)
165 x = Dense(128, act=tf.nn.relu)(x)
166 x = Dropout(0.9)(x)
167 x = Dense(128, act=tf.nn.relu)(x)
168 x = Dropout(0.9)(x)
169 x = Dense(128, act=tf.nn.relu)(x)
170 return Model(input, x)
171
172
173def get_siamese_network(input_shape):

Callers 1

get_siamese_networkFunction · 0.70

Calls 5

InputFunction · 0.85
FlattenClass · 0.85
DenseClass · 0.85
DropoutClass · 0.85
ModelClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…