6c06a88957549b1405f43361e4aa911abc56ef66,examples/shrec17/test.py,,main,#Any#Any#Any#Any#Any#,24

Before Change



    model = mod.Model(55).to(device)

    model.load_state_dict(torch.load(os.path.join(log_dir, "state.pkl")))

    resdir = os.path.join(log_dir, dataset + "_perturbed")
    if os.path.isdir(resdir):
        shutil.rmtree(resdir)

After Change



    model = mod.Model(55).to(device)

    state = torch.load(os.path.join(log_dir, "state.pkl"))
    state = { key.replace("conv.kernel", "kernel.kernel").replace("conv.weight", "kernel.weight") : value for key, value in state.items() }
    model.load_state_dict(state)

    resdir = os.path.join(log_dir, dataset + "_perturbed")
    if os.path.isdir(resdir):
        shutil.rmtree(resdir)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: mariogeiger/se3cnn
Commit Name: 6c06a88957549b1405f43361e4aa911abc56ef66
Time: 2018-10-04
Author: geiger.mario@gmail.com
File Name: examples/shrec17/test.py
Class Name:
Method Name: main


Project Name: pytorch/examples
Commit Name: fcaf4c22bafc28d7ff0a31cd18a75f81737892c6
Time: 2017-03-14
Author: bryan.mccann.is@gmail.com
File Name: OpenNMT/train.py
Class Name:
Method Name: main


Project Name: osmr/imgclsmob
Commit Name: 78dfa8f4fdb936d67062e7d08218acf297450626
Time: 2018-11-23
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/others/oth_drn.py
Class Name:
Method Name: oth_drn_c_58