MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / set_pad_mode

Method set_pad_mode

diffusers/tests/lora/utils.py:1786–1789  ·  view source on GitHub ↗
(network, mode="circular")

Source from the content-addressed store, hash-verified

1784
1785 def test_modify_padding_mode(self):
1786 def set_pad_mode(network, mode="circular"):
1787 for _, module in network.named_modules():
1788 if isinstance(module, torch.nn.Conv2d):
1789 module.padding_mode = mode
1790
1791 for scheduler_cls in self.scheduler_classes:
1792 components, _, _ = self.get_dummy_components(scheduler_cls)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected