aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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(