3fd47c26f1b6240778176c79a091b09e5946d54f,skimage/util/dtype.py,,convert,#Any#Any#Any#Any#,63
Before Change
computation_type = _dtype_itemsize(itemsize_out, dtype_in,
np.float32, np.float64)
if force_copy or computation_type != image.dtype:
image_out = np.empty(shape=image.shape, dtype=computation_type)
else:
image_out = image
if not uniform:
if kind_out == "u":
np.multiply(image, imax_out,
out=image_out, dtype=computation_type)
else:
np.multiply(image, (imax_out - imin_out) / 2,
out=image_out, dtype=computation_type)
image_out -= 1.0 / 2.
np.rint(image_out, out=image_out)
np.clip(image_out, imin_out, imax_out, out=image_out)
elif kind_out == "u":
After Change
image_out = np.multiply(image, imax_out,
dtype=computation_type)
else:
image_out = np.multiply(image, (imax_out - imin_out) / 2,
dtype=computation_type)
image_out -= 1.0 / 2.
np.rint(image_out, out=image_out)
np.clip(image_out, imin_out, imax_out, out=image_out)
elif kind_out == "u":
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: scikit-image/scikit-image
Commit Name: 3fd47c26f1b6240778176c79a091b09e5946d54f
Time: 2018-05-18
Author: mark.harfouche@gmail.com
File Name: skimage/util/dtype.py
Class Name:
Method Name: convert
Project Name: IndicoDataSolutions/finetune
Commit Name: bf6414d298d29c12913cf5c83a0277e1db63e6d6
Time: 2020-01-10
Author: lily.zhang@indico.io
File Name: finetune/nn/auxiliary.py
Class Name:
Method Name: embed_context
Project Name: shenweichen/DeepCTR
Commit Name: 266090580c44c480d559a15ce2df012eb401adb6
Time: 2020-07-18
Author: iofficium@163.com
File Name: deepctr/layers/interaction.py
Class Name: BilinearInteraction
Method Name: call
Project Name: librosa/librosa
Commit Name: 48a579ae1638f5c60e62d8f5c3bad35e0dcef249
Time: 2013-03-23
Author: brm2132@columbia.edu
File Name: librosa/beat.py
Class Name:
Method Name: onset_estimate_bpm