https://github.com/GPflow/GPflow
Revision c8e8f00e7d488784a09fe6d8fd8dc6632b6723bf authored by ilia-kats on 30 March 2020, 11:20:14 UTC, committed by GitHub on 30 March 2020, 11:20:14 UTC
Changes setattr_by_path to delete the attribute before setting it again. When simply replacing a Parameter with tf.Constant, tensorflow did not update its internal list of tracked variables, which prevented deepcopying and pickling of frozen models. Explicitly deleting the tracked variable before assigning a constant value forces tensorflow to update its state. Workaround for https://github.com/tensorflow/tensorflow/issues/37806
1 parent 0b9e1f0
Tip revision: c8e8f00e7d488784a09fe6d8fd8dc6632b6723bf authored by ilia-kats on 30 March 2020, 11:20:14 UTC
enable pickling of frozen models (#1338)
enable pickling of frozen models (#1338)
Tip revision: c8e8f00
codecov.yml
coverage:
status:
project:
default:
target: 95%
threshold: 1%
patch:
default:
target: 97%
threshold: 1%
ignore:
- "*.py"
- "tests/*.py"
- "gpflow/ci_utils.py"
- "gpflow/versions.py"
- "doc/source/notebooks/*"
Computing file changes ...