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
Raw File
Tip revision: c8e8f00e7d488784a09fe6d8fd8dc6632b6723bf authored by ilia-kats on 30 March 2020, 11:20:14 UTC
enable pickling of frozen models (#1338)
Tip revision: c8e8f00
.coveragerc
[report]
omit = *tests*, setup.py
exclude_lines =
    pragma: no cover
    def __repr__
    def __str__
    def _repr_html_
    def _repr_pretty_
    if self.debug:
    if settings.DEBUG
    raise AssertionError
    raise NotImplementedError
    if __name__ == .__main__.:
    print
back to top