ai-techsystems / deepC

vendor independent TinyML deep learning library, compiler and inference framework microcomputers and micro-controllers
https://cainvas.ai-tech.systems/
Apache License 2.0
558 stars 86 forks source link

Error with mnist example #146

Open rajasrijan opened 1 year ago

rajasrijan commented 1 year ago

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[bot] commented 1 year ago

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