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

Method test_gpu

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

Source from the content-addressed store, hash-verified

69
70 @gpu_test
71 def test_gpu(self):
72 with tf.device('/gpu:0'):
73 m1 = tf.constant([2.0, 3.0], shape=[1, 2], name='a')
74 m2 = tf.constant([3.0, 4.0], shape=[2, 1], name='b')
75 result = tf.matmul(m1, m2)
76 self.assertEqual([1, 1], result.shape)
77
78 @gpu_test
79 def test_is_built_with_cuda(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected