yaodongyu / TRADES

TRADES (TRadeoff-inspired Adversarial DEfense via Surrogate-loss minimization)
MIT License
510 stars 123 forks source link

What is the self.sub_block1 in models/wideresnet.py ? #7

Closed zdhNarsil closed 5 years ago

zdhNarsil commented 5 years ago

In the wideresnet.py I find there is a self.sub_block1 in WideResNet.__init__(), but it doesn't appear in forward().

yaodongyu commented 5 years ago

Thanks for proposing this.

The self.sub_block1 is the same as self.block1 in https://github.com/yaodongyu/TRADES/blob/a2183f3a173b57499f27adb9dca145fa85d8269f/models/wideresnet.py#L61, and self.block1 appears in the forward().

The self.sub_block1 is redundant and we will remove this later.