MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / GetDeviceCount

Method GetDeviceCount

oneflow/core/ep/cpu/cpu_device_manager.cpp:38–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38size_t CpuDeviceManager::GetDeviceCount(size_t /*primary_device_index*/) { return 1; }
39
40size_t CpuDeviceManager::GetDeviceCount() { return 1; }
41

Callers 6

GetDeviceCountFunction · 0.45
ToDotFileMethod · 0.45
InitMethod · 0.45
SetUpMethod · 0.45
GetDeviceCountFunction · 0.45
CudaGetDeviceCountFunction · 0.45

Calls

no outgoing calls

Tested by 1

SetUpMethod · 0.36