Skip to content

Unmentioned but critical LayerNorm #3

Description

@gathierry

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions