| 68 | auto config = prepare_sub_opr(args); |
| 69 | |
| 70 | rep(n, N) { |
| 71 | TensorND A_, B_, C_; |
| 72 | auto tensor_n_from_batch = [n](const TensorND& in, TensorND& out) { |
| 73 | out.reset_ptr(static_cast<void*>( |
| 74 | static_cast<dt_byte*>(in.raw_ptr()) + |
| 75 | n * in.layout.stride[0] * in.layout.dtype.size())); |
| 76 | out.layout = in.layout.remove_axis(0); |
| 77 | }; |
| 78 | tensor_n_from_batch(args.tensor_a, A_); |
| 79 | tensor_n_from_batch(args.tensor_b, B_); |
| 80 | tensor_n_from_batch(args.tensor_c, C_); |
| 81 | config.second->exec(A_, B_, C_, args.workspace); |
| 82 | } |
| 83 | } |
no test coverage detected