2318052dc79966bf36675606b7d992a347418292,scripts/detection/yolo/train_yolo3.py,,,#,295

Before Change


    // use sync bn if specified
    num_sync_bn_devices = len(ctx) if args.syncbn else -1
    if num_sync_bn_devices > 1:
        net = get_model(net_name, pretrained_base=True, num_sync_bn_devices=num_sync_bn_devices)
        async_net = get_model(net_name, pretrained_base=False)  // used by cpu worker
    else:
        net = get_model(net_name, pretrained_base=True)
        async_net = net

After Change


    args.save_prefix += net_name
    // use sync bn if specified
    if args.syncbn and len(ctx) > 1:
        net = get_model(net_name, pretrained_base=True, norm_layer=gluon.contrib.nn.SyncBatchNorm,
                        norm_kwargs={"num_devices": len(ctx)})
        async_net = get_model(net_name, pretrained_base=False)  // used by cpu worker
    else:
        net = get_model(net_name, pretrained_base=True)
        async_net = net
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: dmlc/gluon-cv
Commit Name: 9f0b230e1f59cb399e36210483bc075760b02eaf
Time: 2018-04-11
Author: cheungchih@gmail.com
File Name: scripts/detection/ssd/eval.py
Class Name:
Method Name:


Project Name: RasaHQ/rasa
Commit Name: 2915f33ac9a5878093cdbd70c3dd8f11569113ed
Time: 2019-03-04
Author: t.wochinger@rasa.com
File Name: tests/test_model.py
Class Name:
Method Name: test_get_model_from_directory_with_subdirectories