Remove unnecessary size check in TensorRT v10 block

This commit is contained in:
Rémi Bédard-Couture 2024-05-05 10:01:35 -04:00
parent 9a642086f9
commit 408f295416

View File

@ -175,9 +175,6 @@ class TensorRtDetector(DetectionApi):
if len(binding_dims) == 4:
# explicit batch case (TensorRT 7+)
size = trt.volume(binding_dims)
elif len(binding_dims) == 3:
# implicit batch case (TensorRT 6 or older)
size = trt.volume(binding_dims) * self.engine.max_batch_size
else:
raise ValueError(
"bad dims of binding %s: %s" % (binding, str(binding_dims))