Summary
For the recent release (deepmd-kit-2.0.3-cuda11.3_gpu-Linux-x86_64.sh), "dp compress" will call the "init_variables" method of the fitting neural network, through
|
self.fitting.init_variables(get_fitting_net_variables(self.model_param['compress']['model_file'])) |
.
But this method is only implemented in deepmd/fit/ener.py, not in deepmd/fit/dipole.py.
The compression of dipole used to be supported in an earlier devel version of DP2.0. So I suppose this is a bug due to the recent introduction of "init_variables"?