Since the num-ber of leaf nodes varies, the resulting vectors cannot be directly fed into a fixed-size neural layer for output.
we add a max-pooling layer to take the maximum value of each dimension of the vectors over all the leaf nodes.