Skip to content

Commit

Permalink
refactor: More useful torch version information
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Jul 22, 2022
1 parent 2be072a commit 8fa9fbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions py/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-f https://download.pytorch.org/whl/torch_stable.html
-f https://download.pytorch.org/whl/torch/
--extra-index-url https://download.pytorch.org/whl/cu113
torch==1.11.0+cu113
torch==1.11.0
pybind11==2.6.2
6 changes: 5 additions & 1 deletion py/torch_tensorrt/_util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from torch_tensorrt import __version__
from torch_tensorrt import _C

import torch


def dump_build_info():
"""Prints build information about the torch_tensorrt distribution to stdout
Expand All @@ -15,7 +17,9 @@ def get_build_info() -> str:
str: String containing the build information for torch_tensorrt distribution
"""
build_info = _C.get_build_info()
build_info = "Torch-TensorRT Version: " + str(__version__) + '\n' + build_info
build_info = "Torch-TensorRT Version: " + str(__version__) + '\n' \
+ "Using PyTorch Version: " + str(torch.__version__) + '\n' \
+ build_info
return build_info


Expand Down

0 comments on commit 8fa9fbf

Please sign in to comment.