Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with mnist example #146

Open
rajasrijan opened this issue May 9, 2023 · 1 comment
Open

Error with mnist example #146

rajasrijan opened this issue May 9, 2023 · 1 comment

Comments

@rajasrijan
Copy link

When I run onnx-cpp mnist.onnx I get the following error:

reading onnx model from file  mnist.onnx
Model info:
  ir_vesion :  7 
  doc       : 
WARN (ONNX): allowzero is not a valid graph-node attribute.
             operator Reshape will be added without this attribute.
INFO (ONNX): writing model parameter fc.weight to dir .
INFO (ONNX): writing model parameter fc.bias to dir .
INFO (ONNX): writing model parameter fc2.weight to dir .
INFO (ONNX): writing model parameter fc2.bias to dir .
running DNNC graph sanity check.
ERROR (GRAPH): some of graph torch_jit's node /fc/Gemm's
               outputs are not connected to other nodes in the graph.
ERROR (GRAPH): some of graph torch_jit's node /fc2/Gemm's
               outputs are not connected to other nodes in the graph.
        FAILED. Please check your model.
Writing C++ file  /mnist.cpp
ERROR (CODEGEN): cound not find all nodes for /fc/Gemm,
                 an instance of Gemm.
                 Please check model's sanity and try again.
ERROR (CODEGEN): cound not find all nodes for /fc2/Gemm,
                 an instance of Gemm.
                 Please check model's sanity and try again.
ERROR (CODEGEN): could not open file mnist.cppto write.
INFO (ONNX): model files are ready in dir 
@github-actions
Copy link

github-actions bot commented May 9, 2023

Thank you so much for filing the issue. We will look at it and take appropriate action as soon as possible.' first issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant