(**patch)
| 385 | |
| 386 | # add global options to models |
| 387 | def patch_conv(**patch): |
| 388 | cls = torch.nn.Conv2d |
| 389 | init = cls.__init__ |
| 390 | |
| 391 | def __init__(self, *args, **kwargs): |
| 392 | return init(self, *args, **kwargs, **patch) |
| 393 | |
| 394 | cls.__init__ = __init__ |
| 395 | |
| 396 | |
| 397 | if opt.tiling: |
no outgoing calls
no test coverage detected