| 2376 | // element is selected. |
| 2377 | template <typename Arg> |
| 2378 | inline auto GetTupleElement(Arg&& arg, int64 tuple_index) |
| 2379 | -> decltype(Op().WithOpcode(HloOpcode::kGetTupleElement) |
| 2380 | .WithOperand(0, std::forward<Arg>(arg)) |
| 2381 | .WithTupleIndex(tuple_index)) { |
| 2382 | return Op() |
| 2383 | .WithOpcode(HloOpcode::kGetTupleElement) |
| 2384 | .WithOperand(0, std::forward<Arg>(arg)) |
| 2385 | .WithTupleIndex(tuple_index); |
| 2386 | } |
| 2387 | |
| 2388 | template <typename HloInstructionType, typename Arg> |
| 2389 | inline auto GetTupleElement(HloInstructionType** matched_inst, Arg&& arg, |
nothing calls this directly
no test coverage detected