bea3a486261d3f6238316224605b684db1e5bca7,Tars/models/vae.py,VAE,test,#VAE#Any#,56

Before Change


        self.encoder.eval()
        self.other_distributions.eval()

        with torch.no_grad():
            lower_bound, loss = self._elbo(test_x)

        return lower_bound, loss

    def _elbo(self, x):
        

After Change


        self.encoder.eval()
        self.other_distributions.eval()

        return super().test(test_x, **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vae.py
Class Name: VAE
Method Name: test


Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vi.py
Class Name: VI
Method Name: test


Project Name: lcswillems/torch-rl
Commit Name: 585835b340f4410c8c1b5f4cf9e5e8eb8d8c9e7c
Time: 2018-08-29
Author: lcswillems@gmail.com
File Name: utils/agent.py
Class Name: Agent
Method Name: get_action