MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / trt_gte

Function trt_gte

tensorrt_llm/_utils.py:129–134  ·  view source on GitHub ↗

Check if TRT version is greater than or equal to major.minor

(major: int, minor: int = 0)

Source from the content-addressed store, hash-verified

127
128
129def trt_gte(major: int, minor: int = 0):
130 """
131 Check if TRT version is greater than or equal to major.minor
132 """
133 trt_ver = version.parse(trt_version())
134 return trt_ver.major >= major and trt_ver.minor >= minor
135
136
137def torch_version():

Callers 2

LayerClass · 0.70
create_builder_configMethod · 0.70

Calls 2

trt_versionFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected