Skip to content

Commit 9795575

Browse files
authored
Cast torch.__version__ to string (#2062)
To squash the warnings during the build time
1 parent 9dc2fcf commit 9795575

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141
# built documents.
142142
#
143143
# The short X.Y version.
144-
version = torch.__version__
144+
version = str(torch.__version__)
145145
# The full version, including alpha/beta/rc tags.
146-
release = torch.__version__
146+
release = str(torch.__version__)
147147

148148
# The language for content autogenerated by Sphinx. Refer to documentation
149149
# for a list of supported languages.

0 commit comments

Comments
 (0)