MCPcopy Create free account
hub / github.com/Tencent/embedx / AppendNodeFrom

Function AppendNodeFrom

src/model/instance_reader_util.cc:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void AppendNodeFrom(const vec_int_t& nodes, uint16_t user_group,
95 uint16_t item_group, vec_int_t* user_nodes,
96 vec_int_t* item_nodes) {
97 for (auto node : nodes) {
98 auto group = io_util::GetNodeType(node);
99 if (group == user_group) {
100 user_nodes->emplace_back(node);
101 } else if (group == item_group) {
102 item_nodes->emplace_back(node);
103 } else {
104 DXERROR("Invalid node: %" PRIu64 " namespace, need %d or %d, got %d.",
105 node, (int)user_group, (int)item_group, (int)group);
106 }
107 }
108}
109
110void ParseAndCheckNodeFrom(deepx_core::Instance* inst, const std::string& name,
111 uint16_t user_group, uint16_t item_group,

Callers 2

GetTrainBatchMethod · 0.85
GetPredictBatchMethod · 0.85

Calls 1

GetNodeTypeFunction · 0.85

Tested by

no test coverage detected