2a1bd4c93a998d16516d82893401b346d66a95e9,imgaug/dtypes.py,,increase_array_resolutions_,#Any#Any#,146

Before Change


    if factor == 1:
        return arrays

    for i, array in enumerate(arrays):
        dtype = array.dtype
        dtype_target = np.dtype("%s%d" % (dtype.kind, dtype.itemsize * factor))
        arrays[i] = array.astype(dtype_target, copy=False)

    return arrays


def get_value_range_of_dtype(dtype):

After Change




def increase_array_resolutions_(arrays, factor):
    dts = normalize_dtypes(arrays)
    dts = [increase_itemsize_of_dtype(dt, factor) for dt in dts]
    return change_dtypes_(arrays, dts, round=False, clip=False)


def get_value_range_of_dtype(dtype):
    dtype = normalize_dtype(dtype)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: aleju/imgaug
Commit Name: 2a1bd4c93a998d16516d82893401b346d66a95e9
Time: 2019-07-19
Author: kontakt@ajung.name
File Name: imgaug/dtypes.py
Class Name:
Method Name: increase_array_resolutions_


Project Name: maxpumperla/elephas
Commit Name: 15d1eb2dbc7c60c11aaf4219a20c0bd66d9fa0ca
Time: 2021-01-01
Author: danielenricocahall@gmail.com
File Name: elephas/utils/functional_utils.py
Class Name:
Method Name: divide_by


Project Name: ray-project/ray
Commit Name: 2e3655e8a9b1e37fa6e29f11db02a6b53cfb5928
Time: 2021-01-19
Author: sven@anyscale.io
File Name: rllib/utils/tf_ops.py
Class Name:
Method Name: minimize_and_clip