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

Method testVariable

tensorflow/python/framework/ops_test.py:2453–2459  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2451
2452 @test_util.run_deprecated_v1
2453 def testVariable(self):
2454 g0 = ops.Graph()
2455 with g0.as_default():
2456 variable = variables.Variable([1.0])
2457 a = g0.create_op("A", [], [dtypes.float32])
2458 b = g0.create_op("B", [], [dtypes.float32])
2459 self._testGraphElements([a, variable, b])
2460
2461
2462class InitScopeTest(test_util.TensorFlowTestCase):

Callers

nothing calls this directly

Calls 5

as_defaultMethod · 0.95
create_opMethod · 0.95
_testGraphElementsMethod · 0.95
VariableMethod · 0.80
GraphMethod · 0.45

Tested by

no test coverage detected