https://github.com/GPflow/GPflow
Revision 056e59f2c5aa2b5021de9b7b91ce1cee2ea0bb92 authored by st-- on 06 February 2020, 17:06:04 UTC, committed by GitHub on 06 February 2020, 17:06:04 UTC
Parameter.__repr__ called .numpy() on the constrained and unconstrained representations - this throws an error when in graph mode (tf.function-wrapped), which can lead to errors-in-exception-handling, so this PR makes use of tf.eagerly_executing() to check whether we are in graph mode, and if so, only print shapes and dtype, not values.
1 parent 8dbf7ad
Tip revision: 056e59f2c5aa2b5021de9b7b91ce1cee2ea0bb92 authored by st-- on 06 February 2020, 17:06:04 UTC
fix Parameter.__repr__ behaviour within tf.function/graph mode (#1247)
fix Parameter.__repr__ behaviour within tf.function/graph mode (#1247)
Tip revision: 056e59f
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 ...