Haozhi Huang
Results
2
issues of
Haozhi Huang
Hi. Comparing TVLoss:updateOutput(input) with TextureLoss:updateOutput(input), I found that the code didn't calculate TVLoss during forward pass but only calculate the gradient of TVLoss during backward pass. Any idea why?
x_hat = Variable(alpha * X.data + (1 - alpha) * (X.data + 0.5 * X.data.std() * torch.rand(X.size())), requires_grad=True) I suppose we don't need the gradients x_hat right? Since x_hat is...