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

Function ParseGPUIds

serving/processor/serving/model_config.cc:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void ParseGPUIds(const std::string& gpu_ids_list,
39 std::vector<size_t>* gpu_ids) {
40 if (!gpu_ids_list.empty()) {
41 std::vector<string> ids =
42 str_util::Split(gpu_ids_list, ',');
43 for (auto id : ids) {
44 gpu_ids->emplace_back(std::stoi(id));
45 }
46 }
47}
48
49}
50

Callers 1

CreateMethod · 0.85

Calls 3

SplitFunction · 0.50
emptyMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected