Contents:
Compute the mean squared error along a specified dimension
x (Tensor) – Input tensor x
Tensor
y (Tensor) – Input tensor y
dim (int) – Dimension along which to compute the error
int
keepdim (bool) – Whether to keep the dimension after reduction
bool
weight (Tensor | None) – Optional weight tensor
None
Mean squared error tensor