콘텐츠로 이동
Search

Torch.nn.MSELoss

mean squared error 를 구하는 loss function 입니다.

Usage

torch.nn.MSELoss(size_average=None, reduce=None, reduction='mean')

Example

import torch.nn as nn

criterion = nn.MSELoss()
...
loss = criterion(input, target)

See also

Favorite site

lastmod 2024-05-08created 2024-05-08author Zer0 sitemap