MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / out_info

Function out_info

test/blas.cpp:617–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617string out_info(const ::testing::TestParamInfo<Gemm::ParamType> info) {
618 test_params params = info.param;
619
620 stringstream ss;
621 switch (params.out_array_type) {
622 case NULL_ARRAY: ss << "NullOut"; break;
623 case FULL_ARRAY: ss << "FullOut"; break;
624 case SUB_ARRAY: ss << "SubarrayOut"; break;
625 case REORDERED_ARRAY: ss << "ReorderedOut"; break;
626 default: ss << "UnknownOutArrayType"; break;
627 }
628
629 ss << "_" << concat_dim4(params.lhs_dims) << "_"
630 << concat_dim4(params.rhs_dims);
631
632 ss << "_";
633 ss << (params.opt_lhs == AF_MAT_TRANS ? "T" : "N");
634 ss << (params.opt_rhs == AF_MAT_TRANS ? "T" : "N");
635
636 if (params.lhs_dims[2] > 1 || params.rhs_dims[2] > 1) { ss << "_Batched"; }
637
638 return ss.str();
639}
640
641// clang-format off
642INSTANTIATE_TEST_SUITE_P(

Callers

nothing calls this directly

Calls 1

concat_dim4Function · 0.70

Tested by

no test coverage detected