[functorch] Added debug commands

This commit is contained in:
Horace He
2021-04-29 14:20:26 -07:00
committed by Jon Janzen
parent 033e6e30af
commit 03550ccd61

View File

@ -156,6 +156,10 @@ batched jacobians:
>>> hessian = jacrev(jacrev(f))(x)
```
## Debugging
`functorch._C.dump_tensor`: Dumps dispatch keys on stack
`torch._C._debug_only_display_vmap_fallback_warnings(True)`: Shows vmap fallbacks to loop/stack
## Future Plans
In the end state, we'd like to upstream this into PyTorch once we iron out the