class
BoneLayer
extends
MissLayerBoneLayer(base_layer: nn.Module, adapter_name: str, config: C)Adapter bookkeeping shared by the Bone layers: a MiSS layer whose block is bone_block.
Parameters
base_ layernn.ModuleThe module to adapt; kept as
base_layer, its parameters shared.adapter_ namestrName of the adapter created at once.
configBoneConfigThe adapter's config.
Raises
TypeErrorbase_layer is not the module type the layer class adapts.ValueErrorconfig.r exceeds the layer's input size, the "bat" variant needs sizes
divisible by r, or base_layer builds parameters on its first input.