clovaai / CutMix-PyTorch

Official Pytorch implementation of CutMix regularizer
MIT License
1.22k stars 159 forks source link

why should set `requires_grad` True #15

Closed FantDing closed 4 years ago

FantDing commented 4 years ago

https://github.com/clovaai/CutMix-PyTorch/blob/e54b8387ad6f63d2b9cb2c1f9dc332aad2d185e1/train.py#L242

hellbell commented 4 years ago

@FantDing That was a legacy of pytorch version 0.3. We updated our code for the newer version of pytorch (>1.0) by fixing those legacies.