Skip to content

Commit

Permalink
fix hybrid descriptor training error (#1052)
Browse files Browse the repository at this point in the history
fix #1051.
  • Loading branch information
njzjz authored Aug 28, 2021
1 parent a7e4760 commit 5f8989b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/train/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def build (self,
self._init_from_frz_model()

self.neighbor_stat \
= NeighborStat(self.ntypes, self.descrpt_param['rcut'])
= NeighborStat(self.ntypes, self.descrpt.get_rcut())
self.min_nbor_dist, self.max_nbor_size \
= self.neighbor_stat.get_stat(data)
tf.constant(self.min_nbor_dist,
Expand Down

0 comments on commit 5f8989b

Please sign in to comment.