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

Function conv2d

deep_q_network.py:32–33  ·  view source on GitHub ↗
(x, W, stride)

Source from the content-addressed store, hash-verified

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")
34
35def max_pool_2x2(x):
36 return tf.nn.max_pool(x, ksize = [1, 2, 2, 1], strides = [1, 2, 2, 1], padding = "SAME")

Callers 1

createNetworkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected