diff options
author | 2018-09-19 02:26:56 -0700 | |
---|---|---|
committer | 2018-09-19 02:30:53 -0700 | |
commit | 4732df127d13ce3af5840607b087fc79d883601b (patch) | |
tree | d9ba86410a2d518f60137abf6edcc600e4d73067 | |
parent | 0d8942fcbcc9cb3a05be8acc843d1fc4b6dfc9f1 (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.cc | 5 |
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( |