Skip to content

Commit

Permalink
Remove memory_pool_limit in trt config (#7647)
Browse files Browse the repository at this point in the history
Fixes Project-MONAI/model-zoo#568.

### Description

Remove memory_pool_limit in trt config

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] 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.

Signed-off-by: YunLiu <[email protected]>
  • Loading branch information
KumoLiu authored Apr 16, 2024
1 parent bff4b15 commit 16d4e2f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion monai/networks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,6 @@ def _onnx_trt_compile(

# set up the conversion configuration
config = builder.create_builder_config()
config.set_memory_pool_limit(trt.MemoryPoolType.WORKSPACE, 1 << 31)
config.add_optimization_profile(profile)
if precision == "fp16":
config.set_flag(trt.BuilderFlag.FP16)
Expand Down

0 comments on commit 16d4e2f

Please sign in to comment.