diff options
author | 2017-08-30 16:01:58 -0700 | |
---|---|---|
committer | 2017-08-30 16:05:26 -0700 | |
commit | 2e3d2f97de90508efd2729d90fbd74fb6d770961 (patch) | |
tree | cf1b50a0c10820e63e59d03ef0a5252d34f5ef9c /tensorflow/compiler/xla/service/hlo_cost_analysis.h | |
parent | 6ee861444729063f7b0af8c2f8d37efcd854388e (diff) |
[TF:XLA] Don't pass opcode separately in two HLO visitor functions.
HandleElementwiseUnary and HandleElementwiseBinary never use this parameter and it is accessible from the HLO instruction anyway.
No functional change.
PiperOrigin-RevId: 167063592
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_cost_analysis.h')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_cost_analysis.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_cost_analysis.h b/tensorflow/compiler/xla/service/hlo_cost_analysis.h index 6d8fdfa64b..eeb3d4edd1 100644 --- a/tensorflow/compiler/xla/service/hlo_cost_analysis.h +++ b/tensorflow/compiler/xla/service/hlo_cost_analysis.h @@ -49,9 +49,8 @@ class HloCostAnalysis : public DfsHloVisitor { using ShapeSizeFunction = std::function<int64(const Shape&)>; explicit HloCostAnalysis(const ShapeSizeFunction& shape_size); - Status HandleElementwiseUnary(HloInstruction* hlo, HloOpcode opcode) override; - Status HandleElementwiseBinary(HloInstruction* hlo, - HloOpcode opcode) override; + Status HandleElementwiseUnary(HloInstruction* hlo) override; + Status HandleElementwiseBinary(HloInstruction* hlo) override; Status HandleConstant(HloInstruction* constant, const Literal& literal) override; Status HandleGetTupleElement(HloInstruction* get_tuple_element, |