| 158 | #endif |
| 159 | |
| 160 | void usage() { |
| 161 | fprintf(stderr, |
| 162 | "Usage:\n" |
| 163 | "\t--input-model/-m: input model path\n" |
| 164 | "\t--output-dir/-o: output file path\n" |
| 165 | "\t--log-level/-l: 0:ERROR, 1:WARN, 2:INFO, 3:DEBUG\n" |
| 166 | "\t--input-data/-d: var=path/to/data_file, create by: " |
| 167 | "python3 compiler/script/debug/gen_input.py\n" |
| 168 | "\t--data-shape/-s: data shape\n" |
| 169 | "\t--c-opr-lib/-c: path to extern opr lib file(.so)\n" |
| 170 | "\t--c-opr-init-interface/-i: the init API of your loader\n" |
| 171 | "\t--warmup-count/-w: warmup count before run model\n" |
| 172 | "\t--iter-count/-t: iter run model\n"); |
| 173 | } |
| 174 | |
| 175 | #if defined(_WIN32) |
| 176 | #include <io.h> |