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

Method testAsyncBasic

tensorflow/python/eager/core_test.py:374–381  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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'):

Callers

nothing calls this directly

Calls 3

ensure_initializedMethod · 0.95
devicesMethod · 0.95
ContextMethod · 0.45

Tested by

no test coverage detected