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

output functions #4

Open
letarg0 opened this issue Apr 9, 2018 · 3 comments
Open

output functions #4

letarg0 opened this issue Apr 9, 2018 · 3 comments

Comments

@letarg0
Copy link

letarg0 commented Apr 9, 2018

Is posssible to create a autput function in C?
For example I learn my network and need embeding this function to my program in C
is possible to save in file a C function (pieces of program) with all variables, bies etc.
only one big function

@tsandstr
Copy link

tsandstr commented Apr 9, 2018

The best way to do this is probably to simply export your trained network to a TINN file with the xtsave() function. You can then package this file with your application. When you want to use the network, use the xtload() function. This will make your source much neater than defining a function that contains every weight for the network.

@glouw
Copy link
Owner

glouw commented Apr 10, 2018

Thats correct. just xtsave() it and xtload() it next time. You can use xtpredict() all you like with the loaded network. I do so in an embedded setting where I train on a powerful desktop and xtload() and xtpredict() on a MCU.

@letarg0
Copy link
Author

letarg0 commented Apr 10, 2018

better way is export to #define constant
tis is smalest and fastest. embeded program not always have a disk or big memory

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

3 participants