diff options
author | 2016-03-23 08:16:22 -0800 | |
---|---|---|
committer | 2016-03-23 12:09:54 -0700 | |
commit | d79bc31f45b1fdf98bdcac022f0a86a3e7fbf860 (patch) | |
tree | d0d63346a5eca3adc7bfbde825be049211f89e23 | |
parent | 0ff906356e49249f19a1060138d7c8eb22e5d4cc (diff) |
Fix a case where DT_HALF would not be part of the right type lists
for __ANDROID_TYPES_FULL__.
Change: 117936401
-rw-r--r-- | tensorflow/core/framework/types.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/core/framework/types.cc b/tensorflow/core/framework/types.cc index fceb2f3a04..5516a09a98 100644 --- a/tensorflow/core/framework/types.cc +++ b/tensorflow/core/framework/types.cc @@ -209,7 +209,8 @@ DataTypeVector NumberTypes() { DataTypeVector RealNumberTypes() { return {DT_FLOAT, DT_INT32, DT_INT64}; } DataTypeVector NumberTypes() { - return {DT_FLOAT, DT_INT32, DT_INT64, DT_QINT8, DT_QUINT8, DT_QINT32}; + return {DT_FLOAT, DT_INT32, DT_INT64, DT_QINT8, + DT_QUINT8, DT_QINT32, DT_HALF}; } DataTypeVector QuantizedTypes() { @@ -217,8 +218,8 @@ DataTypeVector QuantizedTypes() { } DataTypeVector RealAndQuantizedTypes() { - return {DT_FLOAT, DT_INT32, DT_INT64, DT_QINT8, - DT_QUINT8, DT_QINT16, DT_QUINT16, DT_QINT32}; + return {DT_FLOAT, DT_INT32, DT_INT64, DT_QINT8, DT_QUINT8, + DT_QINT16, DT_QUINT16, DT_QINT32, DT_HALF}; } #else // defined(__ANDROID__) && !defined(__ANDROID_TYPES_FULL__) |