1cb6edf4c090461a7e43bfd1b866aaba4b02cabe,vis/regularizers.py,,normalize,#Any#Any#,11
Before Change
Returns:
The normalized expression.
return value / np.prod(K.int_shape(img)[1:])
class TotalVariation(Loss):
After Change
The normalized tensor.
image_dims = utils.get_img_shape(img)[1:]
return tensor / np.prod(image_dims)
class TotalVariation(Loss):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: raghakot/keras-vis
Commit Name: 1cb6edf4c090461a7e43bfd1b866aaba4b02cabe
Time: 2017-05-07
Author: ragha@outlook.com
File Name: vis/regularizers.py
Class Name:
Method Name: normalize
Project Name: dmlc/gluon-cv
Commit Name: cf767a1297d67caf41577508aacc7cbc24ae8f14
Time: 2020-09-16
Author: 43100519+xdeng7@users.noreply.github.com
File Name: scripts/gan/stylegan/modules.py
Class Name: EqualLinear
Method Name: hybrid_forward
Project Name: dmlc/gluon-cv
Commit Name: cf767a1297d67caf41577508aacc7cbc24ae8f14
Time: 2020-09-16
Author: 43100519+xdeng7@users.noreply.github.com
File Name: scripts/gan/stylegan/modules.py
Class Name: EqualConv2d
Method Name: hybrid_forward