# データにノイズを加える関数の定義 import torchvision as tv import torchvision.transforms.functional as TF def perturb_imagedata(x): y = x.clone() batch_size = x.size(0) # ランダムなアフィン変換を実施 trans = tv.transforms.RandomAffine(15, (0.2, 0.2,), (0.2, 0.75,)) for i ...