Here is the graph model of the multimodal dbm. I want to know how to inference the joint distribution of this probability graph model.

Some example equations are here. For the expression, I have two questions.

- How to get the second line?
- Why $p(v^m,h^{1m}|h^{2m})$ is a
**Boltzmann distribution**?

It would be great if you could provide the whole process to get the final expression of $p(v^m,v^t)$.

The source of these photos are from http://jmlr.org/papers/volume15/srivastava14b/srivastava14b.pdf and https://slideplayer.com/slide/13728662/