MCPcopy
hub / github.com/yenchenlin/DeepLearningFlappyBird / weight_variable

Function weight_variable

deep_q_network.py:24–26  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

22FRAME_PER_ACTION = 1
23
24def weight_variable(shape):
25 initial = tf.truncated_normal(shape, stddev = 0.01)
26 return tf.Variable(initial)
27
28def bias_variable(shape):
29 initial = tf.constant(0.01, shape = shape)

Callers 1

createNetworkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected