| 302 | """ |
| 303 | |
| 304 | def __init__(self, *args, lora_layer: Optional[LoRAConv2dLayer] = None, **kwargs): |
| 305 | deprecation_message = "Use of `LoRACompatibleConv` is deprecated. Please switch to PEFT backend by installing PEFT: `pip install peft`." |
| 306 | deprecate("LoRACompatibleConv", "1.0.0", deprecation_message) |
| 307 | |
| 308 | super().__init__(*args, **kwargs) |
| 309 | self.lora_layer = lora_layer |
| 310 | |
| 311 | def set_lora_layer(self, lora_layer: Optional[LoRAConv2dLayer]): |
| 312 | deprecation_message = "Use of `set_lora_layer()` is deprecated. Please switch to PEFT backend by installing PEFT: `pip install peft`." |