d6452a1a0cbc308939f8c597c68a1f5f212dc8b8,torch/profiler/profiler.py,profile,__init__,#profile#,154

Before Change


                if use_gpu:
                    self.activities.add(ProfilerActivity.CUDA)
            else:
                raise RuntimeError("Profiler activities are not specified")

        if schedule:
            self.schedule = schedule
            // add step markers into the trace and table view

After Change


            self.activities = set(activities)
        else:
            self.activities = set([ProfilerActivity.CPU])
            if torch.cuda.is_available():
                self.activities.add(ProfilerActivity.CUDA)

        if use_cuda is not None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pytorch/pytorch
Commit Name: d6452a1a0cbc308939f8c597c68a1f5f212dc8b8
Time: 2021-02-04
Author: iliacher@fb.com
File Name: torch/profiler/profiler.py
Class Name: profile
Method Name: __init__


Project Name: OpenNMT/OpenNMT-py
Commit Name: d771f2f86276391fc4babdf5783fe509084340e9
Time: 2017-09-13
Author: nasa4836@gmail.com
File Name: opts.py
Class Name:
Method Name: check_sru_requirement


Project Name: Scitator/catalyst
Commit Name: be1fdf1f22128ab2b3b91e58f7eea1129d361476
Time: 2019-02-17
Author: poletaev.va@gmail.com
File Name: catalyst/dl/experiments/experiment.py
Class Name: ConfigExperiment
Method Name: get_loaders