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
0d9acc9d
Unverified
Commit
0d9acc9d
authored
Dec 24, 2019
by
VoVAllen
Committed by
GitHub
Dec 24, 2019
Browse files
hot fix (#1135)
parent
a1b28b39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/compute/test_kernel.py
tests/compute/test_kernel.py
+2
-2
No files found.
tests/compute/test_kernel.py
View file @
0d9acc9d
...
@@ -303,8 +303,8 @@ def test_all_binary_builtins():
...
@@ -303,8 +303,8 @@ def test_all_binary_builtins():
def
_print_error
(
a
,
b
):
def
_print_error
(
a
,
b
):
print
(
"ERROR: Test {}_{}_{}_{} broadcast: {} partial: {}"
.
print
(
"ERROR: Test {}_{}_{}_{} broadcast: {} partial: {}"
.
format
(
lhs
,
binary_op
,
rhs
,
reducer
,
broadcast
,
partial
))
format
(
lhs
,
binary_op
,
rhs
,
reducer
,
broadcast
,
partial
))
print
(
"
Nodes"
,
g
.
nodes
())
print
(
"
lhs"
,
F
.
asnumpy
(
lhs
).
tolist
())
print
(
"
Edges:"
,
g
.
edges
())
print
(
"
rhs"
,
F
.
asnumpy
(
rhs
).
tolist
())
for
i
,
(
x
,
y
)
in
enumerate
(
zip
(
F
.
asnumpy
(
a
).
flatten
(),
F
.
asnumpy
(
b
).
flatten
())):
for
i
,
(
x
,
y
)
in
enumerate
(
zip
(
F
.
asnumpy
(
a
).
flatten
(),
F
.
asnumpy
(
b
).
flatten
())):
if
not
np
.
allclose
(
x
,
y
,
rtol
,
atol
):
if
not
np
.
allclose
(
x
,
y
,
rtol
,
atol
):
print
(
'@{} {} v.s. {}'
.
format
(
i
,
x
,
y
))
print
(
'@{} {} v.s. {}'
.
format
(
i
,
x
,
y
))
...
...
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