diff options
author | 2018-08-17 14:37:50 -0700 | |
---|---|---|
committer | 2018-08-17 14:44:46 -0700 | |
commit | 02789550849042b93ed76ed4012d7566d5da5473 (patch) | |
tree | 6d47ae9398258015638a8fb0495a3b45012b2c9e /tensorflow/compiler/xla/service/hlo_evaluator_typed_visitor.h | |
parent | 201b2e6bfae52725514b8be0677ac4a3104b8707 (diff) |
[XLA] Replace a CHECK(false) in the evaluator with a LOG(FATAL).
PiperOrigin-RevId: 209208985
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_evaluator_typed_visitor.h')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_evaluator_typed_visitor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_evaluator_typed_visitor.h b/tensorflow/compiler/xla/service/hlo_evaluator_typed_visitor.h index 7fdf4521de..f62e6b74b1 100644 --- a/tensorflow/compiler/xla/service/hlo_evaluator_typed_visitor.h +++ b/tensorflow/compiler/xla/service/hlo_evaluator_typed_visitor.h @@ -105,7 +105,8 @@ class HloEvaluatorTypedVisitor : public DfsHloVisitorWithDefault { typename std::enable_if<is_complex_t<NativeT>::value>::type* = nullptr> double GetAsDouble(const Literal& literal, tensorflow::gtl::ArraySlice<int64> input_index) { - CHECK(false); + LOG(FATAL) << "Trying to get complex literal as double: " + << literal.ToString(); } public: |