9a244189f1fe351a4fc4ce47e928bd3b3163fa2e,Tars/distributions/real_nvp.py,RealNVP,forward,#RealNVP#Any#Any#Any#,45

Before Change



        if jacobian is False:
            if inverse:
                x_1 = (x_1 - trans) * torch.exp(-scale)
            else:
                x_1 = x_1 * torch.exp(scale) + trans
            output = torch.cat((x_0, x_1), dim=-1)

        else:
            output = torch.sum(scale, dim=-1)

After Change



        if jacobian is False:
            for flow in _flows:
                x = flow(x, inverse=inverse)
            output = x

        else:
            logdet_jacobian = 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: masa-su/pixyz
Commit Name: 9a244189f1fe351a4fc4ce47e928bd3b3163fa2e
Time: 2018-07-19
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/distributions/real_nvp.py
Class Name: RealNVP
Method Name: forward


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: cf0181bb0bf5add0686ca4dd4c03e6fb04a34703
Time: 2016-08-22
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/io_utils/datasets/cifar10.py
Class Name:
Method Name: get_cifar10


Project Name: stellargraph/stellargraph
Commit Name: 9d01c3f4b31b4a297c57ff13ab3d986229038b1c
Time: 2020-03-19
Author: Huon.Wilson@data61.csiro.au
File Name: tests/layer/test_knowledge_graph.py
Class Name:
Method Name: test_dismult


Project Name: stellargraph/stellargraph
Commit Name: 9d01c3f4b31b4a297c57ff13ab3d986229038b1c
Time: 2020-03-19
Author: Huon.Wilson@data61.csiro.au
File Name: tests/layer/test_knowledge_graph.py
Class Name:
Method Name: test_complex