Skip to content

Commit

Permalink
upd (dmlc#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh119 authored Sep 14, 2019
1 parent 0a56d65 commit a8c2882
Showing 1 changed file with 35 additions and 39 deletions.
74 changes: 35 additions & 39 deletions docs/source/features/builtin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,45 +75,41 @@ required (e.g. ``pull``, ``push``, ``send_and_recv``, etc.).

Here is a cheatsheet of all the DGL builtins.

+-------------------------+----------------------------------------------------+-----------------------+
| Category | Functions | Memo |
+=========================+====================================================+=======================+
| Unary message function | ``copy_u`` | |
| +----------------------------------------------------+-----------------------+
| | ``copy_e`` | |
| +----------------------------------------------------+-----------------------+
| | ``copy_src`` | alias of ``copy_u`` |
| +----------------------------------------------------+-----------------------+
| | ``copy_edge`` | alias of ``copy_e`` |
+-------------------------+----------------------------------------------------+-----------------------+
| Binary message function | ``u_add_v``, ``u_sub_v``, ``u_mul_v``, ``u_div_v`` | |
| +----------------------------------------------------+-----------------------+
| | ``u_add_e``, ``u_sub_e``, ``u_mul_e``, ``u_div_e`` | |
| +----------------------------------------------------+-----------------------+
| | ``v_add_u``, ``v_sub_u``, ``v_mul_u``, ``v_div_u`` | |
| +----------------------------------------------------+-----------------------+
| | ``v_add_e``, ``v_sub_e``, ``v_mul_e``, ``v_div_e`` | |
| +----------------------------------------------------+-----------------------+
| | ``e_add_u``, ``e_sub_u``, ``e_mul_u``, ``e_div_u`` | |
| +----------------------------------------------------+-----------------------+
| | ``e_add_v``, ``e_sub_v``, ``e_mul_v``, ``e_div_v`` | |
| +----------------------------------------------------+-----------------------+
| | ``u_dot_v``, ``u_dot_e``, ``v_dot_e`` | |
| +----------------------------------------------------+-----------------------+
| | ``v_dot_u``, ``e_dot_u``, ``e_dot_v`` | |
| +----------------------------------------------------+-----------------------+
| | ``src_mul_edge`` | alias of ``u_mul_e`` |
+-------------------------+----------------------------------------------------+-----------------------+
| Reduce function | ``max`` | |
| +----------------------------------------------------+-----------------------+
| | ``min`` | |
| +----------------------------------------------------+-----------------------+
| | ``sum`` | |
| +----------------------------------------------------+-----------------------+
| | ``prod`` | |
| +----------------------------------------------------+-----------------------+
| | ``mean`` | |
+-------------------------+----------------------------------------------------+-----------------------+
+-------------------------+-----------------------------------------------------------------+-----------------------+
| Category | Functions | Memo |
+=========================+=================================================================+=======================+
| Unary message function | ``copy_u`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``copy_e`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``copy_src`` | alias of ``copy_u`` |
| +-----------------------------------------------------------------+-----------------------+
| | ``copy_edge`` | alias of ``copy_e`` |
+-------------------------+-----------------------------------------------------------------+-----------------------+
| Binary message function | ``u_add_v``, ``u_sub_v``, ``u_mul_v``, ``u_div_v``, ``u_dot_v`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``u_add_e``, ``u_sub_e``, ``u_mul_e``, ``u_div_e``, ``u_dot_e`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``v_add_u``, ``v_sub_u``, ``v_mul_u``, ``v_div_u``, ``v_dot_u`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``v_add_e``, ``v_sub_e``, ``v_mul_e``, ``v_div_e``, ``v_dot_e`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``e_add_u``, ``e_sub_u``, ``e_mul_u``, ``e_div_u``, ``e_dot_u`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``e_add_v``, ``e_sub_v``, ``e_mul_v``, ``e_div_v``, ``e_dot_v`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``src_mul_edge`` | alias of ``u_mul_e`` |
+-------------------------+-----------------------------------------------------------------+-----------------------+
| Reduce function | ``max`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``min`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``sum`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``prod`` | |
| +-----------------------------------------------------------------+-----------------------+
| | ``mean`` | |
+-------------------------+-----------------------------------------------------------------+-----------------------+

Next Step
---------
Expand Down

0 comments on commit a8c2882

Please sign in to comment.