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


# CONVOLUTIONS
dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py/l2_normalize/operator `%` -> `*`