aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_cost_analysis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_cost_analysis.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_cost_analysis.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_cost_analysis.cc b/tensorflow/compiler/xla/service/hlo_cost_analysis.cc
index 8955e26d5c..1f672502f7 100644
--- a/tensorflow/compiler/xla/service/hlo_cost_analysis.cc
+++ b/tensorflow/compiler/xla/service/hlo_cost_analysis.cc
@@ -155,6 +155,10 @@ Status HloCostAnalysis::HandleConstant(const HloInstruction*) {
return Status::OK();
}
+Status HloCostAnalysis::HandleIota(const HloInstruction*) {
+ return Status::OK();
+}
+
Status HloCostAnalysis::HandleGetTupleElement(const HloInstruction*) {
// GetTupleElement forwards a pointer and does not touch each element in the
// output.
@@ -164,7 +168,11 @@ Status HloCostAnalysis::HandleGetTupleElement(const HloInstruction*) {
return Status::OK();
}
-Status HloCostAnalysis::HandleSelect(const HloInstruction*) {
+Status HloCostAnalysis::HandleSelect(const HloInstruction* hlo) {
+ return HandleElementwiseOp(hlo);
+}
+
+Status HloCostAnalysis::HandleTupleSelect(const HloInstruction*) {
return Status::OK();
}