MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / convpool

Function convpool

cnn_class/cnn_tf.py:26–31  ·  view source on GitHub ↗
(X, W, b)

Source from the content-addressed store, hash-verified

24
25
26def convpool(X, W, b):
27 # just assume pool size is (2,2) because we need to augment it with 1s
28 conv_out = tf.nn.conv2d(X, W, strides=[1, 1, 1, 1], padding='SAME')
29 conv_out = tf.nn.bias_add(conv_out, b)
30 pool_out = tf.nn.max_pool(conv_out, ksize=[1, 2, 2, 1], strides=[1, 2, 2, 1], padding='SAME')
31 return tf.nn.relu(pool_out)
32
33
34def init_filter(shape, poolsz):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected