e75bdc08545f8b3fd312efdbdf1cf94fd62e36b1,onmt/tests/test_models.py,TestModel,get_batch,#TestModel#Any#Any#,38
Before Change
def get_batch(self, source_l=3, bsize=1):
// len x batch x nfeat
test_src = Variable(torch.ones(source_l, bsize, 1)).long()
test_tgt = Variable(torch.ones(source_l, bsize, 1)).long()
test_length = torch.ones(bsize).fill_(source_l).long()
return test_src, test_tgt, test_length
After Change
def get_batch(self, source_l=3, bsize=1):
// len x batch x nfeat
test_src = torch.ones(source_l, bsize, 1).long()
test_tgt = torch.ones(source_l, bsize, 1).long()
test_length = torch.ones(bsize).fill_(source_l).long()
return test_src, test_tgt, test_length
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 5
Instances
Project Name: OpenNMT/OpenNMT-py
Commit Name: e75bdc08545f8b3fd312efdbdf1cf94fd62e36b1
Time: 2018-06-11
Author: vince62s@yahoo.com
File Name: onmt/tests/test_models.py
Class Name: TestModel
Method Name: get_batch
Project Name: OpenNMT/OpenNMT-py
Commit Name: e75bdc08545f8b3fd312efdbdf1cf94fd62e36b1
Time: 2018-06-11
Author: vince62s@yahoo.com
File Name: onmt/tests/test_models.py
Class Name: TestModel
Method Name: get_batch_image
Project Name: OpenNMT/OpenNMT-py
Commit Name: 69e7d5b769a88b197d166a7636275ed67b6fc3c6
Time: 2018-06-08
Author: ubuntu@ip-172-31-29-202.us-west-2.compute.internal
File Name: test/test_models.py
Class Name: TestModel
Method Name: get_batch
Project Name: OpenNMT/OpenNMT-py
Commit Name: 69e7d5b769a88b197d166a7636275ed67b6fc3c6
Time: 2018-06-08
Author: ubuntu@ip-172-31-29-202.us-west-2.compute.internal
File Name: test/test_models.py
Class Name: TestModel
Method Name: get_batch_audio
Project Name: OpenNMT/OpenNMT-py
Commit Name: e75bdc08545f8b3fd312efdbdf1cf94fd62e36b1
Time: 2018-06-11
Author: vince62s@yahoo.com
File Name: onmt/tests/test_models.py
Class Name: TestModel
Method Name: get_batch_audio
Project Name: OpenNMT/OpenNMT-py
Commit Name: 69e7d5b769a88b197d166a7636275ed67b6fc3c6
Time: 2018-06-08
Author: ubuntu@ip-172-31-29-202.us-west-2.compute.internal
File Name: test/test_models.py
Class Name: TestModel
Method Name: get_batch_image