(self)
| 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 |
nothing calls this directly
no test coverage detected