Skip to content

Commit 8fa9fbf

Browse files
committed
refactor: More useful torch version information
Signed-off-by: Naren Dasan <[email protected]>
1 parent 2be072a commit 8fa9fbf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

py/requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
-f https://download.pytorch.org/whl/torch_stable.html
2-
-f https://download.pytorch.org/whl/torch/
31
--extra-index-url https://download.pytorch.org/whl/cu113
4-
torch==1.11.0+cu113
2+
torch==1.11.0
53
pybind11==2.6.2

py/torch_tensorrt/_util.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from torch_tensorrt import __version__
22
from torch_tensorrt import _C
33

4+
import torch
5+
46

57
def dump_build_info():
68
"""Prints build information about the torch_tensorrt distribution to stdout
@@ -15,7 +17,9 @@ def get_build_info() -> str:
1517
str: String containing the build information for torch_tensorrt distribution
1618
"""
1719
build_info = _C.get_build_info()
18-
build_info = "Torch-TensorRT Version: " + str(__version__) + '\n' + build_info
20+
build_info = "Torch-TensorRT Version: " + str(__version__) + '\n' \
21+
+ "Using PyTorch Version: " + str(torch.__version__) + '\n' \
22+
+ build_info
1923
return build_info
2024

2125

0 commit comments

Comments
 (0)