Home
last modified time | relevance | path

Searched refs:matched_inst (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dpattern_matcher.h1774 HloInstructionType** matched_inst)
1775 : impl_(impl), matched_inst_(matched_inst) {}
1959 inline constexpr auto Op(const ::xla::HloInstruction** matched_inst = nullptr) {
1962 detail::HloInstructionPatternBaseImpl(), matched_inst);
1967 inline constexpr auto Op(::xla::HloInstruction** matched_inst) {
1970 detail::HloInstructionPatternBaseImpl(), matched_inst);
1978 inline auto NAME(HloInstructionType** matched_inst) { \
1979 return Op(matched_inst).WithOpcode(HloOpcode::k##NAME); \
1999 inline auto NAME(HloInstructionType** matched_inst, Arg&& arg) { \
2000 return Op(matched_inst) \
[all …]
Dpattern_matcher_test.cc41 const HloInstruction* matched_inst; in TEST_F() local
48 match::Op(&matched_inst) in TEST_F()
57 ASSERT_NE(matched_inst, nullptr); in TEST_F()
58 EXPECT_EQ(matched_inst->name(), "two_plus_two"); in TEST_F()
59 EXPECT_EQ(matched_inst->opcode(), HloOpcode::kAdd); in TEST_F()
66 matched_inst = nullptr; in TEST_F()
68 match::Multiply(&matched_inst, match::Op(), match::Op()))); in TEST_F()