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

Method _testGraphElements

tensorflow/python/framework/ops_test.py:2423–2432  ·  view source on GitHub ↗
(self, graph_elements)

Source from the content-addressed store, hash-verified

2421 pass
2422
2423 def _testGraphElements(self, graph_elements):
2424 scope_name = "my_scope"
2425 with ops.name_scope(scope_name, values=graph_elements) as scope:
2426 self.assertEqual("%s/" % scope_name, scope)
2427 self.assertEqual(graph_elements[0].graph, ops.get_default_graph())
2428 g1 = ops.Graph()
2429 a = g1.create_op("A", [], [dtypes.float32])
2430 with self.assertRaises(ValueError):
2431 with ops.name_scope(scope_name, values=graph_elements + [a]):
2432 pass
2433
2434 @test_util.run_deprecated_v1
2435 def testTensor(self):

Callers 3

testTensorMethod · 0.95
testSparseTensorMethod · 0.95
testVariableMethod · 0.95

Calls 3

create_opMethod · 0.95
name_scopeMethod · 0.45
GraphMethod · 0.45

Tested by

no test coverage detected