Skip to content

Error with mnist example #146

Description

@rajasrijan

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions