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

Method testFinalized

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

Source from the content-addressed store, hash-verified

1035 op3.node_def)
1036
1037 def testFinalized(self):
1038 g = ops.Graph()
1039 g.finalize()
1040 with self.assertRaises(RuntimeError):
1041 g.create_op("FloatOutput", [], [dtypes.float32], None, name="myop1")
1042
1043 # Test unfinalize.
1044 g._unsafe_unfinalize()
1045 g.create_op("FloatOutput", [], [dtypes.float32], None, name="myop1")
1046
1047
1048# NOTE(skyewm): these cases test the private Graph._create_op_from_tf_operation

Callers

nothing calls this directly

Calls 4

finalizeMethod · 0.95
create_opMethod · 0.95
_unsafe_unfinalizeMethod · 0.95
GraphMethod · 0.45

Tested by

no test coverage detected