https://github.com/GPflow/GPflow
Revision 61f8d84ea170791460468ef39ce5c38d3ec20a2a authored by Artem Artemev on 18 May 2020, 20:58:12 UTC, committed by GitHub on 18 May 2020, 20:58:12 UTC
TensorFlow Probability 0.10 introduced a new _parameters attribute in tfp.bijectors.Bijector instances that contains a self-reference, which broke GPflow's module-traversion utilities (leaf_components, print_summary, deepcopy, freeze). This PR changes traverse_module to ignore the _parameters attribute and proposes a new deepcopy approach that simply uses copy.deepcopy()'s memo argument.

Co-authored-by: st-- <st--@users.noreply.github.com>
1 parent 150a0d1
Raw File
Tip revision: 61f8d84ea170791460468ef39ce5c38d3ec20a2a authored by Artem Artemev on 18 May 2020, 20:58:12 UTC
Fix freeze and traverse utility methods (#1476)
Tip revision: 61f8d84
.gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Emacs backups
*~

# Pycharm IDE directory
.idea

# IPython Notebooks
.ipynb_checkpoints
*.ipynb

# VSCode
.vscode

# OSX
.DS_Store

# mypy artifacts
.mypy_cache
back to top