https://github.com/GPflow/GPflow
Revision d3ca3c90f9e1b644a0b902e6ad9296ea2a7168c4 authored by joelberkeley-pio on 17 March 2020, 19:12:46 UTC, committed by GitHub on 17 March 2020, 19:12:46 UTC
TensorFlow does not allow setting a tf.Variable's `trainable` property; this brings GPflow Parameter objects in line with that behaviour. gpflow.set_utilities() can be used to change the _trainable state for gpflow.Parameter and tf.Variable objects as well as recursively for tf/gpflow Modules.

Note that set_trainable() should not be used inside functions that will be wrapped in tf.function() (see #1335).
1 parent e680397
Raw File
Tip revision: d3ca3c90f9e1b644a0b902e6ad9296ea2a7168c4 authored by joelberkeley-pio on 17 March 2020, 19:12:46 UTC
remove trainable setter on Parameter (#1323)
Tip revision: d3ca3c9
notebooks
doc/source/notebooks/
back to top