To achieve comparable result as the original paper. LayerNorm is applied to the feature before NF. This is never mentioned in the paper and the usage is very tricky (but this is the only way works for me):
- resnet18 and wide-resnet-50: use trainable LayerNorm
- CaiT and DeiT: use the final norm from the pre-trained model and fix it's affine parameters
To achieve comparable result as the original paper. LayerNorm is applied to the feature before NF. This is never mentioned in the paper and the usage is very tricky (but this is the only way works for me):