pytorch
bb673fb1 - fix: update error when tensor escapes vmap (#89077)

Commit
2 years ago
fix: update error when tensor escapes vmap (#89077) Fixes https://github.com/pytorch/functorch/issues/1054 @zou3519, I played around with it, but I am unsure of how to repro the cases for gen_vmap_inplace_plumbing and below in gen_vmap_plumbing_no_returns I've also seen that there are 24 other instances of the `TORCH_INTERNAL_ASSERT(maybe_layer.has_value());` assert, should I change all of these and add tests? Pull Request resolved: https://github.com/pytorch/pytorch/pull/89077 Approved by: https://github.com/zou3519
Author
Committer
Parents
Loading