-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[record-minmax] Revise driver script #13820
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if (arser["--num_threads"]) | ||
num_threads = arser.get<int>("--num_threads"); | ||
|
||
::get_values_from<float>(arser, "--min_percentile", 1.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return value is not used. This will not update variables.
::get_values_from<float>(arser, "--min_percentile", 1.0); | |
float min_percentile = ::get_values_from<float>(arser, "--min_percentile", 1.0); |
If you want to set default value with this function, it would be possible to remove the above default value setting.
if (arser["--num_threads"]) | ||
num_threads = arser.get<int>("--num_threads"); | ||
|
||
min_percentile = ::get_values_from<float>(arser, "--min_percentile", 1.0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the variable declaration code? Default value is repeated.
If you want to keep that code, it would be better to change function signature.
For example, update_arg_if_possible<float>(arser, "--min_percentile", min_percentile)
-> update min_percentile if possible, return void
This commit revises driver script for static analysis tool. ONE-DCO-1.0-Signed-off-by: seongwoo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This commit revises driver script for static analysis tool.
Related: #13806
ONE-DCO-1.0-Signed-off-by: seongwoo [email protected]