pytorch / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://pytorch.org
Other
84.42k stars 22.74k forks source link

Web support? #54035

Open batrlatom opened 3 years ago

batrlatom commented 3 years ago

🚀 Feature

Runtime for running Pytorch models on web

Motivation

Websites are still cornerstones of the internet. Unlike mobile applications, websites do not need to be installed, there are no restrictions from gatekeepers such as google or apple and overall it would have a very positive effect on the spread of smart applications.

Pitch

I would to have a pytorch alternative of Tensorflowjs

Alternatives

Tensorflowjs

Additional context

I think that it does not need to be written in javascript, maybe just runtime executed in the webassembly would be sufficient

gchanan commented 3 years ago

Previously requested: https://github.com/pytorch/pytorch/issues/27426

zou3519 commented 3 years ago

We're not sure we would accept this into PT core, but we agree that this would be a large and important feature that could stand alone in its own repo.

bwasti commented 2 years ago

@batrlatom As I've just commented in some other feature requests, I've been working on a proposal for a torch.js API here: https://dev-discuss.pytorch.org/t/proposal-torch-js-a-javascript-frontend-for-pytorch/650/1