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
1a2b306f
Unverified
Commit
1a2b306f
authored
Nov 03, 2018
by
Minjie Wang
Committed by
GitHub
Nov 03, 2018
Browse files
[Bug] fix bug in nodes() that does not return int64 tensor (#116)
parent
68ec6247
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/view.py
python/dgl/view.py
+1
-1
No files found.
python/dgl/view.py
View file @
1a2b306f
...
@@ -45,7 +45,7 @@ class NodeView(object):
...
@@ -45,7 +45,7 @@ class NodeView(object):
def
__call__
(
self
):
def
__call__
(
self
):
"""Return the nodes."""
"""Return the nodes."""
return
F
.
arange
(
0
,
len
(
self
))
return
F
.
arange
(
0
,
len
(
self
)
,
dtype
=
F
.
int64
)
class
NodeDataView
(
MutableMapping
):
class
NodeDataView
(
MutableMapping
):
__slot__
=
[
'_graph'
,
'_nodes'
]
__slot__
=
[
'_graph'
,
'_nodes'
]
...
...
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