摘要:
1 导入包 import torch import torch.nn as nn import numpy as np import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as 阅读全文
摘要:
1 nn.L1Loss torch.nn.L1Loss(reduction='mean') 就是 MAE(mean absolute error),计算公式为 $\ell(x, y)=L=\left\{l_{1}, \ldots, l_{N}\right\}^{\top}, \quad l_{n}= 阅读全文