by jlebar · 6y ago · 0 comments
The API is numpy plus like four functions. That's the beginning and end. It does JIT compilation under the hood, so can run quite fast.
Since JAX's API is lower-level, you can choose a neural network API that doesn't have the problems of TF's API. Or worst case, you make it yourself; you can see that the higher-level APIs provided by JAX are all very simple.
When writing code in JAX, I often start by write code eagerly and then try to jit increasingly large pieces to get more performance.
You might also find the experimental control flow interesting since it tries to be more pythonic while also being possible to jit-compile. (https://github.com/google/jax/blob/master/jax/experimental/l...)