Skip to content

Commit

Permalink
Fix the bug that tensorRT batch_size does not take effect
Browse files Browse the repository at this point in the history
Signed-off-by: wuhongsheng <[email protected]>
  • Loading branch information
wuhongsheng authored Jun 7, 2023
1 parent 89c3040 commit 9f2b2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def run(
if f == '-':
w = weights # PyTorch format
else:
w = export.run(weights=weights, imgsz=[imgsz], include=[f], device=device, half=half)[-1] # all others
w = export.run(weights=weights, imgsz=[imgsz], include=[f], batch_size=batch_size, device=device, half=half)[-1] # all others
assert suffix in str(w), 'export failed'

# Validate
Expand Down

0 comments on commit 9f2b2a0

Please sign in to comment.