deepmodeling / deepmd-kit

A deep learning package for many-body potential energy representation and molecular dynamics
https://docs.deepmodeling.com/projects/deepmd/
GNU Lesser General Public License v3.0
1.47k stars 507 forks source link

Issue while running LAMMPS #316

Closed mayankaditya closed 3 years ago

mayankaditya commented 3 years ago

Hi,

I have trained the AIMD data using deepmd and freeze the model using dp freeze. While running the LAMMPS, I am getting the following error:

Invalid argument: NodeDef mentions attr 'T' not in Op<name=DescrptSeA; signature=coord:double, type:int32, natoms:int32, box:double, mesh:int32, davg:double, dstd:double -> descrpt:double, descrpt_deriv:double, rij:double, nlist:int32; attr=rcut_a:float; attr=rcut_r:float; attr=rcut_r_smth:float; attr=sel_a:list(int); attr=sel_r:list(int)>; NodeDef: {{node DescrptSeA}}. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[DescrptSeA]]

I have updated the software using conda, but still getting the same error. Thanks, Mayank

njzjz commented 3 years ago

I can confirm that the models trained using v1.2.2 cannot be used to run simulations using v1.2.3. I suggest to use the same version.

njzjz commented 3 years ago

We renamed v1.2.3 to v1.3.0 to show the correct model compatibility.

rajnichahal commented 2 years ago

Hi, I trained a model using version 1.2. and then I converted it to be compatible with the version 2.1. using the following:

dp convert-from 1.2 -i trained_model.pb -o conv_trained_model.pb

However, it is still giving me the following error when running LAMMPS using converted model on version 2.1.:

E tensorflow/core/common_runtime/executor.cc:654] Executor failed to create kernel. Invalid argument: NodeDef mentions attr 'T' not in Op<name=DescrptSeA; signature=coord:double, type:int32, natoms:int32, box:double, mesh:int32, davg:double, dstd:double -> descrpt:double, descrpt_deriv:double, rij:double, nlist:int32; attr=rcut_a:float; attr=rcut_r:float; attr=rcut_r_smth:float; attr=sel_a:list(int); attr=sel_r:list(int)>; NodeDef: {{node DescrptSeA}}. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[DescrptSeA]] Invalid argument: NodeDef mentions attr 'T' not in Op<name=DescrptSeA; signature=coord:double, type:int32, natoms:int32, box:double, mesh:int32, davg:double, dstd:double -> descrpt:double, descrpt_deriv:double, rij:double, nlist:int32; attr=rcut_a:float; attr=rcut_r:float; attr=rcut_r_smth:float; attr=sel_a:list(int); attr=sel_r:list(int)>; NodeDef: {{node DescrptSeA}}. (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[DescrptSeA]]