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
0f565759
Unverified
Commit
0f565759
authored
Aug 11, 2020
by
Zihao Ye
Committed by
GitHub
Aug 11, 2020
Browse files
[feature] Allow copy_e + udf reduce function (#1996)
* up * pylint
parent
f5eb80d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
python/dgl/ops/sddmm.py
python/dgl/ops/sddmm.py
+7
-1
No files found.
python/dgl/ops/sddmm.py
View file @
0f565759
...
@@ -5,7 +5,7 @@ import sys
...
@@ -5,7 +5,7 @@ import sys
from
..backend
import
gsddmm
as
gsddmm_internal
from
..backend
import
gsddmm
as
gsddmm_internal
from
..
import
backend
as
F
from
..
import
backend
as
F
__all__
=
[
'gsddmm'
,
'copy_u'
,
'copy_v'
]
__all__
=
[
'gsddmm'
,
'copy_u'
,
'copy_v'
,
'copy_e'
]
def
gsddmm
(
g
,
op
,
lhs_data
,
rhs_data
,
lhs_target
=
'u'
,
rhs_target
=
'v'
):
def
gsddmm
(
g
,
op
,
lhs_data
,
rhs_data
,
lhs_target
=
'u'
,
rhs_target
=
'v'
):
...
@@ -161,4 +161,10 @@ def copy_v(g, x):
...
@@ -161,4 +161,10 @@ def copy_v(g, x):
return
gsddmm
(
g
,
'copy_rhs'
,
None
,
x
)
return
gsddmm
(
g
,
'copy_rhs'
,
None
,
x
)
# pylint: disable=unused-argument
def
copy_e
(
g
,
x
):
r
"""Generalized SDDMM function that copies destination node features to edges."""
return
x
_register_sddmm_func
()
_register_sddmm_func
()
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