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

Function LookupDevice

tensorflow/compiler/xla/python/local_client.cc:544–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544static std::shared_ptr<Device> LookupDevice(const PyLocalClient& client,
545 int device_id) {
546 auto it = client.id_to_device().find(device_id);
547 CHECK(it != client.id_to_device().end())
548 << "Unknown device id: " << device_id;
549 return it->second;
550}
551
552PyLocalExecutable::PyLocalExecutable(
553 std::vector<std::unique_ptr<LocalExecutable>> executables,

Callers 2

FromHostBufferMethod · 0.70
ExecuteHelperMethod · 0.70

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected