-
Couldn't load subscription status.
- Fork 482
ONNX to HLS conversion tool #116
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
Conversation
|
This is now ready for review. |
EnvironmentIn onnx-to-hls.py: Testingonnx-to-hlsRan onnx-to-hls with example config file and model. keras-to-onnxNot working for me. I try to run the conversion on one of the The error is: Any ideas? Is this an I see all of the three passes that should be performed. This seems like a problem in my setup or |
|
The optimizers we need are introduced in ONNX v1.4.0. |
|
Okay. I think we agree that the I tried to run onnx-to-hls on all of the example-onnx-model-files, and I find that for some models the conversion is unsuccessful. This one looks deliberate, the operation is not supported? All of the |
|
The latest commits fix the issue with pytorch models. Thanks for reviewing @thesps! |
|
Okay, sorry for the delay in my review. I have moved onto testing the HLS projects generated by onnx-to-hls. I notice small differences in CSIM between Conversely using the same test data (it's 100 samples of 16 features) I get exact agreement with the [1] input vector |
|
We talked some more offline, and I'm satisfied that the onnx model version of BatchNormalization is slightly optimized compared to the keras-to-hls version. When converting the keras model to onnx the |
ONNX to HLS conversion tool
Initial work on supporting ONNX.
Currently supported layers:
Tested with models converted from Keras and PyTorch