Skip to content

Commit

Permalink
Merge pull request pfnet-research#7 from mwata/unit_conversion
Browse files Browse the repository at this point in the history
abs
  • Loading branch information
masakiwatanabe authored and GitHub Enterprise committed Apr 3, 2023
2 parents 3c0420b + 8c0bab7 commit 27e47cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export_static_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def prepare_data(args):
energy_orig = float(atoms.get_potential_energy())
print("energy = ", energy, "eV")
print("energy_orig = ", energy_orig, "eV")
assert abs(energy - energy_orig) < 1e-7 * energy_orig
assert abs(energy - energy_orig) < 1e-7 * abs(energy_orig)

print("out_dir = ", out_dir, file=sys.stderr)
ppe_onnx.export_testcase(exporter, tuple(args.values()), out_dir, verbose=True,
Expand Down

0 comments on commit 27e47cd

Please sign in to comment.