summaryrefslogtreecommitdiff
path: root/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
diff options
context:
space:
mode:
authorMathieuCarriere <mathieu.carriere3@gmail.com>2021-11-17 00:18:33 +0100
committerMathieuCarriere <mathieu.carriere3@gmail.com>2021-11-17 00:18:33 +0100
commit7b83812e37986c9adf9cccaeab360f1d4ffa846f (patch)
tree9bb8926680b6eddf00279a2c22a9f86634552be3 /src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
parent7e71aff27074874acdfd3530826b3f10709e346c (diff)
fix doc
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.rst13
1 files changed, 1 insertions, 12 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 0a6764fa..3200b8e5 100644
--- a/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
+++ b/src/python/doc/ls_simplex_tree_tflow_itf_ref.rst
@@ -17,17 +17,6 @@ Example of gradient computed from lower-star filtration of a simplex tree
import gudhi as gd
st = gd.SimplexTree()
- st.insert([0])
- st.insert([1])
- st.insert([2])
- st.insert([3])
- st.insert([4])
- st.insert([5])
- st.insert([6])
- st.insert([7])
- st.insert([8])
- st.insert([9])
- st.insert([10])
st.insert([0, 1])
st.insert([1, 2])
st.insert([2, 3])
@@ -40,7 +29,7 @@ Example of gradient computed from lower-star filtration of a simplex tree
st.insert([9, 10])
F = tf.Variable([6.,4.,3.,4.,5.,4.,3.,2.,3.,4.,5.], dtype=tf.float32, trainable=True)
- sl = LowerStarSimplexTreeLayer(simplextree=st, dimension=0)
+ sl = LowerStarSimplexTreeLayer(simplextree=st, dimensions=[0])
with tf.GradientTape() as tape:
dgm = sl.call(F)