Skip to content

Commit

Permalink
Update deepmd/utils/finetune.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Duo <[email protected]>
  • Loading branch information
iProzd and coderabbitai[bot] authored Jun 11, 2024
1 parent c0d57e9 commit fd64ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/utils/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
self.model_branch = model_branch
self.random_fitting = random_fitting
self.resuming = resuming
self.update_type = not (self.p_type_map == self.type_map)
self.update_type = self.p_type_map != self.type_map

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

0 comments on commit fd64ee5

Please sign in to comment.