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
torch-spline-conv
Commits
4c16e41b
Commit
4c16e41b
authored
Aug 30, 2022
by
yanbing-j
Browse files
Fix lint error
parent
d6a017ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
test/test_conv.py
test/test_conv.py
+2
-1
No files found.
test/test_conv.py
View file @
4c16e41b
...
@@ -56,7 +56,8 @@ def test_spline_conv_forward(test, dtype, device):
...
@@ -56,7 +56,8 @@ def test_spline_conv_forward(test, dtype, device):
is_open_spline
,
1
,
True
,
root_weight
,
bias
)
is_open_spline
,
1
,
True
,
root_weight
,
bias
)
if
dtype
==
torch
.
bfloat16
:
if
dtype
==
torch
.
bfloat16
:
target
=
torch
.
tensor
(
test
[
'expected'
])
target
=
torch
.
tensor
(
test
[
'expected'
])
assert
torch
.
allclose
(
out
.
to
(
torch
.
float
),
target
,
rtol
=
1e-2
,
atol
=
1e-2
)
assert
torch
.
allclose
(
out
.
to
(
torch
.
float
),
target
,
rtol
=
1e-2
,
atol
=
1e-2
)
else
:
else
:
assert
out
.
tolist
()
==
test
[
'expected'
]
assert
out
.
tolist
()
==
test
[
'expected'
]
...
...
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