-
Notifications
You must be signed in to change notification settings - Fork 6
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
Testing rnsnorm #65
Comments
Modified code that collects data and stores it in files.
|
After having made changes to my rnsnorm function.
Test run to check if the model is inferenced correctly : |
Now I shall pass the data written to respective files to my c-lisp function to verify if the correct value is being computed. |
sample output received from rns.sexp : sample output received from the same function in c file. |
In my C function when I changed the code from
to
When I make the below change in my C file the output does match my rns.sexp file. But I havent yet found a way to match the original unchanged C function values to my rns.sexp |
I did not use the data collected this way. Instead we generated it. How did I generate my inputs in C function ? Function and command used to store data into weight_generated.txt :
command used : function and command used to store data into x_generated.txt :
command used : For my C version of rnsnorm. I used the inputs from the above two files to calculate the output. |
While calculating the outputs for rns.sexp. I did not print the outputs of the generated number for the floating point array "w" and "x". Instead I just stored them and used it for further calculations. |
#63
I found where the issue is in your code:
That way you should get the same number. |
Made this small change in C-lisp as suggested
Output from C-file:
|
We do not need sqrt_f function defined in runtime.c in order to access the sqrtf function . I have used sqrtf function from C libraries which will be linked with -lm option when compiling with clang.
|
This is in continuation after : [(https://github.com//issues/63)]
This will contain the steps taken to test the rnsnorm function.
Original Code :
The text was updated successfully, but these errors were encountered: