aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tf2xla/type_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/tf2xla/type_util.cc')
-rw-r--r--tensorflow/compiler/tf2xla/type_util.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/tensorflow/compiler/tf2xla/type_util.cc b/tensorflow/compiler/tf2xla/type_util.cc
index c969212a1b..d00b137662 100644
--- a/tensorflow/compiler/tf2xla/type_util.cc
+++ b/tensorflow/compiler/tf2xla/type_util.cc
@@ -26,21 +26,26 @@ Status DataTypeToPrimitiveType(DataType data_type, xla::PrimitiveType* type) {
*type = xla::PRED;
return Status::OK();
case tensorflow::DT_INT8:
+ case tensorflow::DT_QINT8:
*type = xla::S8;
return Status::OK();
case tensorflow::DT_INT16:
+ case tensorflow::DT_QINT16:
*type = xla::S16;
return Status::OK();
case tensorflow::DT_INT32:
+ case tensorflow::DT_QINT32:
*type = xla::S32;
return Status::OK();
case tensorflow::DT_INT64:
*type = xla::S64;
return Status::OK();
case tensorflow::DT_UINT8:
+ case tensorflow::DT_QUINT8:
*type = xla::U8;
return Status::OK();
case tensorflow::DT_UINT16:
+ case tensorflow::DT_QUINT16:
*type = xla::U16;
return Status::OK();
case tensorflow::DT_UINT32:
@@ -64,12 +69,6 @@ Status DataTypeToPrimitiveType(DataType data_type, xla::PrimitiveType* type) {
case tensorflow::DT_COMPLEX64:
*type = xla::C64;
return Status::OK();
- case tensorflow::DT_QUINT8:
- *type = xla::U8;
- return Status::OK();
- case tensorflow::DT_QINT32:
- *type = xla::S32;
- return Status::OK();
default:
return errors::InvalidArgument(
"Unsupported type in DataTypeToPrimitiveType ",