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
Raw File
Tip revision: 056e59f2c5aa2b5021de9b7b91ce1cee2ea0bb92 authored by st-- on 06 February 2020, 17:06:04 UTC
fix Parameter.__repr__ behaviour within tf.function/graph mode (#1247)
Tip revision: 056e59f
docs_require.txt
gast==0.2.2
ipython==7.8.0
sphinx==2.2.0
sphinx_autodoc_typehints==1.8.0
sphinx_rtd_theme==0.4.3
numpydoc==0.9.1
nbsphinx==0.4.3
pandoc==1.0.2
back to top