message: Fix version parsing with trt6
diff: @@ -386,18 +386,14 @@ def _find_tensorrt_config(base_paths, required_version):
  "NV_TENSORRT_PATCH"))
  return ".".join(version)
  - header_path, header_version = _find_header(base_paths, "NvInfer.h",
  - required_version,
  - get_header_version)
  -
  - if ".." in header_version:
  + trt_version_file = "NvInfer.h"
  + if (_at_least_version(required_version, "6")):
  # From TRT 6.0 onwards, version information has been moved to NvInferVersion.h.
  - header_path, header_version = _find_header(base_paths, "NvInferVersion.h",
  - required_version,
  - get_header_version)
  + trt_version_file = "NvInferVersion.h"
  - tensorrt_version = header_version.split(".")[0]
  + header_path, header_version = _find_header(base_paths, trt_version_file, required_version, get_header_version)
  + tensorrt_version = header_version.split(".")[0]
  library_path = _find_library(base_paths, "nvinfer", tensorrt_version)
  return {
  