(self)
| 372 | del ctx |
| 373 | |
| 374 | def testAsyncBasic(self): |
| 375 | ctx = context.Context(execution_mode=context.ASYNC) |
| 376 | ctx.ensure_initialized() |
| 377 | has_cpu_device = False |
| 378 | for x in ctx.devices(): |
| 379 | has_cpu_device = has_cpu_device or 'CPU' in x |
| 380 | self.assertTrue(has_cpu_device) |
| 381 | del ctx |
| 382 | |
| 383 | def testMultiCpuPlacement(self): |
| 384 | with ops.device('cpu:1'): |
nothing calls this directly
no test coverage detected