Skip to content

Add TensorRT binding size dimension specification - #36435

Merged
tensorflow-copybara merged 5 commits into
tensorflow:masterfrom
tfeher:trt_binding_size
Feb 10, 2020
Merged

tensorflow-copybara merged 5 commits into
tensorflow:masterfrom
tfeher:trt_binding_size

Conversation

@tfeher

@tfeher tfeher commented Feb 3, 2020 •

Copy link
Copy Markdown
Contributor

This PR enables binding size specification (explained below). This is a building block towards enabling inference with dynamic shapes.

Currently dynamic shapes are not used, therefore this PR does not change any existing behavior.

TensorRT bindings are an array of pointers to the input and output buffers for the network. In earlier versions of TensorRT, the size of the input and output tensors had to be specified during engine creation time. Since TensorRT 6, the inputs and outputs can have dynamic shapes (unknown during engine creation time). To perform inference with dynamic shapes, we have to specify the actual dimensions before we run the inference. This is implemented in this PR.

@tensorflow-bot tensorflow-bot Bot added the size:L CL Change Size: Large label Feb 3, 2020
@gbaned gbaned self-assigned this Feb 4, 2020
@gbaned
gbaned requested review from bixia1 and sanjoy and removed request for sanjoy February 4, 2020 05:08
@gbaned gbaned added the comp:gpu:tensorrt Issues specific to TensorRT label Feb 4, 2020

@bixia1 bixia1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make the PR description more concise and remove the mentioning of the other two PRs?

@tfeher

tfeher commented Feb 7, 2020

Copy link
Copy Markdown
Contributor Author

Updated the PR description.

@tensorflow-bot tensorflow-bot Bot added kokoro:force-run Tests on submitted change ready to pull PR ready for merge process labels Feb 7, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Feb 7, 2020
ArmageddonKnight pushed a commit to UofT-EcoSystem/tensorflow that referenced this pull request Feb 10, 2020
PiperOrigin-RevId: 294152453
Change-Id: I07ea169bde488ff868f3b5521c8bba58a867658d
@tensorflow-copybara
tensorflow-copybara merged commit 368f59c into tensorflow:master Feb 10, 2020
@tfeher
tfeher deleted the trt_binding_size branch May 16, 2022 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes comp:gpu:tensorrt Issues specific to TensorRT ready to pull PR ready for merge process size:L CL Change Size: Large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants