-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] KeyError of atomic_dipole
or atom_dipole
#3970
Labels
Comments
due to #3662 |
github-merge-queue bot
pushed a commit
that referenced
this issue
Jul 14, 2024
I believe this should fix #3970 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Updated label naming convention from "atomic_" to "atom_" to ensure consistency in labeling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Fixed in #3975 |
mtaillefumier
pushed a commit
to mtaillefumier/deepmd-kit
that referenced
this issue
Sep 18, 2024
I believe this should fix deepmodeling#3970 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Updated label naming convention from "atomic_" to "atom_" to ensure consistency in labeling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug summary
File "/home/xxxx/deepmd-kit/lib/python3.10/site-packages/deepmd/tf/loss/tensor.py", line 60, in build
atomic_polar_hat = label_dict["atom_" + self.label_name]
KeyError: 'atom_dipole'
DeePMD-kit Version
v3.0.0b0
Backend and its version
TensorFlow 2.14.0
How did you download the software?
Offline packages
Input Files, Running Commands, Error Log, etc.
Input Files
dipole_input.json
get fromdeepmd-kit/examples/water_tensor/dipole
.Running Commands
Error log
The line number above may not be the same as original code, cuz I printed some variables.
Steps to Reproduce
Files in
deepmd-kit/examples/water_tensor/dipole
.Further Information, Files, and Links
No response
The text was updated successfully, but these errors were encountered: