Skip to content

Fix BatchedGraph.from_graphs RuntimeError from mismatching dtypes#95

Merged
janosh merged 3 commits intomainfrom
fix-BatchedGraph-from_graphs-dtype-err
Nov 18, 2023
Merged

Fix BatchedGraph.from_graphs RuntimeError from mismatching dtypes#95
janosh merged 3 commits intomainfrom
fix-BatchedGraph-from_graphs-dtype-err

Conversation

@janosh
Copy link
Copy Markdown
Collaborator

@janosh janosh commented Nov 18, 2023

No description provided.

… the same dtype, but got: float != double

ase/optimize/fire.py", line 54, in __init__
    Optimizer.__init__(self, atoms, restart, logfile, trajectory,
ase/optimize/optimize.py", line 234, in __init__
    self.set_force_consistent()
ase/optimize/optimize.py", line 325, in set_force_consistent
    self.atoms.get_potential_energy(force_consistent=True)
ase/atoms.py", line 728, in get_potential_energy
    energy = self._calc.get_potential_energy(
...
    lattice = graph.lattice @ (torch.eye(3).to(strain.device) + strain)
              ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@janosh janosh added fix Bug fix PRs ase Atomic simulation environment labels Nov 18, 2023
@janosh janosh merged commit 2c723b4 into main Nov 18, 2023
@janosh janosh deleted the fix-BatchedGraph-from_graphs-dtype-err branch November 18, 2023 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ase Atomic simulation environment fix Bug fix PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant