f8cd9db57df0de8b01f2906d9be4db6de0c33400,tests/test_extensions/test_criteria/test_set_similarity_measures.py,SetSimilarityTest,get_dummy_variables,#SetSimilarityTest#,7

Before Change


class SetSimilarityTest(unittest.TestCase):
    def get_dummy_variables(self):
        x = Variable(torch.zeros(3, 2, 100, 100).uniform_())
        y = Variable(torch.zeros(3, 2, 100, 100).uniform_())
        return x, y

    def get_dummy_variables_with_channels_and_classes(self):
        // (batch_size, channels, classes, ...)

After Change


class SetSimilarityTest(unittest.TestCase):
    def get_dummy_variables(self):
        x = torch.zeros(3, 2, 100, 100).uniform_()
        y = torch.zeros(3, 2, 100, 100).uniform_()
        return x, y

    def get_dummy_variables_with_channels_and_classes(self):
        // (batch_size, channels, classes, ...)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: inferno-pytorch/inferno
Commit Name: f8cd9db57df0de8b01f2906d9be4db6de0c33400
Time: 2019-06-10
Author: c.pape@gmx.net
File Name: tests/test_extensions/test_criteria/test_set_similarity_measures.py
Class Name: SetSimilarityTest
Method Name: get_dummy_variables


Project Name: inferno-pytorch/inferno
Commit Name: f8cd9db57df0de8b01f2906d9be4db6de0c33400
Time: 2019-06-10
Author: c.pape@gmx.net
File Name: tests/test_extensions/test_criteria/test_core.py
Class Name: TestCore
Method Name: test_as_2d_criterion


Project Name: kevinzakka/recurrent-visual-attention
Commit Name: ec6113b96d65d4edb3da8aac88796bbd99fc9478
Time: 2018-01-22
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: train_one_epoch


Project Name: inferno-pytorch/inferno
Commit Name: f8cd9db57df0de8b01f2906d9be4db6de0c33400
Time: 2019-06-10
Author: c.pape@gmx.net
File Name: tests/test_extensions/test_criteria/test_set_similarity_measures.py
Class Name: SetSimilarityTest
Method Name: get_dummy_variables_with_channels_and_classes


Project Name: r9y9/wavenet_vocoder
Commit Name: 0a8e27413d721bf8d753e5e6061cc24f5bf6474f
Time: 2018-05-04
Author: zryuichi@gmail.com
File Name: wavenet_vocoder/mixture.py
Class Name:
Method Name: sample_from_discretized_mix_logistic


Project Name: kevinzakka/recurrent-visual-attention
Commit Name: a38ac8958ebf1c61a10c4d5320f1e31d3d0b73dd
Time: 2020-05-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: reset