Skip to content

Commit fd64ee5

Browse files
Update deepmd/utils/finetune.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Duo <50307526+iProzd@users.noreply.github.com>
1 parent c0d57e9 commit fd64ee5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/utils/finetune.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
self.model_branch = model_branch
3939
self.random_fitting = random_fitting
4040
self.resuming = resuming
41-
self.update_type = not (self.p_type_map == self.type_map)
41+
self.update_type = self.p_type_map != self.type_map
4242

4343
def get_index_mapping(self):
4444
"""Returns the mapping index of newly defined types to those in the pretrained model."""

0 commit comments

Comments
 (0)