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

Function TF_DeviceListCount

tensorflow/c/c_api.cc:603–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603int TF_DeviceListCount(const TF_DeviceList* list) {
604 return list->response.size();
605}
606
607#define TF_DEVICELIST_METHOD(return_type, method_name, accessor, err_val) \
608 return_type method_name(const TF_DeviceList* list, const int index, \

Callers 5

GPUDeviceNameFunction · 0.85
GetDeviceNameFunction · 0.85
TESTFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 5

GPUDeviceNameFunction · 0.68
GetDeviceNameFunction · 0.68
TESTFunction · 0.68