Skip to content

Checking list of operators used in ONNX model #3554

Answered by askhade
harishch4 asked this question in Q&A
Discussion options

You must be logged in to vote

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;
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@hylandk-movidius
Comment options

@harishch4
Comment options

@hylandk-movidius
Comment options

@harishch4
Comment options

@hylandk-movidius
Comment options

Answer selected by harishch4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Questions about ONNX
3 participants