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

Method __init__

flow-python/examples/application/cat_finder/shaper.py:19–22  ·  view source on GitHub ↗
(self, name, args)

Source from the content-addressed store, hash-verified

17@register(inputs=['inp'], outputs=['out'])
18class Shaper:
19 def __init__(self, name, args):
20 self.name = name
21 self._mode = args['mode']
22 self._map = dict()
23
24 def expand(self, box, max_w, max_h, ratio):
25 l = box[0]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected