DeLightCMU / RSC

This is the official implementation of Self-Challenging Improves Cross-Domain Generalization, ECCV2020
BSD 2-Clause "Simplified" License
160 stars 18 forks source link

Why not choose the grad of x_new_4 directly for spatial _mean? #7

Closed gkyustc closed 4 years ago

gkyustc commented 4 years ago

https://github.com/DeLightCMU/RSC/blob/c46568709965ae5a1ea92e95ab6ae27cc190eb0d/models/resnet.py#L95

YijinHuang commented 4 years ago

Because all gradient of x_new_4 in spatial will be the same. You can see #3

gkyustc commented 4 years ago

oh yeah! I didn't notice that! Thanks