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

Method __init__

flow-python/megflow/func_op.py:38–44  ·  view source on GitHub ↗
(self, name, args)

Source from the content-addressed store, hash-verified

36 @register(name=name, inputs=inputs, outputs=outputs, exclusive=exclusive)
37 class Node:
38 def __init__(self, name, args):
39 self.context = Context(**args)
40 self.name = name
41 if with_context:
42 self.impl = partial(func, context = self.context)
43 else:
44 self.impl = func
45
46 def exec(self):
47 plugin_def(self, self.impl)

Callers

nothing calls this directly

Calls 1

ContextClass · 0.70

Tested by

no test coverage detected