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

Method num_gpus

tensorflow/python/eager/context.py:963–966  ·  view source on GitHub ↗

The number of GPUs available to execute operations.

(self)

Source from the content-addressed store, hash-verified

961 self._thread_local_data.function_call_options = options
962
963 def num_gpus(self):
964 """The number of GPUs available to execute operations."""
965 self.ensure_initialized()
966 return self._num_gpus
967
968 def add_function(self, fn):
969 """Add a function definition to the context.

Callers 15

testContextConfigMethod · 0.95
_devMethod · 0.45
mainFunction · 0.45
deviceFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
deviceFunction · 0.45
testTrainMethod · 0.45
testApplyMethod · 0.45
force_gpu_syncFunction · 0.45

Calls 1

ensure_initializedMethod · 0.95

Tested by 15

testContextConfigMethod · 0.76
_devMethod · 0.36
deviceFunction · 0.36
deviceFunction · 0.36
testTrainMethod · 0.36
testApplyMethod · 0.36
force_gpu_syncFunction · 0.36