Skip to content
class

Conv2d

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

Implementing kernel

C++ engine symbols that back this Python API.

An nn.Conv2d with a BOFT rotation of its flattened in x kernel axis and a scale of its filters.

boft_s is (1, out_channels), as in the reference.

Parameters

base_layernn.Conv2d
The layer to adapt; the other parameters are those of BOFTLayer.
adapter_namestr
Name of the first butterfly.
Block size or count, butterfly factors, dropout, init_weights.

Used by 1