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
3e43d7b8d203df1f2e2e2f0b5c029dfebeec549b
3e43d7b8d203df1f2e2e2f0b5c029dfebeec549b
Switch branch/tag
dgl
tests
pytorch
utils.py
Find file
Normal view
History
Permalink
utils.py
91 Bytes
Edit
Web IDE
Newer
Older
[Test] Lower allclose precision (#129)
Minjie Wang
committed
Nov 08, 2018
1
2
3
4
import
torch
as
th
def
allclose
(
a
,
b
):
return
th
.
allclose
(
a
,
b
,
rtol
=
1e-4
,
atol
=
1e-4
)