Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
superbenchmark
Commits
05e449a3
Unverified
Commit
05e449a3
authored
Jun 28, 2021
by
guoshzhao
Committed by
GitHub
Jun 28, 2021
Browse files
Bug bash - Fix ambiguous type check in executor. (#104)
parent
e7b6af35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
superbench/executor/executor.py
superbench/executor/executor.py
+3
-3
No files found.
superbench/executor/executor.py
View file @
05e449a3
...
@@ -84,12 +84,12 @@ class SuperBenchExecutor():
...
@@ -84,12 +84,12 @@ class SuperBenchExecutor():
for
name
,
val
in
parameters
.
items
():
for
name
,
val
in
parameters
.
items
():
if
val
is
None
:
if
val
is
None
:
continue
continue
if
isinstance
(
val
,
(
str
,
int
,
float
)):
if
isinstance
(
val
,
bool
)
and
val
:
argv
.
append
(
'--{}'
.
format
(
name
))
elif
isinstance
(
val
,
(
str
,
int
,
float
)):
argv
.
append
(
'--{} {}'
.
format
(
name
,
val
))
argv
.
append
(
'--{} {}'
.
format
(
name
,
val
))
elif
isinstance
(
val
,
(
list
,
ListConfig
)):
elif
isinstance
(
val
,
(
list
,
ListConfig
)):
argv
.
append
(
'--{} {}'
.
format
(
name
,
' '
.
join
(
val
)))
argv
.
append
(
'--{} {}'
.
format
(
name
,
' '
.
join
(
val
)))
elif
isinstance
(
val
,
bool
)
and
val
:
argv
.
append
(
'--{}'
.
format
(
name
))
return
' '
.
join
(
argv
)
return
' '
.
join
(
argv
)
def
__exec_benchmark
(
self
,
context
,
log_suffix
):
def
__exec_benchmark
(
self
,
context
,
log_suffix
):
...
...
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