Skip to content

Commit

Permalink
[Feature]: Add transformer base class (#892)
Browse files Browse the repository at this point in the history
* add transformer base class

* fix according to commments

* resiger module

* change to use basemodule

* add _ between build function

* split the name
  • Loading branch information
jshilong authored Mar 25, 2021
1 parent 5f5e8e8 commit a9803da
Show file tree
Hide file tree
Showing 2 changed files with 479 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mmcv/cnn/bricks/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@
PADDING_LAYERS = Registry('padding layer')
UPSAMPLE_LAYERS = Registry('upsample layer')
PLUGIN_LAYERS = Registry('plugin layer')

POSITIONAL_ENCODING = Registry('Position encoding')
ATTENTION = Registry('Attention')
TRANSFORMER_LAYER = Registry('TransformerLayer')
TRANSFORMER_LAYER_SEQUENCE = Registry('TransformerLayerSequence')
Loading

0 comments on commit a9803da

Please sign in to comment.