MCPcopy
hub / github.com/dmlc/dgl / register

Function register

python/dgl/_ffi/function.py:195–202  ·  view source on GitHub ↗

internal register function

(myf)

Source from the content-addressed store, hash-verified

193 ioverride = ctypes.c_int(override)
194
195 def register(myf):
196 """internal register function"""
197 if not isinstance(myf, Function):
198 myf = convert_to_dgl_func(myf)
199 check_call(
200 _LIB.DGLFuncRegisterGlobal(c_str(func_name), myf.handle, ioverride)
201 )
202 return myf
203
204 if f:
205 return register(f)

Callers 1

register_funcFunction · 0.70

Calls 3

convert_to_dgl_funcFunction · 0.85
check_callFunction · 0.85
c_strFunction · 0.85

Tested by

no test coverage detected