Loop Conversion
Description
Dynamic loop conversion from PyTorch to TRT. A few limitations with this approach, as of now:
- all recurrent values inside loop can be Tensors only
- works with for loops, albeit with a comparative threshold (i.e. TRT vs JIT) that is greater than the set limit of 2e-5
- breaks converter contract: all primitive types (e.g. int, float, etc.) could potentially be Tensors when processed inside the converter
Type of change
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
- This change requires a documentation update
Checklist:
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas and hacks
- [ ] I have made corresponding changes to the documentation and have regenerated the documentation (
make htmlin docsrc) - [ ] I have added tests to verify my fix or my feature
- [ ] New and existing unit tests pass locally with my changes
TRT has no guarantee about output binding order.
e.g. an RNN loop that outputs hidden state hx and cell state cx might be reversed when outputs are processed, even if they were marked as inputs in the right order
This PR has not seen activity for 30 days, Remove stale label or comment or this will be closed in 5 days
This PR has not seen activity for 30 days, Remove stale label or comment or this will be closed in 5 days
This PR has not seen activity for 30 days, Remove stale label or comment or this will be closed in 5 days
This PR has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days
This PR has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days
Hi @abhi-iyer!
Thank you for your pull request and welcome to our community.
Action Required
In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.
Process
In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.
Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.
If you have received this in error or have any questions, please contact us at [email protected]. Thanks!
This PR has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!
This PR has not seen activity for 90 days, Remove stale label or comment or this will be closed in 10 days