private freeze — function freeze(model, indices) Freeze all parameters in model, except those in model[indices].