1a0ad8fe3b96b02bb080ec42b4426377f5bb2cfa,compile.py,,,#,23

Before Change



torch.manual_seed(opt.seed)
if opt.cuda:
    if not torch.cuda.is_available():
        util.print_log(colored("Error: CUDA not available", "red"))
        quit()
    torch.cuda.manual_seed(opt.seed)

After Change


util.log_print("Running on PyTorch")
util.log_print("")
util.log_print("Command line arguments:")
util.log_print(" ".join(sys.argv[1:]))
util.log_print("")

def get_batch(data):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pyprob/pyprob
Commit Name: 1a0ad8fe3b96b02bb080ec42b4426377f5bb2cfa
Time: 2017-04-03
Author: atilimgunes.baydin@gmail.com
File Name: compile.py
Class Name:
Method Name:


Project Name: pymanopt/pymanopt
Commit Name: 618c1cac7908e5aa61fd95e0d1c6c1f31a2db95d
Time: 2016-02-19
Author: niklas.koep@gmail.com
File Name: pymanopt/core/problem.py
Class Name: Problem
Method Name: backend


Project Name: dmlc/dgl
Commit Name: 189c2c0907cdff54f733299a93360ddfcff4ccb7
Time: 2019-09-07
Author: mufeili1996@gmail.com
File Name: examples/pytorch/model_zoo/chem/property_prediction/regression.py
Class Name:
Method Name: