From 1bedac6ff02270e77fc7c0c36ede9032148669f8 Mon Sep 17 00:00:00 2001 From: KerfuffleV2 Date: Mon, 12 Jun 2023 13:03:59 -0600 Subject: [PATCH] Remove iostream usage from quantize tool --- examples/quantize/quantize.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/quantize/quantize.cpp b/examples/quantize/quantize.cpp index d191cb1b2..877c31373 100644 --- a/examples/quantize/quantize.cpp +++ b/examples/quantize/quantize.cpp @@ -5,8 +5,6 @@ #include #include #include -#include -#include #include struct quant_option { @@ -154,7 +152,7 @@ void usage(const char * executable) { fprintf(stderr, " --leave-output-tensor: Will leave output.weight un(re)quantized. Increases model size but may also increase quality, especially when requantizing\n"); fprintf(stderr, "Allowed quantization types:\n"); for (auto & it : QUANT_OPTIONS) { - std::cout << " " << std::setw(2) << it.ftype << " or " << std::setw(6) << it.name << " : " << it.desc << "\n"; + printf(" %2d or %6s : %s\n", it.ftype, it.name.c_str(), it.desc.c_str()); } exit(1); }