Method
__init__
(self, *args, lora_layer: Optional[LoRALinearLayer] = None, scale: float = 1.0, **kwargs)
Source from the content-addressed store, hash-verified
| 156 | """ |
| 157 | |
| 158 | def __init__(self, *args, lora_layer: Optional[LoRALinearLayer] = None, scale: float = 1.0, **kwargs): |
| 159 | super().__init__(*args, **kwargs) |
| 160 | self.lora_layer = lora_layer |
| 161 | self.scale = scale |
| 162 | |
| 163 | def set_lora_layer(self, lora_layer: Optional[LoRALinearLayer]): |
| 164 | self.lora_layer = lora_layer |
Callers
nothing calls this directly
Tested by
no test coverage detected