2318052dc79966bf36675606b7d992a347418292,scripts/detection/ssd/train_ssd.py,,,#,226

Before Change


        net.load_parameters(args.resume.strip())
    else:
        for param in net.collect_params().values():
            if param._data is not None:
                continue
            param.initialize()

    // training data
    train_dataset, val_dataset, eval_metric = get_dataset(args.dataset, args)

After Change


        net.load_parameters(args.resume.strip())
        async_net.load_parameters(args.resume.strip())
    else:
        with warnings.catch_warnings(record=True) as w:
            warnings.simplefilter("always")
            net.initialize()
            async_net.initialize()

    // training data
    train_dataset, val_dataset, eval_metric = get_dataset(args.dataset, args)
    train_data, val_data = get_dataloader(
        async_net, train_dataset, val_dataset, args.data_shape, args.batch_size, args.num_workers)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dmlc/gluon-cv
Commit Name: 2318052dc79966bf36675606b7d992a347418292
Time: 2019-01-07
Author: cheungchih@gmail.com
File Name: scripts/detection/ssd/train_ssd.py
Class Name:
Method Name:


Project Name: chartbeat-labs/textacy
Commit Name: 42ea974ff63853a84b1ea98c80a2d771230f2e78
Time: 2016-05-05
Author: burton@chartbeat.com
File Name: textacy/data.py
Class Name:
Method Name: load_spacy_pipeline


Project Name: recipy/recipy
Commit Name: 00a843e210177ee92075bb1a80da26f121285ec0
Time: 2016-10-24
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/script_test/run_matplotlib.py
Class Name:
Method Name: