Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
opencompass
Commits
e6194df2
Unverified
Commit
e6194df2
authored
Aug 09, 2023
by
Tong Gao
Committed by
GitHub
Aug 09, 2023
Browse files
[Fix] Use a copy of the config object in Task (#174)
parent
d5d4f473
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
opencompass/tasks/base.py
opencompass/tasks/base.py
+2
-0
No files found.
opencompass/tasks/base.py
View file @
e6194df2
import
copy
import
os
from
abc
import
abstractmethod
from
typing
import
List
...
...
@@ -25,6 +26,7 @@ class BaseTask:
output_subdir
:
str
=
None
def
__init__
(
self
,
cfg
:
ConfigDict
):
cfg
=
copy
.
deepcopy
(
cfg
)
self
.
cfg
=
cfg
self
.
model_cfgs
=
cfg
[
'models'
]
self
.
dataset_cfgs
=
cfg
[
'datasets'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment