(self)
| 30 | class ContextTest(test.TestCase): |
| 31 | |
| 32 | def testSetGlobalSeed(self): |
| 33 | c = context.Context() |
| 34 | c._set_global_seed(123) |
| 35 | for t in [np.int32, np.int64, np.uint32, np.uint64]: |
| 36 | c._set_global_seed(t(123)) |
| 37 | c._set_global_seed(np.array(123, dtype=t)) |
| 38 | c._set_global_seed(ops.convert_to_tensor(123, dtype=t)) |
| 39 | |
| 40 | def testContextIsDestroyedAfterTensors(self): |
| 41 | # Create a new context |
nothing calls this directly
no test coverage detected