1f8de025d53aed3297a588fcfe7be9fc1727ded9,neural_style/neural_style.py,,train,#Any#,19

Before Change


    else:
        kwargs = {}

    print("=====================")
    print("CURRENT TIME:", time.ctime())
    print("PYTHON VERSION:", sys.version)
    print("PYTORCH VERSION:", torch.__version__)
    print("BATCH SIZE:", args.batch_size)

After Change



    if args.cuda and not torch.cuda.is_available():
        print("ERROR: cuda is not available, try running on CPU")
        sys.exit(1)

    if args.cuda:
        torch.cuda.manual_seed(args.seed)
        kwargs = {"num_workers": 0, "pin_memory": False}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 2

Instances


Project Name: abhiskk/fast-neural-style
Commit Name: 1f8de025d53aed3297a588fcfe7be9fc1727ded9
Time: 2017-04-03
Author: abhishekkadiyan@gmail.com
File Name: neural_style/neural_style.py
Class Name:
Method Name: train


Project Name: tensorflow/minigo
Commit Name: 2129da56e070e8faae203ef25c314f4fc01e7add
Time: 2018-12-21
Author: andrew.m.jackson@gmail.com
File Name: rl_loop/train_and_validate.py
Class Name:
Method Name: loop


Project Name: akkana/scripts
Commit Name: bc1dcbae0bf198f3725dbcf4d3b9bcc4d63dc814
Time: 2019-07-19
Author: akkana@shallowsky.com
File Name: mapping/demproj.py
Class Name:
Method Name: raytrace_DEM_file


Project Name: akkana/scripts
Commit Name: 8c880364a9b623b76e6916be068cce018675653b
Time: 2020-04-02
Author: akkana@shallowsky.com
File Name: covid-timeseries.py
Class Name:
Method Name:


Project Name: baldassarreFe/deep-koalarization
Commit Name: c9fb02940b16716901d0a2eef95abab827c25896
Time: 2020-05-15
Author: baldassarre.fe@gmail.com
File Name: src/koalarization/evaluate.py
Class Name:
Method Name:


Project Name: deeptools/HiCExplorer
Commit Name: 0b7321b24e7d57372edd48a10845dbe02a9ee3e4
Time: 2017-12-12
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/hicPlotMatrix.py
Class Name:
Method Name: main


Project Name: awslabs/mxboard
Commit Name: a38d1849bc05b9a0ed30c896dcad6993b1c1faa9
Time: 2018-03-30
Author: wujun.nju@gmail.com
File Name: python/setup.py
Class Name:
Method Name:


Project Name: bsmurphy/PyKrige
Commit Name: 3804f311e2f771f6ed314043488251f21120039d
Time: 2016-10-16
Author: rth.yurchak@gmail.com
File Name: setup.py
Class Name:
Method Name: