0d682b1227799ae56d1031a6a1adbb385a70a6e2,vis/regularizers.py,,normalize,#Any#Any#,10

Before Change


        The normalized expression.
    
    samples, c, w, h = utils.get_img_shape(img)
    return value / (c * w * h)


class TotalVariation(Loss):

After Change


    Returns:
        The normalized expression.
    
    return value / np.prod(K.int_shape(img)[1:])


class TotalVariation(Loss):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: raghakot/keras-vis
Commit Name: 0d682b1227799ae56d1031a6a1adbb385a70a6e2
Time: 2016-12-23
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