"magic_pdf/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "0a9a6d3e539b2d541504a0714623444f37d7f298"
Commit c1d2a665 authored by Paul's avatar Paul
Browse files

Formatting

parent f0c57f28
...@@ -23,8 +23,7 @@ struct loader ...@@ -23,8 +23,7 @@ struct loader
ap(type, {"--onnx"}, ap.help("Load as onnx"), ap.set_value("onnx")); ap(type, {"--onnx"}, ap.help("Load as onnx"), ap.set_value("onnx"));
ap(type, {"--tf"}, ap.help("Load as tensorflow"), ap.set_value("tf")); ap(type, {"--tf"}, ap.help("Load as tensorflow"), ap.set_value("tf"));
ap(is_nhwc, {"--nhwc"}, ap.help("Treat tensorflow format as nhwc"), ap.set_value(true)); ap(is_nhwc, {"--nhwc"}, ap.help("Treat tensorflow format as nhwc"), ap.set_value(true));
ap( ap(is_nhwc, {"--nchw"}, ap.help("Treat tensorflow format as nchw"), ap.set_value(false));
is_nhwc, {"--nchw"}, ap.help("Treat tensorflow format as nchw"), ap.set_value(false));
ap(trim, {"--trim", "-t"}, ap.help("Trim instructions from the end")); ap(trim, {"--trim", "-t"}, ap.help("Trim instructions from the end"));
} }
...@@ -75,11 +74,10 @@ struct verify : command<verify> ...@@ -75,11 +74,10 @@ struct verify : command<verify>
l.parse(ap); l.parse(ap);
ap(tolerance, {"--tolerance"}, ap.help("Tolerance for errors")); ap(tolerance, {"--tolerance"}, ap.help("Tolerance for errors"));
ap(per_instruction, ap(per_instruction,
{"-i", "--per-instruction"}, {"-i", "--per-instruction"},
ap.help("Verify each instruction"), ap.help("Verify each instruction"),
ap.set_value(true)); ap.set_value(true));
ap( ap(reduce, {"-r", "--reduce"}, ap.help("Reduce program and verify"), ap.set_value(true));
reduce, {"-r", "--reduce"}, ap.help("Reduce program and verify"), ap.set_value(true));
} }
void run() void run()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment