Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
size_t CpuDeviceManager::GetDeviceCount(size_t /*primary_device_index*/) { return 1; }
39
40
size_t CpuDeviceManager::GetDeviceCount() { return 1; }
41
Callers
6
GetDeviceCount
Function · 0.45
ToDotFile
Method · 0.45
Init
Method · 0.45
SetUp
Method · 0.45
GetDeviceCount
Function · 0.45
CudaGetDeviceCount
Function · 0.45
Calls
no outgoing calls
Tested by
1
SetUp
Method · 0.36