[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for TensorRT 10 #68715

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Conversation

benbarsdell
Copy link
Contributor

TensorRT 10 makes a number of breaking changes to its API, requiring fixes in many places in the TF-TRT code. Most of the changes are straightforward though.

Opening as a draft because there is one set of tests that are still known to fail.

cc @nluehr @cliffwoolley

meena-at-work and others added 12 commits May 28, 2024 20:17
Signed-off-by: Meenakshi Venkataraman <meenakshiv@nvidia.com>
Signed-off-by: Meenakshi Venkataraman <meenakshiv@nvidia.com>
- TRT10 changed the output dtype of shape layers from int32 to int64,
  which causes mismatches with other layers. This commit adds cast
  layers to avoid the mismatches.
- Note that this also adds support for the out_dtype attribute of TF's
  Shape operator.
- Also avoids runtime warnings about the hasImplicitBatchDimension
  API.
- It seems that the number of inputs no longer needs to be divided
  by the number of profiles. This manifested as a confusing bug
  because it caused values in the array of min/max/opt to be written
  over the top of existing values instead of at the end, and this
  subsequently prevented shapes from being matched when looking up
  engines.
- use_dynamic_shape=False is not supported since TensorRT 10.0.
- Also expands the related error message.
@google-ml-butler google-ml-butler bot added the size:XL CL Change Size:Extra Large label May 28, 2024
@google-ml-butler google-ml-butler bot requested a review from poulsbo May 28, 2024 11:11
@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label May 28, 2024
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation May 28, 2024
@gbaned gbaned removed the awaiting review Pull request awaiting review label May 28, 2024
@poulsbo
Copy link
Collaborator
poulsbo commented May 28, 2024

Hm, afaik I should not be the reviewer on this -- it should be someone at Nvidia affiliated with TensorRT.

@poulsbo poulsbo removed their request for review May 28, 2024 19:37
@nluehr
Copy link
Contributor
nluehr commented May 28, 2024

@beckerhe who can review this PR?

@google-ml-butler google-ml-butler bot added the awaiting review Pull request awaiting review label May 29, 2024
@gbaned gbaned removed the awaiting review Pull request awaiting review label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL CL Change Size:Extra Large
Projects
PR Queue
  
Assigned Reviewer
Development

Successfully merging this pull request may close these issues.

None yet

5 participants