Skip to content

docs: use Float32 literals in custom loss example - #1276

Open
MilesCranmerBot wants to merge 1 commit into
astroautomata:masterfrom
MilesCranmerBot:fix/scatter-loss-float32
Open

docs: use Float32 literals in custom loss example#1276
MilesCranmerBot wants to merge 1 commit into
astroautomata:masterfrom
MilesCranmerBot:fix/scatter-loss-float32

Conversation

@MilesCranmerBot

Copy link
Copy Markdown
Contributor

The 1e-20 literals promote the loss expression to Float64; since precision is usually Float32, use 1f-20.

Requested in fdedcc8#commitcomment-194699216

1e-20 promotes the expression to Float64; use 1f-20 since precision is
usually Float32.
@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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