Skip to content

Conversation

@f-schnabel
Copy link
Contributor

@f-schnabel f-schnabel commented Jan 16, 2023

Fixes #5853.

Description

Add GEGLU activation function for the MLP Block.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • New tests added to cover the changes.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@f-schnabel f-schnabel force-pushed the issue/5853 branch 2 times, most recently from 412cb09 to 10f8a58 Compare January 19, 2023 18:20
@f-schnabel
Copy link
Contributor Author

Do I need to add tests for this?
For the other activation functions, I couldn't find any tests, so I'm unsure how to do that.

@f-schnabel f-schnabel marked this pull request as ready for review January 19, 2023 18:27
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks good to me.

@wyli
Copy link
Contributor

wyli commented Jan 19, 2023

/build

@wyli wyli enabled auto-merge (squash) January 19, 2023 20:16
@wyli wyli merged commit 5c778ad into Project-MONAI:dev Jan 19, 2023
@f-schnabel f-schnabel deleted the issue/5853 branch January 23, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make MLPBlock compatible with diffusion models

2 participants