Skip to content

Question about layer norm in T5 #20224

@FrostML

Description

@FrostML

I notice that there is no bias and no subtraction of mean in layer norm.

I understand no bias but I'm confused about the meaning of computing variance without subtraction of mean.

Normally, we compute variance, for example:
image
But it's different here. Why is that?

Hoping some explanation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions