MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetTupleElement

Function GetTupleElement

tensorflow/compiler/xla/service/pattern_matcher.h:2378–2386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2376// element is selected.
2377template <typename Arg>
2378inline 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
2388template <typename HloInstructionType, typename Arg>
2389inline auto GetTupleElement(HloInstructionType** matched_inst, Arg&& arg,

Callers

nothing calls this directly

Calls 4

WithTupleIndexMethod · 0.80
WithOperandMethod · 0.80
WithOpcodeMethod · 0.80
OpFunction · 0.70

Tested by

no test coverage detected