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

Function TF_SessionListDevices

tensorflow/c/c_api.cc:590–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588void TF_DeleteDeviceList(TF_DeviceList* list) { delete list; }
589
590TF_DeviceList* TF_SessionListDevices(TF_Session* session, TF_Status* status) {
591 TF_DeviceList* response = new TF_DeviceList;
592 status->status = session->session->ListDevices(&response->response);
593 return response;
594}
595
596TF_DeviceList* TF_DeprecatedSessionListDevices(TF_DeprecatedSession* session,
597 TF_Status* status) {

Callers 1

GPUDeviceNameFunction · 0.85

Calls 1

ListDevicesMethod · 0.45

Tested by 1

GPUDeviceNameFunction · 0.68