Skip to content
class

Conv2d

extendsHRALayer
Conv2d(base_layer: nn.Module, adapter_name: str, config: C)

Implementing kernel

C++ engine symbols that back this Python API.

An nn.Conv2d with HRA reflections of its flattened in x kernel axis: the convolution runs with the transformed filters.

Parameters

base_layernn.Conv2d
The layer to adapt; the other parameters are those of HRALayer.
adapter_namestr
Name of the first chain.
configHRAConfig
r, apply_GS and init_weights.

Used by 1