tf.nn.weighted_moments

View source on GitHub

Returns the frequency-weighted mean and variance of x.

tf.nn.weighted_moments(
    x, axes, frequency_weights, keepdims=False, name=None
)

Args:

Returns:

Two tensors: weighted_mean and weighted_variance.