MCPcopy 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

TestSubsetFeaturesFunction · 0.85

Calls 2

GetGpuDeviceCountFunction · 0.50
push_backMethod · 0.45

Tested by 1

TestSubsetFeaturesFunction · 0.68