-
Hello Everyone, Is there a way to get the list of operators used by an ONNX model? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
askhade
Aug 5, 2021
Replies: 1 comment 5 replies
-
You can parse the graphproto and look at the op_type of each NodeProto |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
harishch4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can parse the graphproto and look at the op_type of each NodeProto
Something like this:
auto* g = model_proto.mutable_graph()
for (const auto& n : g->node()) {
std::cout<< n.op_type() << std::endl;
}