summaryrefslogtreecommitdiff
path: root/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
diff options
context:
space:
mode:
authorMathieuCarriere <mathieu.carriere3@gmail.com>2021-10-19 14:37:39 +0200
committerMathieuCarriere <mathieu.carriere3@gmail.com>2021-10-19 14:37:39 +0200
commit423c4be21968fd42c5470a9132d0e332c73ec2b9 (patch)
treeb9d0f0f033f4b62d7f59410737f051a75676186a /src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
parentfc1c33d19c7d50d01bacb61529badbde8217ce7e (diff)
fix python documentation
Diffstat (limited to 'src/python/doc/ls_simplex_tree_tflow_itf_ref.rst')
-rw-r--r--src/python/doc/ls_simplex_tree_tflow_itf_ref.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst b/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
index bb9c61c6..7baf611c 100644
--- a/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
+++ b/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
@@ -11,6 +11,7 @@ Example of gradient computed from lower-star filtration of a simplex tree
-------------------------------------------------------------------------
.. code-block:: python
+
from gudhi.tensorflow import *
import numpy as np
import tensorflow as tf
@@ -47,6 +48,7 @@ Example of gradient computed from lower-star filtration of a simplex tree
dgm = sl.call(F)
loss = tf.math.reduce_sum(tf.square(.5*(dgm[:,1]-dgm[:,0])))
grads = tape.gradient(loss, [F])
+ print(grads[0].numpy())
Documentation for LowerStarSimplexTreeLayer
-------------------------------------------