Bugfix. A segfault occured during TrainUnsupNotOutput when there was corruption. The reason was the presence of the last encoder on the next to last layer of the unsup_machine. This machine (node) was not getting anything backproped into it (node n_alpha_links 0). This segfaulted in ConnectedMachine's backward. The fix involved modifying BuildUnsupMachine so that the last encoder is not added in the noisy case.
Bugfix. A segfault occured during TrainUnsupNotOutput when there was corruption. The reason was the presence of the last encoder on the next to last layer of the unsup_machine. This machine (node) was not getting anything backproped into it (node n_alpha_links 0). This segfaulted in ConnectedMachine's backward. The fix involved modifying BuildUnsupMachine so that the last encoder is not added in the noisy case.

bengio/deeptorch,rbhambriiit/deeptorch,nagyistoce/deeptorch,bengio/deeptorch,bengio/deeptorch,nagyistoce/deeptorch,nagyistoce/deeptorch,rbhambriiit/deeptorch,rbhambriiit/deeptorch