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

Method _get_device_name

tensorflow/python/ops/session_ops.py:122–125  ·  view source on GitHub ↗

The device name encoded in the handle.

(handle)

Source from the content-addressed store, hash-verified

120
121 @staticmethod
122 def _get_device_name(handle):
123 """The device name encoded in the handle."""
124 handle_str = compat.as_str_any(handle)
125 return pydev.canonical_name(handle_str.split(";")[-1])
126
127 @staticmethod
128 def _get_reader_key(handle):

Callers 5

get_session_tensorFunction · 0.80
delete_session_tensorFunction · 0.80
_get_handle_readerFunction · 0.80
_get_handle_moverFunction · 0.80
_get_handle_deleterFunction · 0.80

Calls 2

canonical_nameMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected