Skip to content

Fix #404: Fix operator precedence in x0 LVLB weights and NaN assertion#406

Draft
Mr-Neutr0n wants to merge 1 commit into
CompVis:mainfrom
Mr-Neutr0n:agent/issue-404-fix-operator-precedence
Draft

Fix #404: Fix operator precedence in x0 LVLB weights and NaN assertion#406
Mr-Neutr0n wants to merge 1 commit into
CompVis:mainfrom
Mr-Neutr0n:agent/issue-404-fix-operator-precedence

Conversation

@Mr-Neutr0n

Copy link
Copy Markdown

Fixes #404

Fixed operator precedence in lvlb_weights expression (line 163: added parentheses so 2. * (1 - alphas_cumprod) evaluates correctly instead of 2.0 - alphas_cumprod) and changed assert ... .all() to .any() (line 169) so a single NaN triggers the assertion.

No local test suite detected.


This change was prepared with AI assistance under human direction and review.

…ssertion

Signed-off-by: Mr-Neutr0n <64578610+Mr-Neutr0n@users.noreply.github.com>
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