(expr)
| 316 | |
| 317 | @register_functional_loader(("megengine.functional.nn", "conv_transpose2d")) |
| 318 | def deconv_loader(expr): |
| 319 | args, kwargs = expr.args, expr.kwargs |
| 320 | if not hasattr(expr, "version"): |
| 321 | |
| 322 | def orig_conv_transpose2d_signature( |
| 323 | inp, |
| 324 | weight, |
| 325 | bias=None, |
| 326 | stride=1, |
| 327 | padding=0, |
| 328 | dilation=1, |
| 329 | groups=1, |
| 330 | conv_mode="cross_correlation", |
| 331 | compute_mode="default", |
| 332 | ): |
| 333 | pass |
| 334 | |
| 335 | args, kwargs = _convert_kwargs_to_args( |
| 336 | orig_conv_transpose2d_signature, expr.args, expr.kwargs |
| 337 | ) |
| 338 | expr.set_args_kwargs(*args, **kwargs) |
| 339 | if len(args) == 9: |
| 340 | args = list(args) |
| 341 | args.insert(4, 0) # output padding = 0 |
| 342 | expr.set_args_kwargs(*args, **kwargs) |
| 343 | |
| 344 | |
| 345 | @register_functional_loader(("megengine.functional.quantized", "conv_transpose2d")) |
nothing calls this directly
no test coverage detected