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

Added TRTWrapper #7990

Merged
merged 90 commits into from
Sep 1, 2024
Merged

Added TRTWrapper #7990

merged 90 commits into from
Sep 1, 2024

Conversation

borisfom
Copy link
Contributor

@borisfom borisfom commented Aug 5, 2024

Description

Added alternative class to ONNX->TRT export and wrap TRT engines for inference.
It encapsulates filesystem persistence and does not rely on torch-tensortrt for execution.
Also can be used to run ONNX with onnxruntime.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@yiheng-wang-nv
Copy link
Contributor

/black

borisfom and others added 18 commits August 5, 2024 23:37
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
@borisfom borisfom requested a review from yiheng-wang-nv August 7, 2024 03:32
monai/networks/utils.py Outdated Show resolved Hide resolved
@KumoLiu
Copy link
Contributor

KumoLiu commented Aug 28, 2024

/build

Signed-off-by: Boris Fomitchev <[email protected]>
@KumoLiu
Copy link
Contributor

KumoLiu commented Aug 29, 2024

I'll try to merge this after the base image is updated in this PR. Still working through the failed test cases.

Copy link
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Thanks.

@borisfom
Copy link
Contributor Author

@KumoLiu : looks like #8049 is ready to merge ?

@KumoLiu
Copy link
Contributor

KumoLiu commented Aug 30, 2024

@KumoLiu : looks like #8049 is ready to merge ?

Hi @borisfom, yes, it may need #8058 merge since after updating the base image, there are some cuda sync issue need to be addressed. Will merge these three prs after the test on the blossom all pass. Thanks!

@KumoLiu
Copy link
Contributor

KumoLiu commented Aug 31, 2024

/build

1 similar comment
@KumoLiu
Copy link
Contributor

KumoLiu commented Aug 31, 2024

/build

@KumoLiu KumoLiu merged commit c9f8d32 into Project-MONAI:dev Sep 1, 2024
28 checks passed
yiheng-wang-nv added a commit to Project-MONAI/model-zoo that referenced this pull request Sep 10, 2024
Sample implementation of using new trt_wrap() from MONAI
Depends on Project-MONAI/MONAI#7990

---------

Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Yiheng Wang <[email protected]>
Signed-off-by: binliu <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yiheng Wang <[email protected]>
Co-authored-by: binliu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants