MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / pad_func_loader

Function pad_func_loader

imperative/python/megengine/traced_module/compat.py:161–165  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

159
160@register_functional_loader(("megengine.functional.nn", "pad"))
161def pad_func_loader(expr):
162 if "pad_witdth" in expr.kwargs:
163 kwargs = expr.kwargs
164 kwargs["pad_width"] = kwargs.pop("pad_witdth")
165 expr.set_args_kwargs(*expr.args, **kwargs)
166
167
168@register_functional_loader(("megengine.functional.nn", "batch_norm"))

Callers

nothing calls this directly

Calls 1

set_args_kwargsMethod · 0.80

Tested by

no test coverage detected