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

Method __init__

flow-python/examples/logical_test/printer.py:18–23  ·  view source on GitHub ↗
(self, name, args)

Source from the content-addressed store, hash-verified

16@register('Printer', inputs=['inp'])
17class Node:
18 def __init__(self, name, args):
19 global instance_id
20 self.id = instance_id
21 instance_id += 1
22 self.count = 0
23 self.tag = args['tag']
24
25 def exec(self):
26 envelope = self.inp.recv()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected