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

Function get_version

setup.py:61–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def get_version():
62 version_file = Path(
63 __file__).resolve().parent / "tensorrt_llm" / "version.py"
64 version = None
65 with open(version_file) as f:
66 for line in f:
67 if not line.startswith("__version__"):
68 continue
69 version = line.split('"')[1]
70
71 if version is None:
72 raise RuntimeError(f"Could not set version from {version_file}")
73
74 return version
75
76
77def get_license():

Callers 1

setup.pyFile · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected