As described in Section 3.2, we can view our hierarchical tensor as the combination of three multiway tensors with parameter sharing.
we can compute the gradient of each multiway tensor and take the sum accordingly.