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

Function bias_variable

deep_q_network.py:28–30  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

26 return tf.Variable(initial)
27
28def bias_variable(shape):
29 initial = tf.constant(0.01, shape = shape)
30 return tf.Variable(initial)
31
32def conv2d(x, W, stride):
33 return tf.nn.conv2d(x, W, strides = [1, stride, stride, 1], padding = "SAME")

Callers 1

createNetworkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected