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

Method testIdentityOnVariable

tensorflow/python/eager/ops_test.py:350–353  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

348
349 @test_util.run_gpu_only
350 def testIdentityOnVariable(self):
351 with context.device('/gpu:0'):
352 v = resource_variable_ops.ResourceVariable(True)
353 self.assertAllEqual(True, array_ops.identity(v))
354
355 def testIncompatibleSetShape(self):
356 x = constant_op.constant(1)

Callers

nothing calls this directly

Calls 4

deviceMethod · 0.45
ResourceVariableMethod · 0.45
assertAllEqualMethod · 0.45
identityMethod · 0.45

Tested by

no test coverage detected