From 73155f56a30c75eb54d95ab0d51ab8b5c8fb02c9 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 27 Oct 2017 12:12:31 -0700 Subject: [TF:XLA] Small code cleanup. Re-alphabetized. PiperOrigin-RevId: 173702336 --- tensorflow/compiler/xla/service/hlo_opcode.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tensorflow/compiler/xla/service/hlo_opcode.cc') diff --git a/tensorflow/compiler/xla/service/hlo_opcode.cc b/tensorflow/compiler/xla/service/hlo_opcode.cc index 2f2263f70d..d94c4da5ea 100644 --- a/tensorflow/compiler/xla/service/hlo_opcode.cc +++ b/tensorflow/compiler/xla/service/hlo_opcode.cc @@ -33,6 +33,8 @@ string HloOpcodeString(HloOpcode opcode) { return "abs"; case HloOpcode::kAdd: return "add"; + case HloOpcode::kAnd: + return "and"; case HloOpcode::kAtan2: return "atan2"; case HloOpcode::kBatchNormTraining: @@ -103,12 +105,6 @@ string HloOpcodeString(HloOpcode opcode) { return "less-than-or-equal-to"; case HloOpcode::kLog: return "log"; - case HloOpcode::kAnd: - return "and"; - case HloOpcode::kOr: - return "or"; - case HloOpcode::kNot: - return "not"; case HloOpcode::kLt: return "less-than"; case HloOpcode::kMap: @@ -123,6 +119,10 @@ string HloOpcodeString(HloOpcode opcode) { return "not-equal-to"; case HloOpcode::kNegate: return "negate"; + case HloOpcode::kNot: + return "not"; + case HloOpcode::kOr: + return "or"; case HloOpcode::kOutfeed: return "outfeed"; case HloOpcode::kPad: @@ -190,6 +190,7 @@ StatusOr StringToHloOpcode(const string& opcode_name) { static auto* opcode_map = new tensorflow::gtl::FlatMap( {{"abs", HloOpcode::kAbs}, {"add", HloOpcode::kAdd}, + {"and", HloOpcode::kAnd}, {"batch-norm-training", HloOpcode::kBatchNormTraining}, {"batch-norm-inference", HloOpcode::kBatchNormInference}, {"batch-norm-grad", HloOpcode::kBatchNormGrad}, @@ -222,16 +223,15 @@ StatusOr StringToHloOpcode(const string& opcode_name) { {"is-finite", HloOpcode::kIsFinite}, {"less-than-or-equal-to", HloOpcode::kLe}, {"log", HloOpcode::kLog}, - {"and", HloOpcode::kAnd}, - {"or", HloOpcode::kOr}, - {"not", HloOpcode::kNot}, {"less-than", HloOpcode::kLt}, {"map", HloOpcode::kMap}, {"maximum", HloOpcode::kMaximum}, {"minimum", HloOpcode::kMinimum}, {"multiply", HloOpcode::kMultiply}, + {"not", HloOpcode::kNot}, {"not-equal-to", HloOpcode::kNe}, {"negate", HloOpcode::kNegate}, + {"or", HloOpcode::kOr}, {"outfeed", HloOpcode::kOutfeed}, {"pad", HloOpcode::kPad}, {"parameter", HloOpcode::kParameter}, -- cgit v1.2.3