cfcb1e87038e33d22fa4d8f38ec96c949767ebb7,keras/backend/tensorflow_backend.py,,resize_images,#Any#Any#Any#Any#,265
Before Change
X = tf.image.resize_nearest_neighbor(X, (new_height, new_width))
return permute_dimensions(X, [0, 3, 1, 2])
elif dim_ordering == "tf":
new_height = shape(X)[1].value * height_factor
new_width = shape(X)[2].value * width_factor
return tf.image.resize_nearest_neighbor(X, (new_height, new_width))
else:
raise Exception("Invalid dim_ordering: " + dim_ordering)
After Change
return permute_dimensions(X, [0, 3, 1, 2])
elif dim_ordering == "tf":
new_shape = tf.shape(X)[1:3]
new_shape *= tf.constant(np.array([height_factor, width_factor]).astype("int32"))
return tf.image.resize_nearest_neighbor(X, new_shape)
else:
raise Exception("Invalid dim_ordering: " + dim_ordering)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: keras-team/keras
Commit Name: cfcb1e87038e33d22fa4d8f38ec96c949767ebb7
Time: 2016-03-07
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: resize_images
Project Name: scipy/scipy
Commit Name: dd2c0904a4ba0bf58b0f067a1bbbb7ddb49ba1b8
Time: 2020-02-29
Author: j.m.vleeshouwers@tue.nl
File Name: scipy/optimize/_linprog_util.py
Class Name:
Method Name: _clean_inputs
Project Name: markovmodel/PyEMMA
Commit Name: 3bdd46a595cc600c8b56c045530d1901639a7b2f
Time: 2017-05-24
Author: m.scherer@fu-berlin.de
File Name: pyemma/plots/networks.py
Class Name:
Method Name: plot_flux