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

Function get_model

examples/reinforcement_learning/tutorial_atari_pong.py:68–73  ·  view source on GitHub ↗
(inputs_shape)

Source from the content-addressed store, hash-verified

66
67# policy network
68def get_model(inputs_shape):
69 ni = tl.layers.Input(inputs_shape)
70 nn = tl.layers.Dense(n_units=H, act=tf.nn.relu, name='hidden')(ni)
71 nn = tl.layers.Dense(n_units=3, name='output')(nn)
72 M = tl.models.Model(inputs=ni, outputs=nn, name="mlp")
73 return M
74
75
76model = get_model([None, D])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…