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
Tip revision: 61f8d84ea170791460468ef39ce5c38d3ec20a2a authored by Artem Artemev on 18 May 2020, 20:58:12 UTC
Fix freeze and traverse utility methods (#1476)
Fix freeze and traverse utility methods (#1476)
Tip revision: 61f8d84
Makefile
.PHONY: help clean dev-install install package format test
help:
@echo "The following make targets are available:"
@echo " dev-install install all dependencies for dev environment and sets a egg link to the project sources"
@echo " install install all dependencies and the project in the current environment"
@echo " package build pip package"
@echo " test run all tests in parallel"
@echo " clean removes package, build files and egg info"
clean:
rm -rf dist *.egg-info build
dev-install:
pip install -e .
install:
pip install .
package:
python setup.py bdist
format:
black -t py36 -l 100 gpflow tests doc setup.py
test:
pytest -v --durations=10 tests/
Computing file changes ...