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

to C #11

Closed
fab1an2 opened this issue Oct 23, 2019 · 3 comments
Closed

to C #11

fab1an2 opened this issue Oct 23, 2019 · 3 comments

Comments

@fab1an2
Copy link

fab1an2 commented Oct 23, 2019

Is possible add a function to generate C program without dependencies?
For example I put data, learn in Crystal, but at end I get one simple finction in C

#define WEIGHTS ....
int result(data *input.....)
{
}

ideal for embeded, no dependencies, no load any file. Only put input and get output

@bararchy
Copy link
Member

Well, FANN is originally a C librery, I don't see the point in writing in Crystal, then export it to C if you already have C that does the same :)

maybe I didn't understand your use case though

@bararchy
Copy link
Member

@fab1an2
Copy link
Author

fab1an2 commented Oct 24, 2019

not this same
Why I must load weights? Why I must using file to store bias etc?

No problem You can generating Crystal code
but one function to predict answer.
On last You dont needed learning, data etc.
only get output/solution

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