diff options
author | Michael Klimenko <mklimenko29@gmail.com> | 2024-02-03 12:23:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 13:23:37 +0200 |
commit | 52bb63c7082c859c3f1dfc527227e6a95b299c7c (patch) | |
tree | 16eefdb31b66fd3797383fb877c0f910e3000c7f /examples/quantize-stats/quantize-stats.cpp | |
parent | 1ec3332ade60aeb1494ace2211cf1a966db6d770 (diff) |
refactor : switch to emplace_back to avoid extra object (#5291)
Diffstat (limited to 'examples/quantize-stats/quantize-stats.cpp')
-rw-r--r-- | examples/quantize-stats/quantize-stats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quantize-stats/quantize-stats.cpp b/examples/quantize-stats/quantize-stats.cpp index 6d5f213d..1d05f139 100644 --- a/examples/quantize-stats/quantize-stats.cpp +++ b/examples/quantize-stats/quantize-stats.cpp @@ -257,13 +257,13 @@ int main(int argc, char ** argv) { invalid_param = true; break; } - params.include_layers.push_back(argv[i]); + params.include_layers.emplace_back(argv[i]); } else if (arg == "-L" || arg == "--exclude-layer") { if (++i >= argc) { invalid_param = true; break; } - params.exclude_layers.push_back(argv[i]); + params.exclude_layers.emplace_back(argv[i]); } else if (arg == "-t" || arg == "--type") { if (++i >= argc) { invalid_param = true; |