torch.func
torch.func, previously known as “functorch”, is JAX-like composable function transforms for PyTorch.
What are composable function transforms?
A “function transform” is a higher-order function that accepts a numerical function and returns a new function that computes a different quantity.