MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / __register

Function __register

flow-python/megflow/registry.py:13–22  ·  view source on GitHub ↗
(name, inputs, outputs, exclusive, func)

Source from the content-addressed store, hash-verified

11from collections import Iterable
12
13def __register(name, inputs, outputs, exclusive, func):
14 params = {}
15
16 params['name'] = name
17 params['code'] = func
18 params['inputs'] = inputs
19 params['outputs'] = outputs
20 params['exclusive'] = exclusive
21
22 return params
23
24
25def __res_register(name, func):

Callers 1

decoratorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected