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

Method __init__

flow-python/examples/logical_test/process.py:33–42  ·  view source on GitHub ↗
(self, name, args)

Source from the content-addressed store, hash-verified

31@register(inputs=['inp'], outputs=['out'], exclusive=True)
32class RepeatProcess:
33 def __init__(self, name, args):
34 self.name = name
35 s1, r1 = Pipe()
36 s2, r2 = Pipe()
37 self.send = s1
38 self.recv = r2
39
40 mp.set_start_method('fork')
41 self.p = Process(target=repeat, args=(10, s2, r1))
42 self.p.start()
43
44 def __del__(self):
45 try:

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected