97d7fe68af9f69eac7fad77c7bf0d447f1abbb82,bootstrap/run.py,,run,#Any#,49

Before Change


    // display server name and GPU(s) id(s)
    Logger()(os.uname())
    if "CUDA_VISIBLE_DEVICES" in os.environ:
        Logger()("CUDA_VISIBLE_DEVICES="+os.environ["CUDA_VISIBLE_DEVICES"])

    // engine can train, eval, optimize the model
    // engine can save and load the model and optimizer

After Change


    Logger().log_dict("options", Options(), should_print=True) // display options
    Logger()(os.uname()) // display server name

    if torch.cuda.is_available():
        cudnn.benchmark = True
        Logger()("Available GPUs: {}".format(utils.available_gpu_ids()))

    // engine can train, eval, optimize the model
    // engine can save and load the model and optimizer
    engine = engines.factory()

    // dataset is a dictionary that contains all the needed datasets indexed by modes
    // (example: dataset.keys() -> ["train","eval"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: Cadene/bootstrap.pytorch
Commit Name: 97d7fe68af9f69eac7fad77c7bf0d447f1abbb82
Time: 2018-07-16
Author: rcadene@gnode-au11-01.cm.cluster
File Name: bootstrap/run.py
Class Name:
Method Name: run


Project Name: mseitzer/pytorch-fid
Commit Name: 4d7695b39764ba1d54ab6639e0695e5c4e6f346a
Time: 2020-10-08
Author: had-95@yandex.ru
File Name: pytorch_fid/fid_score.py
Class Name:
Method Name: main


Project Name: pytorch/tutorials
Commit Name: 0ad33d606682537466f3430fc6d6ac7d47460f1a
Time: 2018-04-24
Author: soumith@gmail.com
File Name: beginner_source/blitz/cifar10_tutorial.py
Class Name:
Method Name:


Project Name: rusty1s/pytorch_geometric
Commit Name: e2db3b3f1d3d23cd5bc1e295835e0f4b33e95447
Time: 2018-03-07
Author: matthias.fey@tu-dortmund.de
File Name: examples/cora_gcn.py
Class Name:
Method Name: