mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00
TensorRT FP16 export with dynamic=True
(#7870)
This commit is contained in:
parent
51fb3d607e
commit
9bdd784bcc
@ -227,7 +227,7 @@ class Exporter:
|
|||||||
y = None
|
y = None
|
||||||
for _ in range(2):
|
for _ in range(2):
|
||||||
y = model(im) # dry runs
|
y = model(im) # dry runs
|
||||||
if self.args.half and (engine or onnx) and self.device.type != "cpu":
|
if self.args.half and onnx and self.device.type != "cpu":
|
||||||
im, model = im.half(), model.half() # to FP16
|
im, model = im.half(), model.half() # to FP16
|
||||||
|
|
||||||
# Filter warnings
|
# Filter warnings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user