mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Fix] keep keys (#431)
This commit is contained in:
parent
a1ea3c094a
commit
07574fddbb
@ -62,7 +62,7 @@ class BasePartitioner:
|
|||||||
tgt_ptr[key] = {}
|
tgt_ptr[key] = {}
|
||||||
tgt_ptr = tgt_ptr[key]
|
tgt_ptr = tgt_ptr[key]
|
||||||
tgt_ptr[key_chain[-1]] = ori_ptr[key_chain[-1]]
|
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.')
|
self.logger.warning(f'Key {k} not found in config, ignored.')
|
||||||
|
|
||||||
tasks = self.partition(models,
|
tasks = self.partition(models,
|
||||||
|
Loading…
Reference in New Issue
Block a user