This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Description
autograd.functional has benchmarks: https://github.com/pytorch/pytorch/blob/master/benchmarks/functional_autograd_benchmark/utils.py
We should add an option to run them using functorch. It'll probably look something like "if can import functorch, then run them, otherwise, just do the usual thing of autograd.functional"
Motivation
- To get a clearer sense of what functorch perf really looks like when compared with autograd.functional. We have anecdata of order-of-magnitude speedups on various models.
cc @albanD @soulitzer if you folks have thoughts on if the benchmarks should go there or elsewhere