MCPcopy Create free account
hub / github.com/alibaba/euler / GetPOutputNum

Function GetPOutputNum

euler/parser/gen_node_def_input_output.cc:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175int32_t GetPOutputNum(const NodeDef& node_def) {
176 int32_t cnt = 0;
177 for (std::shared_ptr<AttrDef> attr : node_def.attrs_) {
178 if (attr->attr_type_ == AttrDef::kNorm) {
179 ++cnt;
180 }
181 }
182 return cnt * 2;
183}
184
185int32_t SampleEdgeOutputNum(const NodeDef& node_def) {
186 (void) node_def;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected