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

Function group

flow-python/examples/basis_function/batch/op.py:7–10  ·  view source on GitHub ↗
(inp, context=None)

Source from the content-addressed store, hash-verified

5
6@batch_def()
7def group(inp, context=None):
8 for x in inp:
9 x['group_id'] = context.id
10 context.id += 1
11
12@source_def()
13def gen(context=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected