Skip to content

Commit

Permalink
[Fix] keep keys (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaotongxiao authored Sep 22, 2023
1 parent a1ea3c0 commit 07574fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencompass/partitioners/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __call__(self, cfg: ConfigDict) -> List[Dict]:
tgt_ptr[key] = {}
tgt_ptr = tgt_ptr[key]
tgt_ptr[key_chain[-1]] = ori_ptr[key_chain[-1]]
except AttributeError:
except Exception:
self.logger.warning(f'Key {k} not found in config, ignored.')

tasks = self.partition(models,
Expand Down

0 comments on commit 07574fd

Please sign in to comment.