tf.keras.ops.cov

Estimate the covariance matrix of the variables in x.

The covariance is normalized by D - 1, where D is the number of observations.

x A 2D tensor of shape (N, D), where N is the number of variables and D is the number of observations.

A tensor of shape (N, N) representing the covariance matrix.