-
Notifications
You must be signed in to change notification settings - Fork 370
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
SeeDot: ProtoNN X86 generated code (32-bit) gives segmentation fault #129
Comments
Hi @eirikvaa, Thank you for your interest in SeeDot. Could you please provide the exact command line used to generate code so that I can reproduce the error at my end? Also, did the errors occur after you modified Thanks, |
For the ProtoNN implementation I have used exactly the same command line arguments as in the tutorial provided.
The error did indeed occur after I had modified I am sure that I have introduced some error along the way, but not sure where. I hope the diff of the two pairs of files are helpful. I can also provide bigger parts of the project if necessary. |
It is hard for me to go through the diff to figure out the error. I have another suggestion. After SeeDot explores multiple programs, it will generate x86 code for the testing set in a temporary directory and executes that to obtain the accuracy of the fixed-point code. You can find this code in |
I can understand that. Ok, I will try that and report back, thank you very much for helping me out. |
Everything works! I think it just boils down to copying the wrong set of files into the output directory. Thank you very much for your help. |
I'm working on using the X86 backend instead of the Arduino backend for the SeeDot compiler. Edit: Here I'm using ProtoNN. I'm able to generate C++ code, but I get a segmentation fault on the following line in
seedot_fixed.cpp
:If I instead use 256, such that the line then becomes
then it works.
If we then assume that I have generated an executable called
main
and run this with the following commandthen I get the following output
although, at the end of the training, I'm presented with the following output
Edit: If I use Bonsai instead of ProtoNN, I get an accuracy of 26,5% (instead of 17,5% like above). And the segmentation fault is gone.
Some questions:
SeeDot.py
andmain.py
in theseedot
directory, as it was quite hardcoded for the Arduino platform.The text was updated successfully, but these errors were encountered: