Skip to content

Promote mixed-dtype Jacobians before computing their Gramian - #847

Draft
AryanRG wants to merge 1 commit into
SimplexLab:mainfrom
AryanRG:fix/mixed-dtype-autogram-gramian
Draft

AryanRG wants to merge 1 commit into
SimplexLab:mainfrom
AryanRG:fix/mixed-dtype-autogram-gramian

Conversation

@AryanRG

@AryanRG AryanRG commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

A mixed-dtype autogram.Engine can return an infinite Gramian even when the explicit Jacobian product is finite. Each block is multiplied at its input dtype before accumulation.

Promote each Jacobian block before multiplication and preserve the common dtype through accumulation. The regression compares both Engine paths against row-wise autograd.

CPU autogram and autojac passed 915 tests per dtype on float32 and float64. Ruff passed. CUDA remains unverified.

This branch has not been deployed

No deployments
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