Open busFred opened 1 week ago
Yep this is likely because of the ugly monkey patching we're doing. The plan would be to be able to extend vmap like we extend stack and such, and I opened a PR with that but never really moved forward with it https://github.com/pytorch/pytorch/pull/135471
In the meantime I could patch the "tensordict" vmap to make this work!
Describe the bug
torch.vmap
seems to be incompatible withtensordict.TensorDictBase
input whenchunk_size
is not None.To Reproduce
Steps to reproduce the behavior.
Please try to provide a minimal example to reproduce the bug. Error messages and stack traces are also helpful.
Please use the markdown code blocks for both code and stack traces.
Expected behavior
The expected behavior is no error should be spit out.
Screenshots
nope.
System info
Describe the characteristic of your environment:
Additional context
might be related to #823
Reason and Possible fixes
If you know or suspect the reason for this bug, paste the code lines and suggest modifications.
Checklist