When strict_type_constraints is True, accessing trt.BuilderFlag.STRICT_TYPES causes AttributeError: type object 'tensorrt.tensorrt.BuilderFlag' has no attribute 'STRICT_TYPES'. Indeed, there is no such builder flag in TensorRT, and it should be replaced by trt.BuilderFlag.OBEY_PRECISION_CONSTRAINTS.
Type of change
Bug fix (non-breaking change which fixes an issue)
Checklist:
[x] My code follows the style guidelines of this project (You can use the linters)
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas and hacks
[x] I have made corresponding changes to the documentation
[x] I have added tests to verify my fix or my feature
[x] New and existing unit tests pass locally with my changes
[x] I have added the relevant labels to my PR in so that relevant reviewers are notified
Description
When
strict_type_constraints
isTrue
, accessingtrt.BuilderFlag.STRICT_TYPES
causesAttributeError: type object 'tensorrt.tensorrt.BuilderFlag' has no attribute 'STRICT_TYPES'
. Indeed, there is no such builder flag in TensorRT, and it should be replaced bytrt.BuilderFlag.OBEY_PRECISION_CONSTRAINTS
.Type of change
Bug fix (non-breaking change which fixes an issue)
Checklist: