def set_vae(self, vae):
        if self.get_vae() is not None:
            raise RuntimeError("this " + str(self.__class__) + " instance " +
                               "already belongs to another VAE")
        self.vae = vae
        self.rng = self.vae.rng
        self.theano_rng = make_theano_rng(int(self.rng.randint(2 ** 30)),
                                          which_method=["normal", "uniform"])
        self.batch_size = vae.batch_size
Assigns this `Conditional` instance to a VAE.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/vae/conditional.py/Conditional.set_vae