c941730b96c3bff1490086dc1989d6553b74b175,test/test_futures.py,,,#,268
Before Change
with self.assertRaisesRegex(RuntimeError, "Expected error"):
torch.futures.wait_all([fut3, fut2])
if __name__ == "__main__":
run_tests()
After Change
from torch.testing._internal.common_utils import IS_WINDOWS, TestCase, TemporaryFileName, run_tests
from typing import TypeVar
T = TypeVar("T")
def add_one(fut):
return fut.wait() + 1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pytorch/pytorch
Commit Name: c941730b96c3bff1490086dc1989d6553b74b175
Time: 2021-02-04
Author: rvarm1@fb.com
File Name: test/test_futures.py
Class Name:
Method Name:
Project Name: williamFalcon/pytorch-lightning
Commit Name: d422ef2c895cfbf08f5e14185926f921af0ea92a
Time: 2021-02-15
Author: aedu.waelchli@gmail.com
File Name: pytorch_lightning/trainer/properties.py
Class Name:
Method Name:
Project Name: TheAlgorithms/Python
Commit Name: 4851942ec02b18bbe4c8b58c46efed9cc2115e32
Time: 2020-11-10
Author: osoriopabl@gmail.com
File Name: machine_learning/linear_discriminant_analysis.py
Class Name:
Method Name: