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

Method testContextConfig

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

Source from the content-addressed store, hash-verified

451
452 @test_util.run_gpu_only
453 def testContextConfig(self):
454 ctx = context.Context(config=config_pb2.ConfigProto(
455 device_count={'GPU': 0}))
456 self.assertEquals(0, ctx.num_gpus())
457
458 def testPickle(self):
459 tmp_dir = self.get_temp_dir()

Callers

nothing calls this directly

Calls 3

num_gpusMethod · 0.95
assertEqualsMethod · 0.80
ContextMethod · 0.45

Tested by

no test coverage detected