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

Bug fix: Provide default for MLLayerNormalizationOptions axes in steps #538

Merged

Conversation

inexorabletash
Copy link
Member

@inexorabletash inexorabletash commented Jan 29, 2024

This adds an explicit algorithm step in layerNormalization() to provide a default described only in prose for the axes option.

For #211


Preview | Diff

@inexorabletash inexorabletash changed the title Bugfix: Provide default for MLLayerNormalizationOptions axes in steps Bug fix: Provide default for MLLayerNormalizationOptions axes in steps Jan 30, 2024
Copy link
Contributor

@huningxin huningxin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix!

This adds an explicit algorithm step in layerNormalization() to
provide a default described only in prose for the axes option.

For webmachinelearning#211
@inexorabletash inexorabletash requested review from fdwr and removed request for wchao1115 February 9, 2024 16:57
@inexorabletash
Copy link
Member Author

@fdwr can you review (and merge if it looks good?) - thanks!

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
Editing wording for 0D and 1D case.
Copy link
Member Author

@inexorabletash inexorabletash left a comment

Choose a reason for hiding this comment

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

LGTM!

@fdwr
Copy link
Collaborator

fdwr commented Feb 10, 2024

Oh, we still ought to update the prose too, as it still says: "When this member is not present, it is assumed to be [1,2,3] that is..."

I'll push another iteration and await re-review from Ningxin or Josh.

Copy link
Member Author

@inexorabletash inexorabletash left a comment

Choose a reason for hiding this comment

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

LGTM

@inexorabletash
Copy link
Member Author

(The build error is due to the lingering {{MLCommamdEncoder}} reference)

@fdwr fdwr merged commit e3f32fe into webmachinelearning:main Feb 10, 2024
1 of 2 checks passed
@inexorabletash inexorabletash deleted the bugfix-layernormalization-axes branch February 10, 2024 03:54
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.

3 participants