-
Notifications
You must be signed in to change notification settings - Fork 362
fix: Allow full model compilation with collection inputs (input_signature
)
#1656
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: Allow full model compilation with collection inputs (input_signature
)
#1656
Conversation
Pending PR #1599 . |
a219e05
to
71ac294
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@gs-olive Can you add collection example usage to our README https://github.com/pytorch/TensorRT#python ? And mention a line or two about how we can send collection inputs for an example model. You can add it there and also here https://pytorch.org/TensorRT/getting_started/getting_started_with_python_api.html (source) |
- Allow users to specify full model compilation when using `input_signature`, which allows for complex collection-based inputs - Enable "psuedo-partitioning" phase for input collections as well as output collections - Update `OutputIsCollection` to include dictionary outputs, and add function `InputIsCollection` to detect collection-based inputs during graph compilation - Remove automatic fallback for collection pack/unpack operations when using `input_signature` argument - Add collections tests to ensure full compilation is respected for input and output collections
- Add documentation to `README` for usage of input signature - Add documentation to "Getting Started" page for usage of input signature
71ac294
to
985f6a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
input_signature
, which allows for complex collection-based inputsOutputIsCollection
to include dictionary outputs, and add functionInputIsCollection
to detect collection-based inputs during graph compilationinput_signature
argumentFixes #1602
Fixes #1293
Addresses #1595
Type of change
Checklist: