applyWeightsFromInitTensors
fun <T : DType, V> applyWeightsFromInitTensors(module: Module<T, V>, tensors: List<OnnxWeightLoader.InitTensor>): WeightMapper.MappingResult(source)
Deprecated
Use applyWeights with WeightTensor list
Replace with
applyWeights(module, tensors.map { it.toWeightTensor() })Content copied to clipboard
Apply weights from legacy InitTensor list.