Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ GetTaskTypes
Function
GetTaskTypes
catboost/libs/data/ut/util.h:12–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
10
namespace NDataNewUT {
11
12
inline TVector<ETaskType> GetTaskTypes() {
13
TVector<ETaskType> result = {ETaskType::CPU};
14
if (GetGpuDeviceCount() > 0) {
15
result.push_back(ETaskType::GPU);
16
}
17
return result;
18
}
19
20
}
21
}
Callers
1
TestSubsetFeatures
Function · 0.85
Calls
2
GetGpuDeviceCount
Function · 0.50
push_back
Method · 0.45
Tested by
1
TestSubsetFeatures
Function · 0.68