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
ed1854e8
Commit
ed1854e8
authored
Nov 15, 2018
by
Gan Quan
Committed by
Minjie Wang
Nov 15, 2018
Browse files
[Bugfix] fix a potential context mismatch (#154)
parent
53b9a4bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python/dgl/scheduler.py
python/dgl/scheduler.py
+3
-2
No files found.
python/dgl/scheduler.py
View file @
ed1854e8
...
@@ -348,8 +348,9 @@ class SendRecvExecutor(BasicExecutor):
...
@@ -348,8 +348,9 @@ class SendRecvExecutor(BasicExecutor):
dat
=
F
.
squeeze
(
dat
,
dim
=
1
)
dat
=
F
.
squeeze
(
dat
,
dim
=
1
)
else
:
else
:
dat
=
F
.
ones
((
len
(
self
.
u
),
),
dtype
=
F
.
float32
,
ctx
=
ctx
)
dat
=
F
.
ones
((
len
(
self
.
u
),
),
dtype
=
F
.
float32
,
ctx
=
ctx
)
adjmat
=
F
.
sparse_matrix
(
dat
,
(
'coo'
,
self
.
graph_idx
),
self
.
graph_shape
)
adjmat
=
F
.
sparse_matrix
(
return
F
.
copy_to
(
adjmat
,
ctx
)
dat
,
(
'coo'
,
F
.
copy_to
(
self
.
graph_idx
,
ctx
)),
self
.
graph_shape
)
return
adjmat
class
BundledExecutor
(
BasicExecutor
):
class
BundledExecutor
(
BasicExecutor
):
...
...
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