Skip to content

why is the visual transformer position embedding initializing to zeros #409

Discussion options

You must be logged in to vote

@matthewchung74 it's actually init to trunc_normal_(self.pos_embed, std=.02) ... the zeros was just for defining the param but could have done it differently

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@matthewchung74
Comment options

@rwightman
Comment options

@matthewchung74
Comment options

Answer selected by matthewchung74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants