MCPcopy Create free account
hub / github.com/Sygil-Dev/sygil-webui / patch_conv

Function patch_conv

scripts/webui.py:387–394  ·  view source on GitHub ↗
(**patch)

Source from the content-addressed store, hash-verified

385
386# add global options to models
387def 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
397if opt.tiling:

Callers 4

from_pretrainedMethod · 0.85
webui.pyFile · 0.85
from_pretrainedMethod · 0.85
from_pretrainedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected