PyTorch Model to JavaScript Code Example
Had a need to approximate a function in a very minimal environment lately, so here’s an example of how to write a PyTorch model to raw JavaScript. Might expand to do GLSL at some point.
Written on September 4, 2019