summaryrefslogtreecommitdiff
path: root/examples/quantize/quantize.cpp
diff options
context:
space:
mode:
authorMichael Klimenko <mklimenko29@gmail.com>2024-02-03 12:23:37 +0100
committerGitHub <noreply@github.com>2024-02-03 13:23:37 +0200
commit52bb63c7082c859c3f1dfc527227e6a95b299c7c (patch)
tree16eefdb31b66fd3797383fb877c0f910e3000c7f /examples/quantize/quantize.cpp
parent1ec3332ade60aeb1494ace2211cf1a966db6d770 (diff)
refactor : switch to emplace_back to avoid extra object (#5291)
Diffstat (limited to 'examples/quantize/quantize.cpp')
-rw-r--r--examples/quantize/quantize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quantize/quantize.cpp b/examples/quantize/quantize.cpp
index a9673f0d..85f403ff 100644
--- a/examples/quantize/quantize.cpp
+++ b/examples/quantize/quantize.cpp
@@ -208,13 +208,13 @@ int main(int argc, char ** argv) {
}
} else if (strcmp(argv[arg_idx], "--include-weights") == 0) {
if (arg_idx < argc-1) {
- included_weights.push_back(argv[++arg_idx]);
+ included_weights.emplace_back(argv[++arg_idx]);
} else {
usage(argv[0]);
}
} else if (strcmp(argv[arg_idx], "--exclude-weights") == 0) {
if (arg_idx < argc-1) {
- excluded_weights.push_back(argv[++arg_idx]);
+ excluded_weights.emplace_back(argv[++arg_idx]);
} else {
usage(argv[0]);
}