Skip to content

Commit 7bc4bc4

Browse files
authored
Fix Extra VRAM Usage in PPTRT (PaddlePaddle#76296)
1 parent 7928bb7 commit 7bc4bc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/paddle/tensorrt/export.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ def convert_to_trt(program, trt_config, scope):
390390
scope=scope,
391391
)
392392

393+
paddle.device.empty_cache()
394+
393395
# specify certain operators to be excluded from entering TensorRT
394396
if trt_config.disable_ops:
395397
forbid_op_lower_trt(program, trt_config.disable_ops)

0 commit comments

Comments
 (0)