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

Function Explanation

tensorflow/compiler/xla/service/pattern_matcher_test.cc:501–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499
500template <typename Elem, typename Pattern>
501string Explanation(Elem* elem, const Pattern& pattern) {
502 std::stringstream ss;
503 MatchOption options{/*.capture=*/true, /*.explain_os=*/&ss};
504 Match(elem, pattern, options);
505 return ss.str();
506}
507template <typename Elem, typename Pattern>
508string Explanation(const std::unique_ptr<Elem>& elem, const Pattern& pattern) {
509 return Explanation(elem.get(), pattern);

Callers 1

TEST_FFunction · 0.85

Calls 2

MatchFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected