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
History
File Mode Size
source
Makefile -rw-r--r-- 7.4 KB
README.md -rw-r--r-- 1.2 KB
requirements.txt -rw-r--r-- 203 bytes

README.md

back to top