Quick tutorial on how to use tensorflow.js for optimization. For Geometry Collective 9/22/20.
Three simple pedagogical examples defined on 1x1 tensors (though note that you should use much larger tensors for a real problem, otherwise you risk significant slowdown).