Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
22
FRAME_PER_ACTION = 1
23
24
def
weight_variable(shape):
25
initial = tf.truncated_normal(shape, stddev = 0.01)
26
return
tf.Variable(initial)
27
28
def
bias_variable(shape):
29
initial = tf.constant(0.01, shape = shape)
Callers
1
createNetwork
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected