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

Function _is_current_explicit_device

tensorflow/tensorflow/python/keras/backend.py:599–616  ·  view source on GitHub ↗

Check if the current device is explicitly set on the device type specified. Arguments: device_type: A string containing `GPU` or `CPU` (case-insensitive). Returns: A boolean indicating if the current device scope is explicitly set on the device type. Raises: ValueErr

(device_type)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_has_nchw_supportFunction · 0.85

Calls 1

_get_current_tf_deviceFunction · 0.85

Tested by

no test coverage detected