summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/python/doc/rips_complex_tflow_itf_ref.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/python/doc/rips_complex_tflow_itf_ref.rst b/src/python/doc/rips_complex_tflow_itf_ref.rst
index 83421b2a..6974f92d 100644
--- a/src/python/doc/rips_complex_tflow_itf_ref.rst
+++ b/src/python/doc/rips_complex_tflow_itf_ref.rst
@@ -11,7 +11,6 @@ Example of gradient computed from Vietoris-Rips persistence
-----------------------------------------------------------
.. testsetup::
- :hide:
import numpy
numpy.set_printoptions(precision=4)
@@ -30,6 +29,9 @@ Example of gradient computed from Vietoris-Rips persistence
grads = tape.gradient(loss, [X])
print(grads[0].numpy())
+.. testcleanup::
+ numpy.set_printoptions(precision=8)
+
.. testoutput::
[[-0.5 -0.5]