Skip to content

Fix float dtype propagation in band-gap inference - #58

Open
AsymmetryChou wants to merge 2 commits into
mainfrom
copilot/fix-run-tests-failure
Open

AsymmetryChou wants to merge 2 commits into
mainfrom
copilot/fix-run-tests-failure

Conversation

@AsymmetryChou

@AsymmetryChou AsymmetryChou commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

The run-tests job failed because derived atomic graph tensors retained float64 dtype while the DPTB model operated in float32, causing mixed-dtype einsum failures.

Changes

  • Cast the model and floating-point graph tensors to the effective model dtype.
  • Recast derived graph fields after model.idp() creates them:
    BandGapCalculator._cast_floating_fields(data, model.dtype)
  • Added coverage for mixed-precision parameters, buffers, and derived graph tensors.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@AsymmetryChou AsymmetryChou changed the title [WIP] Fix failing GitHub Actions job 'run-tests' Fix float dtype propagation in band-gap inference Nov 24, 2026
@AsymmetryChou
AsymmetryChou marked this pull request as ready for review November 24, 2026 03:54

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.

2 participants