Skip to content

Commit

Permalink
⚡️Optimized Transformer
Browse files Browse the repository at this point in the history
`highway` fcnn head should be used in order to prevent rank collapse
  • Loading branch information
carefree0910 committed Mar 20, 2021
1 parent 969a6c8 commit 00bd2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cflearn/models/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


@ModelBase.register("transformer")
@ModelBase.register_pipe("transformer", head="linear")
@ModelBase.register_pipe("transformer", head="fcnn", head_config="highway")
class Transformer(ModelBase):
pass

Expand Down

0 comments on commit 00bd2c4

Please sign in to comment.