Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
BatchedGraph.from_graphs
RuntimeError from mismatching dtypes (#95
) * add comment with link to GH issue why mlp_out_bias=model_name == "0.2.0" in chgnet.load() * fix BatchedGraph.from_graphs RuntimeError: expected m1 and m2 to have 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) ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Update pre-commit hooks
- Loading branch information