MCPcopy Create free account
hub / github.com/alibaba/nann / _get_current_tf_device

Function _get_current_tf_device

tensorflow/tensorflow/python/keras/backend.py:585–596  ·  view source on GitHub ↗

Return explicit device of current context, otherwise returns `None`. Returns: If the current device scope is explicitly set, it returns a string with the device (`CPU` or `GPU`). If the scope is not explicitly set, it will return `None`.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 4

get_graphFunction · 0.85
_TfDeviceCaptureOpClass · 0.85
from_stringMethod · 0.80

Tested by

no test coverage detected