Return true if the function is a DGL builtin function.
(func)
| 9 | |
| 10 | |
| 11 | def is_builtin(func): |
| 12 | """Return true if the function is a DGL builtin function.""" |
| 13 | return isinstance(func, fn.BuiltinFunction) |
| 14 | |
| 15 | |
| 16 | def invoke_node_udf(graph, nid, ntype, func, *, ndata=None, orig_nid=None): |