deepC icon indicating copy to clipboard operation
deepC copied to clipboard

Error with mnist example

Open rajasrijan opened this issue 1 year ago • 1 comments

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 

rajasrijan avatar May 09 '23 17:05 rajasrijan

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

github-actions[bot] avatar May 09 '23 17:05 github-actions[bot]