freeze

fun Layer.freeze()

Freezes layer weights, so they won't be changed during training.