-
Notifications
You must be signed in to change notification settings - Fork 1
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
UnicodeDecodeError #7
Comments
Hey!
I just realized this is the onnx2code repo, not other of mine, sorry. Can you share the model? |
Thank you very much for your reply. This problem has been solved. However, I would like to ask, if I want to customize some operations, such as operations of modules like TCN and LSTM, then how should I do it? Also, I wonder if the author is still maintaining this project and will there be updates of other modules in the future? If I want to customize a model, how should I operate? Is there any relevant documentation for learning? |
Glad you fixed it. This was a university project so it was very limited in scope. We implemented few operators and have no plans to continue further. As you can guess, there is no documentation apart from what you can find in the code. The closest you can get is the final writeup but it is in Spanish 😬. If you want to implement your own operators, you can add them inside the There are real world projects that compile directly to assembly (not C) that implement lots of operators. For example, glow. |
Hi, I have a question for you. Test after generating C++ code, using g++ test, error reported AppData\Local\Temp\tmpfrj9poky\model-asm.o: No such file or directory. What is the reason for this |
My test code
} |
You should have an empty
Looks ok, you can check service.c and debugger.c for reference.
If the model being exported does not report any errors after "Checking model with 3 random inputs", then the C++ inference code is correct. There might be something wrong with your input, check with the files suggested above.
I'm not sure how are you saving the file. You can look at how the testing samples are saved: onnx2code/onnx2code/checker.py Lines 44 to 47 in 9c7ec88
|
Hello, may I ask that this error occurs during the conversion? How should I solve it:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 25: invalid start byte?
The text was updated successfully, but these errors were encountered: