think of it like this: a LSTM is a fold (recursive visit) on list, and a TreeLSTM is a fold (recursive visit) on rose tree.
data Rose a = MakeRose a (List (Rose a))
I had implemented treelstm a long time ago for relay benchmark, which is at here.
1 Like