public loadWeights(path as Path, maxBytes as ULong = 2147483648ul) as Void
Loads parameters transactionally into an identically configured built model. Bits are copied without changing parameter or layer identities. Optimizer accumulators and loss scaling are reset; optimizer hyperparameters remain. Dropout random state and initializer seeds do not affect compatibility.
| Parameter | Description |
|---|---|
path | Local checkpoint. @param maxBytes Maximum staged tensor bytes. |
model.loadWeights(FilePath("best.knn"))