Have you tried Jax or Taichi? https://www.taichi-lang.org/
For Monte Carlo simulations, Pyro and tensorflow_probability have also nice abstractions.
For Monte Carlo simulations, Pyro and tensorflow_probability have also nice abstractions.
Yes, tested and used Jax for some prototyping but it felt like still has "two language problem". But Taichi looks quite interesting, will check out.
Of course, forgot to mention, it has to be lightweight, torch and tf are now huge platforms. Not sure, probably Julia-lang is much small.