Contents:
Compute matrix trace with support for multiplex dims
m (Tensor) – Matrix of shape (*m, n_vars, n_vars)
Tensor
Matrix trace of shape (*m,)