Skip to content

Commit

Permalink
Fix typos (#2930)
Browse files Browse the repository at this point in the history
Fix typo in train.py(horder->holder)
  • Loading branch information
HydrogenSulfate authored Oct 18, 2023
1 parent 1440993 commit 3b826bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deepmd/train/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,12 @@ def _build_network(self, data, suffix=""):
self.place_holders[kk] = tf.placeholder(
GLOBAL_TF_FLOAT_PRECISION, [None], "t_" + kk
)
self._get_place_horders(data_requirement)
self._get_place_holders(data_requirement)
else:
if not self.multi_task_mode:
self._get_place_horders(data.get_data_dict())
self._get_place_holders(data.get_data_dict())
else:
self._get_place_horders(data[next(iter(data.keys()))].get_data_dict())
self._get_place_holders(data[next(iter(data.keys()))].get_data_dict())

self.place_holders["type"] = tf.placeholder(tf.int32, [None], name="t_type")
self.place_holders["natoms_vec"] = tf.placeholder(
Expand Down Expand Up @@ -1035,7 +1035,7 @@ def save_compressed(self):
if self.is_compress:
self.saver.save(self.sess, os.path.join(os.getcwd(), self.save_ckpt))

def _get_place_horders(self, data_dict):
def _get_place_holders(self, data_dict):
for kk in data_dict.keys():
if kk == "type":
continue
Expand Down

0 comments on commit 3b826bf

Please sign in to comment.