MCPcopy Create free account
hub / github.com/OAID/Tengine / test

Function test

internal/bin/test_permute_op.cpp:515–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513const char* CVSResOut::pDelimit = " ";
514
515void test(int layout, int data_type, CVSResOut& rResFile)
516{
517 const char* test_node_name = "test_permute_op";
518 std::vector<ConcatInputParam> vInput;
519 printf("test Permute layout : %d. dataType : %d\n", layout, data_type);
520 __PUSH_PARAM__(2, 3, 2, 2);
521 if(0 == test_concat(test_node_name, vInput, layout, data_type))
522 {
523 printf("Layout[%d]-[%s]--------------------match-------------------\n", layout, gTypeName[data_type]);
524 rResFile.dump_res(gTypeName[data_type], layout, "match");
525 }
526 else
527 {
528 printf("Layout[%d]-[%s]--------------------match-------------------\n", layout, gTypeName[data_type]);
529 rResFile.dump_res(gTypeName[data_type], layout, "not match");
530 }
531}
532
533int main(int argc, char* argv[])
534{

Callers 1

mainFunction · 0.70

Calls 2

test_concatFunction · 0.70
dump_resMethod · 0.45

Tested by

no test coverage detected