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

Method __init__

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

Source from the content-addressed store, hash-verified

7@res_register()
8class Buffer:
9 def __init__(self, name, args):
10 self.name = name
11 self.n = args['n']
12 self.i = 0
13
14 def get(self):
15 self.i += 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected