def l2_normalize(x, axis):
 if (axis < 0):
  axis = (axis % len(x.get_shape()))
 return tf.nn.l2_normalize(x, dim=axis)

def l2_normalize ( x , axis ) : if ( axis < 0 ) : axis = ( axis % len ( x . get_shape ( ) ) ) return tf . nn . l2_normalize ( x , dim = axis )
l2 normalization .