applyWeights
fun <T : DType, V> applyWeights(module: Module<T, V>, tensors: List<WeightTensor<T, V>>, config: MappingConfig = MappingConfig()): WeightMapper.MappingResult(source)
Apply weights to a module using name-based matching with shape-based fallback.
The matching algorithm:
Extract the layer name from the DSL module path
Normalize DSL naming to standard format (e.g., "_m0_cv1" -> ".m.0.cv1")
Try to match by name first, then fall back to shape-only matching
Return
Mapping result with statistics
Parameters
module
The SKaiNET module to apply weights to
tensors
The loaded weight tensors
config
Configuration for mapping behavior