1082ba352c5f1d524b1fcba43ee611280b169224,fairseq/distributed_utils.py,,distributed_init,#Any#,19

Before Change



    print("| distributed init (rank {}): {}".format(
        args.distributed_rank, args.distributed_init_method), flush=True)
    if args.distributed_init_method.startswith("tcp://"):
        torch.distributed.init_process_group(
            backend=args.distributed_backend, init_method=args.distributed_init_method,
            world_size=args.distributed_world_size, rank=args.distributed_rank)

After Change


    if _use_c10d[0] is None:
        _use_c10d[0] = not args.no_c10d

    if _use_c10d[0] and not hasattr(torch.nn.parallel, "_DistributedDataParallelC10d"):
        _use_c10d[0] = False
        print("WARNING: cannot find DistributedDataParallelC10d, "
              "falling back to standard DistributedDataParallel")

    print("| distributed init (rank {}): {}".format(
        args.distributed_rank, args.distributed_init_method), flush=True)

    if _use_c10d[0]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: elbayadm/attn2d
Commit Name: 1082ba352c5f1d524b1fcba43ee611280b169224
Time: 2018-09-25
Author: edunov@apache.org
File Name: fairseq/distributed_utils.py
Class Name:
Method Name: distributed_init


Project Name: deepinsight/insightface
Commit Name: 8fefc15ec5af81b01758f9f699fd43d72179594e
Time: 2019-12-03
Author: guojia@gmail.com
File Name: RetinaFace/rcnn/dataset/retinaface.py
Class Name: retinaface
Method Name: gt_roidb


Project Name: deepinsight/insightface
Commit Name: e8c63e9ccce7ab34d776aa9fa07786dfa93d6794
Time: 2019-12-03
Author: guojia@gmail.com
File Name: RetinaFace/rcnn/dataset/retinaface.py
Class Name: retinaface
Method Name: gt_roidb