| 12 | |
| 13 | namespace { |
| 14 | std::pair<TensorLayoutArray, MatrixMulForward::Param> sub_opr_config( |
| 15 | const TensorLayout& layout_a, const TensorLayout& layout_b, |
| 16 | const TensorLayout& layout_c, const BatchedMatrixMulForward* opr) { |
| 17 | auto mm_layout_a = layout_a.remove_axis(0); |
| 18 | auto mm_layout_b = layout_b.remove_axis(0); |
| 19 | auto mm_layout_c = layout_c.remove_axis(0); |
| 20 | |
| 21 | return {{mm_layout_a, mm_layout_b, mm_layout_c}, opr->param()}; |
| 22 | } |
| 23 | |
| 24 | std::pair<TensorLayoutArray, std::unique_ptr<MatrixMulForward>> prepare_sub_opr( |
| 25 | const BatchedMatrixMulForwardImpl::AlgoBase::SizeArgs& args) { |
no test coverage detected