MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_conv2d

Method test_conv2d

tests/test_tensorflow.py:15–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13 self.assertEqual([2], result.shape)
14
15 def test_conv2d(self):
16 input = tf.random.normal([1,2,2,1])
17 filter = tf.random.normal([1,1,1,1])
18
19 result = tf.nn.conv2d(input, filter, strides=[1, 1, 1, 1], padding='SAME')
20 self.assertEqual(4, len(result.shape))
21
22 def test_tf_keras(self):
23 x_train = np.random.random((100, 28, 28))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected