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

Node id's including slashes cause "no such file or directory" error #125

Open
robinvanemden opened this issue Jul 3, 2020 · 1 comment

Comments

@robinvanemden
Copy link
Contributor

When converting the included model with onnx-cpp it throws the following error:

reading onnx model from file  optimized.onnx
Model info:
  ir_vesion :  4
  doc       :
INFO (ONNX): writing model parameter const_fold_opt__17 to dir savedmodel/.
INFO (ONNX): writing model parameter StatefulPartitionedCall/sequential_1/dense_2/MatMul/ReadVariableOp:0 to dir savedmodel/.
Traceback (most recent call last):
  File "/home/robin/.local/bin/onnx-cpp", line 11, in <module>
    sys.exit(main())
  File "/home/robin/.local/lib/python3.6/site-packages/deepC/compiler/onnx2cpp.py", line 65, in main
    dcGraph = parser.main(onnx_file, bundle_dir, optimize=False, checker=False)
  File "/home/robin/.local/lib/python3.6/site-packages/deepC/compiler/read_onnx.py", line 486, in main
    self.addParams(param);
  File "/home/robin/.local/lib/python3.6/site-packages/deepC/compiler/read_onnx.py", line 194, in addParams
    self.writeParamsToFile(param.name, param_vals);
  File "/home/robin/.local/lib/python3.6/site-packages/deepC/compiler/read_onnx.py", line 56, in writeParamsToFile
    with open(paramFile, "w") as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'savedmodel/StatefulPartitionedCall/sequential_1/dense_2/MatMul/ReadVariableOp:0'

I presume this is probably caused by the slashes in the node id's of the model?

slashes.zip

@busFred
Copy link

busFred commented Jan 16, 2023

i am also encountering this issue. do you have any way to get around this 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

2 participants