<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/sts/internal/missing_values_util.py#L115-L145) |

Compute mean and variance, accounting for a mask.

    tfp.sts.moments_of_masked_time_series(
        time_series_tensor, broadcast_mask
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `time_series_tensor` | float `Tensor` time series of shape `concat([batch_shape, [num_timesteps]])`. |
| `broadcast_mask` | bool `Tensor` of the same shape as `time_series`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `mean` | float `Tensor` of shape `batch_shape`. |
| `variance` | float `Tensor` of shape `batch_shape`. |

<br />