aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Adrian Kuegel <akuegel@google.com>2018-09-19 02:26:56 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-19 02:30:53 -0700
commit4732df127d13ce3af5840607b087fc79d883601b (patch)
treed9ba86410a2d518f60137abf6edcc600e4d73067
parent0d8942fcbcc9cb3a05be8acc843d1fc4b6dfc9f1 (diff)
Replace DLOG(FATAL) with an Unimplemented error.
In tensorflow we don't have DLOG, and we should not use LOG(FATAL). PiperOrigin-RevId: 213595376
-rw-r--r--tensorflow/compiler/xla/service/cpu/ir_emitter.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tensorflow/compiler/xla/service/cpu/ir_emitter.cc b/tensorflow/compiler/xla/service/cpu/ir_emitter.cc
index 7e82375cc3..c32f2533ee 100644
--- a/tensorflow/compiler/xla/service/cpu/ir_emitter.cc
+++ b/tensorflow/compiler/xla/service/cpu/ir_emitter.cc
@@ -607,8 +607,9 @@ Status IrEmitter::HandleSort(HloInstruction* sort) {
keys_native_type = b_.getDoubleTy()->getPointerTo();
break;
default:
- DLOG(FATAL) << "Element type " << PrimitiveType_Name(keys_type)
- << " not supported in the Sort op on CPU.";
+ return Unimplemented(
+ "Element type %s not supported in the Sort op on CPU.",
+ PrimitiveType_Name(keys_type));
}
llvm::FunctionType* key_value_sort_type = llvm::FunctionType::get(