Towards Representation Learning with Tractable Probabilistic Models