rms()
Returns the root mean square of each row of the input tensor in the given dimension dim. If dim is a list of dimensions, reduce over all of them.
x (Tensor) – The input tensor.
Tensor
dim (Union[int, Tuple[int, ...]]) – The dimension or dimensions to reduce.
Union
int
Tuple
...
keepdim (bool) – Whether the output tensor has dim retained or not.
bool
The output tensor.