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

Method test_is_built_with_cuda

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

Source from the content-addressed store, hash-verified

77 def test_gpu(self):
78 with tf.device('/gpu:0'):
79 m1 = tf.constant([2.0, 3.0], shape=[1, 2], name='a')
80 m2 = tf.constant([3.0, 4.0], shape=[2, 1], name='b')
81 result = tf.matmul(m1, m2)
82 self.assertEqual([1, 1], result.shape)
83

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected