forked from huggingface/diffusers
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Refactor activation and normalization layers (huggingface#5493)
* move out the activations. * move normalization layers. * add doc. * add doc. * fix: paths * Apply suggestions from code review Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> * style --------- Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
249 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Activation functions | ||
|
||
Customized activation functions for supporting various models in 🤗 Diffusers. | ||
|
||
## GELU | ||
|
||
[[autodoc]] models.activations.GELU | ||
|
||
## GEGLU | ||
|
||
[[autodoc]] models.activations.GEGLU | ||
|
||
## ApproximateGELU | ||
|
||
[[autodoc]] models.activations.ApproximateGELU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Normalization layers | ||
|
||
Customized normalization layers for supporting various models in 🤗 Diffusers. | ||
|
||
## AdaLayerNorm | ||
|
||
[[autodoc]] models.normalization.AdaLayerNorm | ||
|
||
## AdaLayerNormZero | ||
|
||
[[autodoc]] models.normalization.AdaLayerNormZero | ||
|
||
## AdaGroupNorm | ||
|
||
[[autodoc]] models.normalization.AdaGroupNorm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.