code: def rms(x, name=None):
      
      if name is None:
          name = x.op.name + '/rms'
          with tfv1.name_scope(None):   # name already contains the scope
              return tf.sqrt(tf.reduce_mean(tf.square(x)), name=name)
      return tf.sqrt(tf.reduce_mean(tf.square(x)), name=name)
docs: Returns:
          root mean square of tensor x.