| 22 | } |
| 23 | |
| 24 | std::pair<TensorLayoutArray, std::unique_ptr<MatrixMulForward>> prepare_sub_opr( |
| 25 | const BatchedMatrixMulForwardImpl::AlgoBase::SizeArgs& args) { |
| 26 | auto matmul_opr = args.opr->handle()->create_operator<MatrixMulForward>(); |
| 27 | set_execution_policy<BatchedMatrixMulForward, MatrixMulForward*>( |
| 28 | args.opr, matmul_opr.get()); |
| 29 | |
| 30 | auto&& config = |
| 31 | sub_opr_config(args.layout_a, args.layout_b, args.layout_c, args.opr); |
| 32 | matmul_opr->param() = config.second; |
| 33 | |
| 34 | return {config.first, std::move(matmul_opr)}; |
| 35 | } |
| 36 | |
| 37 | } // namespace |
| 38 |
no test coverage detected