b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6,mmcv/parallel/_functions.py,,scatter,#Any#Any#Any#,6

Before Change


            output = output.cuda(devices[0], non_blocking=True)
        return output
    else:
        raise Exception("Unknown type {}.".format(type(input)))


def synchronize_stream(output, devices, streams):
    if isinstance(output, list):

After Change


            output = output.cuda(devices[0], non_blocking=True)
        return output
    else:
        raise Exception(f"Unknown type {type(input)}.")


def synchronize_stream(output, devices, streams):
    if isinstance(output, list):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: open-mmlab/mmcv
Commit Name: b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6
Time: 2020-04-25
Author: yhcao6@gmail.com
File Name: mmcv/parallel/_functions.py
Class Name:
Method Name: scatter


Project Name: open-mmlab/mmcv
Commit Name: b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6
Time: 2020-04-25
Author: yhcao6@gmail.com
File Name: mmcv/parallel/_functions.py
Class Name:
Method Name: synchronize_stream


Project Name: pantsbuild/pants
Commit Name: 4854194228479273a8c86016062d3558321eabec
Time: 2019-07-24
Author: ericarellano@me.com
File Name: tests/python/pants_test/engine/test_scheduler.py
Class Name:
Method Name: fn_raises


Project Name: open-mmlab/mmcv
Commit Name: b7e8d7d7fb49ae7a66fce7e6ee1f0cbaf561e7d6
Time: 2020-04-25
Author: yhcao6@gmail.com
File Name: mmcv/parallel/_functions.py
Class Name:
Method Name: get_input_device