Replies: 1 comment 5 replies
-
What is the shape of |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to train a model to predict the polarizability of the system.
This seems to work with the example water scripts and data but crashes when I try to do the same with a smaller system. I get the error below when I try to use it on a system with 31 atoms or fewer. With 32 or more atoms, it works fine.
This seems to me to be a bug unless I'm missing something? (That 32 number seems to be independent of input parameters.)
Traceback (most recent call last):
File "/deepmdkit/bin/dp", line 10, in
sys.exit(main())
File "/deepmdkit/lib/python3.10/site-packages/deepmd/entrypoints/main.py", line 562, in main
train_dp(**dict_args)
File "/deepmdkit/lib/python3.10/site-packages/deepmd/entrypoints/train.py", line 107, in train
_do_work(jdata, run_opt, is_compress)
File "/projects/pr7/js190/deepmdkit/lib/python3.10/site-packages/deepmd/entrypoints/train.py", line 163, in _do_work
model.build(train_data, stop_batch)
File "/deepmdkit/lib/python3.10/site-packages/deepmd/train/trainer.py", line 325, in build
self.model.data_stat(data)
File "/deepmdkit/lib/python3.10/site-packages/deepmd/model/tensor.py", line 76, in data_stat
self._compute_input_stat (m_all_stat, protection = self.data_stat_protect)
File "/deepmdkit/lib/python3.10/site-packages/deepmd/model/tensor.py", line 87, in _compute_input_stat
self.fitting.compute_input_stats(all_stat, protection = protection)
File "//deepmdkit/lib/python3.10/site-packages/deepmd/fit/polar.py", line 269, in compute_input_stats
polar_bias.append(all_stat['polarizability'][ss].reshape((1,9)))
ValueError: cannot reshape array of size 27 into shape (1,9)
Beta Was this translation helpful? Give feedback.
All reactions