We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d58c50 commit 4748c6dCopy full SHA for 4748c6d
train.py
@@ -439,7 +439,7 @@ def train_epoch(
439
lam = 1.
440
if not args.mixup_off_epoch or epoch < args.mixup_off_epoch:
441
lam = np.random.beta(args.mixup, args.mixup)
442
- input.mul_(lam).add_(1 - lam, input.flip(0))
+ input = input.mul(lam).add_(1 - lam, input.flip(0))
443
target = mixup_target(target, args.num_classes, lam, args.smoothing)
444
445
output = model(input)
0 commit comments