项目文件夹

文件
Minjie Wang 22167f7203 [Refactor] Enable new kernel in all message passing APIs (#1953)
* WIP: frame refactor

* new frame

* simple update_all builtin

* move all subgraph routines into the same file

* sddmm & spmm schedule; node & edge udf

* degree bucketing

* some tricky 0deg corner cases

* bug in frame append

* merge test_hetero_basics and test_basics

* some code rearange

* fix test_heterograph

* add mean spmm

* enable all builtin combinations

* pass gpu test

* pass pytorch tests

* wip

* fix some pt debugging codes

* fix bug in mxnet backward

* pass all mxnet utests

* passed tf tests

* docstring

* lint

* lint

* fix broadcasting bugs

* add warning and clamp for mean reducer

* add test for zero-degree mean

* address comments

* lint

* small fix
2020-08-07 15:40:25 +08:00

30 行
602 B
Python

"""Built-in function base class"""
from __future__ import absolute_import
__all__ = ['BuiltinFunction', 'TargetCode']
class TargetCode(object):
"""Code for target
Note: must be consistent with the target code definition in C++ side:
src/kernel/binary_reduce_common.h
"""
SRC = 0
DST = 1
EDGE = 2
CODE2STR = {
0: "u",
1: "v",
2: "e",
}
class BuiltinFunction(object):
"""Base builtin function class."""
@property
def name(self):
"""Return the name of this builtin function."""
raise NotImplementedError