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

Function GetDeviceFromHandle

tensorflow/compiler/xrt/xrt_memory_manager.cc:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39int GetDeviceFromHandle(int64 handle) {
40 return (handle >> (64 - kDeviceBits)) & ((1 << kDeviceBits) - 1);
41}
42
43} // namespace
44

Callers 2

LookupMethod · 0.85
ReleaseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected