| 531 | } |
| 532 | |
| 533 | int main(int argc, char* argv[]) |
| 534 | { |
| 535 | int data_type = TENGINE_DT_FP32; |
| 536 | int layout = TENGINE_LAYOUT_NCHW; |
| 537 | |
| 538 | int res; |
| 539 | while((res = getopt(argc, argv, "c:h:w:n:s:p:m:l:t:")) != -1) |
| 540 | { |
| 541 | switch(res) |
| 542 | { |
| 543 | case 't': |
| 544 | data_type = strtoul(optarg, NULL, 10); |
| 545 | break; |
| 546 | default: |
| 547 | break; |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | std::cout << "init_tengine\n"; |
| 552 | init_tengine(); |
| 553 | |
| 554 | const char* pTitle[] = {"DatType", "Layout", "Res"}; |
| 555 | CVSResOut ResOut("permute_ref_test.cvs", pTitle, 3); |
| 556 | |
| 557 | test(layout, data_type, ResOut); |
| 558 | |
| 559 | // fp16 |
| 560 | data_type++; |
| 561 | test(layout, data_type, ResOut); |
| 562 | |
| 563 | // int8 |
| 564 | data_type++; |
| 565 | test(layout, data_type, ResOut); |
| 566 | |
| 567 | // uint8 |
| 568 | data_type++; |
| 569 | test(layout, data_type, ResOut); |
| 570 | |
| 571 | ResOut.save(); |
| 572 | release_tengine(); |
| 573 | |
| 574 | return 0; |
| 575 | } |
nothing calls this directly
no test coverage detected