class
Conv1d
extends
LoHaLayerConv1d(base_layer: nn.Module, adapter_name: str, config: _LycorisConfig, r: int = 0, alpha: float = 0.0)Implementing kernel
C++ engine symbols that back this Python API.An nn.Conv1d with a LoHa update: the factored kernel is convolved with the base's stride, padding and groups.
Parameters
base_ layernn.Conv1dThe layer to adapt; the other parameters are those of
LoHaLayer.adapter_ namestrName of the adapter, the key in every table.
configLoHaConfigThe adapter's config (dropouts,
init_weights, use_effective_conv2d).rint= 0Rank. The default is the reference's and is refused: pass a positive rank.
alphafloat= 0.0Numerator of the scale.