collectParameters

fun collectParameters(model: Module<*, *>, prefix: String = model.name): Map<String, Tensor<*, *>>(source)

Recursively collect parameters from a Module tree using a stable path-based naming scheme.