def __call__(self, p):
        norms = K.sqrt(K.sum(K.square(p), axis=self.axis, keepdims=True))
        desired = K.clip(norms, 0, self.m)
        p = p * (desired / (K.epsilon() + norms))
        return p
dataset/ETHPy150Open fchollet/keras/keras/constraints.py/MaxNorm.__call__/original