| 523 | } |
| 524 | |
| 525 | struct test_params { |
| 526 | af_mat_prop opt_lhs; |
| 527 | af_mat_prop opt_rhs; |
| 528 | float *alpha; |
| 529 | float *h_lhs; |
| 530 | float *h_rhs; |
| 531 | float *h_gold; |
| 532 | dim4 lhs_dims; |
| 533 | dim4 rhs_dims; |
| 534 | dim4 out_dims; |
| 535 | float *beta; |
| 536 | TestOutputArrayType out_array_type; |
| 537 | |
| 538 | test_params(af_mat_prop optl, af_mat_prop optr, float *a, float *l, |
| 539 | float *r, float *g, dim4 ldims, dim4 rdims, dim4 odims, |
| 540 | float *b, TestOutputArrayType t) |
| 541 | : opt_lhs(optl) |
| 542 | , opt_rhs(optr) |
| 543 | , alpha(a) |
| 544 | , h_lhs(l) |
| 545 | , h_rhs(r) |
| 546 | , h_gold(g) |
| 547 | , lhs_dims(ldims) |
| 548 | , rhs_dims(rdims) |
| 549 | , out_dims(odims) |
| 550 | , beta(b) |
| 551 | , out_array_type(t) {} |
| 552 | }; |
| 553 | |
| 554 | class Gemm : public ::testing::TestWithParam<test_params> { |
| 555 | protected: |