Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
35e25914
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "d9d94e12f36141db1836cf08db29dca8518cb5ad"
Unverified
Commit
35e25914
authored
Aug 20, 2020
by
Jinjing Zhou
Committed by
GitHub
Aug 20, 2020
Browse files
Update version check of PyTorch to 1.5 (#2079)
parent
debfd4bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/dgl/backend/pytorch/tensor.py
python/dgl/backend/pytorch/tensor.py
+2
-2
No files found.
python/dgl/backend/pytorch/tensor.py
View file @
35e25914
...
@@ -13,8 +13,8 @@ from ..._deprecate import kernel as K
...
@@ -13,8 +13,8 @@ from ..._deprecate import kernel as K
from
...function.base
import
TargetCode
from
...function.base
import
TargetCode
from
...base
import
dgl_warning
from
...base
import
dgl_warning
if
LooseVersion
(
th
.
__version__
)
<
LooseVersion
(
"1.
2
.0"
):
if
LooseVersion
(
th
.
__version__
)
<
LooseVersion
(
"1.
5
.0"
):
dgl_warning
(
"Detected an old version of PyTorch. Suggest using torch>=1.
2
.0 "
dgl_warning
(
"Detected an old version of PyTorch. Suggest using torch>=1.
5
.0 "
"for the best experience."
)
"for the best experience."
)
def
data_type_dict
():
def
data_type_dict
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment