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

QUESTION: Possibility of using the lib to compile with no_std for embedding #196

Closed
antimora opened this issue Sep 29, 2022 · 2 comments
Closed

Comments

@antimora
Copy link

I recently discovered your library, and I think it's great. I have a requirement to compile NN with no_std for inferencing in an embedded setting. I am wondering if this is possible with dfdx or how easy it would be to modify

@antimora antimora changed the title Possibility of using the lib to compile with no_std for embedding QUESTION: Possibility of using the lib to compile with no_std for embedding Sep 29, 2022
@coreylowman
Copy link
Owner

Thanks for reaching out! This is an interesting one. I haven't worked with no_std before, but looking at https://docs.rust-embedded.org/book/intro/no-std.html#overview, it seems like at minimum we'd have to swap to using the alloc crate for allocations & Rc. Also all the nn serialization code uses std::io, which I'm not seeing in core?

Also depend on rand, rand_distr, and matrixmultiply which all do support no_std.

Overall this seems plausible and definitely a good use case for dfdx to support.

@coreylowman coreylowman mentioned this issue Sep 29, 2022
5 tasks
@antimora
Copy link
Author

Thank you for answering and creating a task to support this feature. It would be greatly appreciated by me and the greater Rust community. Your library would be an excellent addition to this growing list of libs: https://lib.rs/no-std.

We close this ticket as answered.

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