Skip to content

Conversation

@jasonkrone
Copy link

When reduction == "mean", the current implementation sets the z_squared values to 0 vs. ignoring them. These 0 values impact the number of element in the mean reduction and therefore the final z-loss.

Perhaps this is intentional, but just in case it's not, I made a quick PR to ignore the values vs. setting them to 0.

@dirkgr dirkgr self-assigned this Feb 4, 2025
Copy link
Member

@dirkgr dirkgr left a comment

Choose a reason for hiding this comment

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

This is good. Thank you! Can you update the changelog, and we're good to go?

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.

2 participants