Unverified Commit 0f565759 authored by Zihao Ye's avatar Zihao Ye Committed by GitHub
Browse files

[feature] Allow copy_e + udf reduce function (#1996)

* up

* pylint
parent f5eb80d2
...@@ -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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment