

def l2_normalize(x, axis):
    'Normalizes a tensor wrt the L2 norm alonside the specified axis.\n    '
    if (axis < 0):
        axis = (axis % len(x.get_shape()))
    return tf.nn.l2_normalize(x, dim=axis)

dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py l2_normalize/original