internal register function
(myf)
| 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) |
no test coverage detected