90a753c9d419597530ae36aebc10653e4ea15f1d,examples/contrib/cifar10_qat/main.py,,training,#Any#Any#,20

Before Change


    if rank == 0:
        now = datetime.now().strftime("%Y%m%d-%H%M%S")

        folder_name = "{}_backend-{}-{}_{}".format(config["model"], idist.backend(), idist.get_world_size(), now)
        output_path = Path(output_path) / folder_name
        if not output_path.exists():
            output_path.mkdir(parents=True)

After Change


        if "cuda" in device.type:
            config["cuda device name"] = torch.cuda.get_device_name(local_rank)

        if config["with_clearml"]:
            try:
                from clearml import Task
            except ImportError:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pytorch/ignite
Commit Name: 90a753c9d419597530ae36aebc10653e4ea15f1d
Time: 2021-02-11
Author: vfdev.5@gmail.com
File Name: examples/contrib/cifar10_qat/main.py
Class Name:
Method Name: training


Project Name: broadinstitute/keras-rcnn
Commit Name: 07244707a74ad207a1b61497011b454cc3ade192
Time: 2017-06-26
Author: allen.goodman@icloud.com
File Name: keras_rcnn/backend/__init__.py
Class Name:
Method Name:


Project Name: lvapeab/nmt-keras
Commit Name: 8911d5b7ead77719b8e3c998228558c4eb73e0dd
Time: 2020-05-12
Author: lvapeab@gmail.com
File Name: tests/encodings/test_unk_replace.py
Class Name:
Method Name: test_unk_replace_1