Skip to content

Convert to float() before sending to numpy#20

Merged
famura merged 1 commit intomainfrom
fix/studentt_cast_to_float
Mar 30, 2026
Merged

Convert to float() before sending to numpy#20
famura merged 1 commit intomainfrom
fix/studentt_cast_to_float

Conversation

@famura
Copy link
Copy Markdown
Owner

@famura famura commented Mar 30, 2026

When the user is calling _accuracy_studentt with bfloat16 tensors, this causes problems for numpy. Converting via an explicit .float() does the trick as thescipy detour already breaks autograd

@famura famura self-assigned this Mar 30, 2026
@famura famura added the type: fix Something is being fixed label Mar 30, 2026
@github-actions github-actions bot added area: source Core source code size: xs labels Mar 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Coverage

Coverage Report
FileStmtsMissBranchBrPartCoverMissing
__init__.py7000100% 
abstract.py5000100% 
ensemble.py4018197%124
integral.py17020100% 
normalization.py32110196%43
analytical
   __init__.py3000100% 
   dispatch.py16080100% 
   normal.py20000100% 
   studentt.py4324095%27–28
TOTAL183432297% 

Tests Skipped Failures Errors Time
133 16 💤 0 ❌ 0 🔥 2.977s ⏱️

@famura famura merged commit 50eccbb into main Mar 30, 2026
3 checks passed
@famura famura deleted the fix/studentt_cast_to_float branch March 30, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: source Core source code size: xs type: fix Something is being fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant