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

Method RecordListDevices

tensorflow/python/client/session_ref.cc:240–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 }
239
240 Status RecordListDevices(Session* session,
241 std::vector<DeviceAttributes>* response) {
242 ReplayOp op;
243 ListDevicesRequest* req = op.mutable_list_devices();
244 ListDevicesResponse* resp = op.mutable_list_devices_response();
245 req->set_session_handle(SessionToHandle(session));
246 RUN_WITH_TIMESTAMP(ListDevices, response);
247
248 // TODO(power) -- local vs remote device distinction is lost here!
249 *resp->mutable_local_device() = {response->begin(), response->end()};
250 return Flush(op);
251 }
252
253 Status RecordPRunSetup(Session* session,
254 const std::vector<string>& input_names,

Callers

nothing calls this directly

Calls 4

SessionToHandleFunction · 0.85
set_session_handleMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected