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

Method __init__

flow-python/examples/basis_function/profile/sink.py:9–12  ·  view source on GitHub ↗
(self, name, args)

Source from the content-addressed store, hash-verified

7@register(inputs=['inp'])
8class Sink:
9 def __init__(self, name, args):
10 self.data_n = args['data_n']
11 self.node_n = args['node_n']
12 self.count = 0
13
14 def exec(self):
15 envelope = self.inp.recv()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected