binaryfoundry / pytorch-to-js-example

Write Simple PyTorch Model to Raw JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyTorch Model to JavaScript Sample

A simple example showing how to compile a PyTorch model to raw JavaScript.

Running the training script will train a model to approximate a circle, then open the .html file.

python3 train.py

Sample

About

Write Simple PyTorch Model to Raw JavaScript

License:MIT License


Languages

Language:Python 81.1%Language:HTML 18.9%