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
9cc83b4b
Commit
9cc83b4b
authored
Jul 11, 2019
by
Pin
Committed by
Minjie Wang
Jul 10, 2019
Browse files
[Bugfix] Fix nodeflow.prop_flow range check (#700)
parent
bf3994ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/nodeflow.py
python/dgl/nodeflow.py
+1
-1
No files found.
python/dgl/nodeflow.py
View file @
9cc83b4b
...
@@ -938,7 +938,7 @@ class NodeFlow(DGLBaseGraph):
...
@@ -938,7 +938,7 @@ class NodeFlow(DGLBaseGraph):
if
is_all
(
flow_range
):
if
is_all
(
flow_range
):
flow_range
=
range
(
0
,
self
.
num_blocks
)
flow_range
=
range
(
0
,
self
.
num_blocks
)
elif
isinstance
(
flow_range
,
slice
):
elif
isinstance
(
flow_range
,
slice
):
if
slic
e
.
step
!=
1
:
if
flow_rang
e
.
step
!=
1
:
raise
DGLError
(
"We can't propogate flows and skip some of them"
)
raise
DGLError
(
"We can't propogate flows and skip some of them"
)
flow_range
=
range
(
flow_range
.
start
,
flow_range
.
stop
)
flow_range
=
range
(
flow_range
.
start
,
flow_range
.
stop
)
else
:
else
:
...
...
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