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
tsoc
superbenchmark
Commits
08d25bd2
"git@developer.sourcefind.cn:yangql/googletest.git" did not exist on "6e0fba4de0c506dff05598799fcc56fccfdcc669"
Unverified
Commit
08d25bd2
authored
Jul 09, 2021
by
guoshzhao
Committed by
GitHub
Jul 09, 2021
Browse files
Bug Fix - Fix bug when convert bool config to store_true argument. (#120)
parent
5d6bc58d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
superbench/executor/executor.py
superbench/executor/executor.py
+3
-2
No files found.
superbench/executor/executor.py
View file @
08d25bd2
...
...
@@ -85,8 +85,9 @@ def __get_arguments(self, parameters):
for
name
,
val
in
parameters
.
items
():
if
val
is
None
:
continue
if
isinstance
(
val
,
bool
)
and
val
:
argv
.
append
(
'--{}'
.
format
(
name
))
if
isinstance
(
val
,
bool
):
if
val
:
argv
.
append
(
'--{}'
.
format
(
name
))
elif
isinstance
(
val
,
(
str
,
int
,
float
)):
argv
.
append
(
'--{} {}'
.
format
(
name
,
val
))
elif
isinstance
(
val
,
(
list
,
ListConfig
)):
...
...
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