MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / testInt32GPU

Method testInt32GPU

tensorflow/python/eager/core_test.py:415–419  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

413
414 @test_util.run_gpu_only
415 def testInt32GPU(self):
416 with ops.device('gpu:0'):
417 xent = nn_ops.sparse_softmax_cross_entropy_with_logits(
418 logits=[[0.0, 0.0]], labels=[0])
419 self.assertAllClose(xent, [0.69314718])
420
421 def _runInThread(self, target, args):
422 t = threading.Thread(target=target, args=args)

Callers

nothing calls this directly

Calls 2

deviceMethod · 0.45
assertAllCloseMethod · 0.45

Tested by

no test coverage detected