Builtin functions

DGL builtin functors

Message functions

copy_src(src, out) Builtin message function that computes message using source node feature.
copy_edge(edge, out) Builtin message function that computes message using edge feature.
src_mul_edge(src, edge, out) Builtin message function that computes message by performing binary operation mul between src feature and edge feature.
copy_u(u, out) Builtin message function that computes message using source node feature.
copy_e(e, out) Builtin message function that computes message using edge feature.
u_add_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation add between src feature and dst feature.
u_sub_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation sub between src feature and dst feature.
u_mul_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation mul between src feature and dst feature.
u_div_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation div between src feature and dst feature.
u_add_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation add between src feature and edge feature.
u_sub_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation sub between src feature and edge feature.
u_mul_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation mul between src feature and edge feature.
u_div_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation div between src feature and edge feature.
v_add_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation add between dst feature and src feature.
v_sub_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation sub between dst feature and src feature.
v_mul_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation mul between dst feature and src feature.
v_div_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation div between dst feature and src feature.
v_add_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation add between dst feature and edge feature.
v_sub_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation sub between dst feature and edge feature.
v_mul_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation mul between dst feature and edge feature.
v_div_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation div between dst feature and edge feature.
e_add_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation add between edge feature and src feature.
e_sub_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation sub between edge feature and src feature.
e_mul_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation mul between edge feature and src feature.
e_div_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation div between edge feature and src feature.
e_add_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation add between edge feature and dst feature.
e_sub_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation sub between edge feature and dst feature.
e_mul_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation mul between edge feature and dst feature.
e_div_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation div between edge feature and dst feature.
u_dot_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation dot between src feature and dst feature.
u_dot_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation dot between src feature and edge feature.
v_dot_e(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation dot between dst feature and edge feature.
v_dot_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation dot between dst feature and src feature.
e_dot_u(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation dot between edge feature and src feature.
e_dot_v(lhs_field, rhs_field, out) Builtin message function that computes message by performing binary operation dot between edge feature and dst feature.

Reduce functions

sum(msg, out) Builtin reduce function that aggregates messages by sum.
max(msg, out) Builtin reduce function that aggregates messages by max.
min(msg, out) Builtin reduce function that aggregates messages by min.
prod(msg, out) Builtin reduce function that aggregates messages by prod.
mean(msg, out) Builtin reduce function that aggregates messages by mean.