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
Is tch-rs is can be implemented with wasm #256
Comments
This crate depends on Pytorch itself and links to it during build time, so you would need the Pytorch C++ lib itself to compile to WASM. |
@tiberiusferreira thanks, seem a bit impossible collaboration. So is there any way to do the integration |
Hello @amiyamandal-dev sorry for the delay. Yeah, it is theoretically possible to compile tch-rs + Pytorch C++ to wasm, but it would require compiling the CPU only non-vendor specific parts. I expect something like: https://webmachinelearning.github.io/webnn/ to make it easier to run Deep Learning in the browser. |
webnn seem pretty neat and I guess that the future and thanks for the reply. |
I have an idea to implement wasm and tch-rs so the app can leverage real-time machine learning models.
But build failed cause wasm uses wasm32-unknown-unknown toolchain whereas nightly-x86_64-unknown-linux-gnu for any project for tch-rs.
It's possible to do so with this crate.
The text was updated successfully, but these errors were encountered: