From 7a2cf588e3a9c41fbca05e77d9a40090985223fb Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Sat, 1 Oct 2022 10:29:32 -0700 Subject: [PATCH] Cast `torch.__version__` to string To squash the warnings during the build time --- conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index a1882205e6c..f9c8a512d8b 100644 --- a/conf.py +++ b/conf.py @@ -141,9 +141,9 @@ # built documents. # # The short X.Y version. -version = torch.__version__ +version = str(torch.__version__) # The full version, including alpha/beta/rc tags. -release = torch.__version__ +release = str(torch.__version__) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.