I am learning about RBM and have copied and analysed Hismael Costa\'s code from his github repository. I have altered the code so it works with tensorflow.v2 only. Somehow when