Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added asserts and fixes for empty emb input in AdaLayerNorm #9693

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Godofnothing
Copy link

This PR raises asserts when conditioning is not provided to AdaLayerNorm.

Specifically:

  1. One has to provide either timestep or temb argument to AdaLayerNorm.
  2. Modulation embedding has to be provided either via CombinedTimestepLabelEmbeddings or emb argument in AdaLayerNormZero.
  3. AdaLayerNormZeroSingle handles the case when number of channels in emb is not equal to x.
  4. emb argument in AdaLayerNormZeroSingle becomes mandatory (currently, code would crash if emb is None).

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.

1 participant