aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow
diff options
context:
space:
mode:
authorGravatar Sanjoy Das <sanjoy@google.com>2018-05-07 12:48:38 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-07 17:02:12 -0700
commit91fb950c266345ca5b689038adad5e1c31d36b57 (patch)
tree16601402ce31d1ef2391efe1f59b10c2d7951567 /tensorflow
parenta0496a1646fd13188cc985889ca325c004674a17 (diff)
Rename HloDotWithContractDimsMatcher to HloDotWithContractingDimsMatcher
This is a typo I introduced in cr/195514907. PiperOrigin-RevId: 195706006
Diffstat (limited to 'tensorflow')
-rw-r--r--tensorflow/compiler/xla/service/hlo_matchers.cc4
-rw-r--r--tensorflow/compiler/xla/service/hlo_matchers.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_matchers.cc b/tensorflow/compiler/xla/service/hlo_matchers.cc
index 41ce9c1762..7e4b883435 100644
--- a/tensorflow/compiler/xla/service/hlo_matchers.cc
+++ b/tensorflow/compiler/xla/service/hlo_matchers.cc
@@ -198,7 +198,7 @@ void HloShardingMatcher::DescribeTo(std::ostream* os) const {
}
}
-bool HloDotWithContractDimsMatcher::MatchAndExplain(
+bool HloDotWithContractingDimsMatcher::MatchAndExplain(
const HloInstruction* instruction,
::testing::MatchResultListener* listener) const {
if (!HloMatcher::MatchAndExplain(instruction, listener)) {
@@ -227,7 +227,7 @@ bool HloDotWithContractDimsMatcher::MatchAndExplain(
return true;
}
-void HloDotWithContractDimsMatcher::DescribeTo(std::ostream* os) const {
+void HloDotWithContractingDimsMatcher::DescribeTo(std::ostream* os) const {
HloMatcher::DescribeTo(os);
*os << " with lhs_contracting_dims={" << lhs_contracting_dim_
<< "} and rhs_contracting_dims={" << rhs_contracting_dim_ << "}";
diff --git a/tensorflow/compiler/xla/service/hlo_matchers.h b/tensorflow/compiler/xla/service/hlo_matchers.h
index 75231beac7..c33bdadf1c 100644
--- a/tensorflow/compiler/xla/service/hlo_matchers.h
+++ b/tensorflow/compiler/xla/service/hlo_matchers.h
@@ -133,9 +133,9 @@ class HloShardingMatcher
// Matches a Dot HLO instruction with specific LHS and RHS contracting
// dimensions.
-class HloDotWithContractDimsMatcher : public HloMatcher {
+class HloDotWithContractingDimsMatcher : public HloMatcher {
public:
- explicit HloDotWithContractDimsMatcher(
+ explicit HloDotWithContractingDimsMatcher(
::testing::Matcher<const HloInstruction*> lhs,
::testing::Matcher<const HloInstruction*> rhs, int64 lhs_contracting_dim,
int64 rhs_contracting_dim)
@@ -350,7 +350,7 @@ inline ::testing::Matcher<const ::xla::HloInstruction*> Dot(
::testing::Matcher<const HloInstruction*> rhs_matcher,
int64 lhs_contracting_dim, int64 rhs_contracting_dim) {
return ::testing::MakeMatcher(
- new ::xla::testing::HloDotWithContractDimsMatcher(
+ new ::xla::testing::HloDotWithContractingDimsMatcher(
lhs_matcher, rhs_matcher, lhs_contracting_dim, rhs_contracting_dim));
}