@@ -153,9 +153,16 @@ limitations under the License.
153
153
#endif // defined(IS_MOBILE_PLATFORM) - end of TF_CALL_type defines
154
154
155
155
// Defines for sets of types.
156
- #define TF_CALL_INTEGRAL_TYPES (m ) \
157
- TF_CALL_uint64(m) TF_CALL_int64(m) TF_CALL_uint32(m) TF_CALL_int32(m) \
158
- TF_CALL_uint16(m) TF_CALL_int16(m) TF_CALL_uint8(m) TF_CALL_int8(m)
156
+
157
+ // TODO(b/111604096): Add uint32 and uint64 to TF_CALL_INTEGRAL_TYPES.
158
+ //
159
+ // The uint32 and uint64 types were introduced in 10/2017 to be used via XLA and
160
+ // thus were not included in TF_CALL_INTEGRAL_TYPES. Including them in
161
+ // TF_CALL_INTEGRAL_TYPES should only happen after evaluating the effect on the
162
+ // TF binary size and performance.
163
+ #define TF_CALL_INTEGRAL_TYPES (m ) \
164
+ TF_CALL_int64(m) TF_CALL_int32(m) TF_CALL_uint16(m) TF_CALL_int16(m) \
165
+ TF_CALL_uint8(m) TF_CALL_int8(m)
159
166
160
167
#define TF_CALL_FLOAT_TYPES (m ) \
161
168
TF_CALL_half(m) TF_CALL_bfloat16(m) TF_CALL_float(m) TF_CALL_double(m)
@@ -167,10 +174,10 @@ limitations under the License.
167
174
#define TF_CALL_REAL_NUMBER_TYPES_NO_BFLOAT16 (m ) \
168
175
TF_CALL_INTEGRAL_TYPES(m) TF_CALL_half(m) TF_CALL_float(m) TF_CALL_double(m)
169
176
170
- #define TF_CALL_REAL_NUMBER_TYPES_NO_INT32 (m ) \
171
- TF_CALL_half(m) TF_CALL_bfloat16(m) TF_CALL_float(m) TF_CALL_double(m) \
172
- TF_CALL_uint64 (m) TF_CALL_int64 (m) TF_CALL_uint32 (m) TF_CALL_uint16 (m) \
173
- TF_CALL_int16(m) TF_CALL_uint8(m) TF_CALL_int8(m)
177
+ #define TF_CALL_REAL_NUMBER_TYPES_NO_INT32 (m ) \
178
+ TF_CALL_half(m) TF_CALL_bfloat16(m) TF_CALL_float(m) TF_CALL_double(m) \
179
+ TF_CALL_int64 (m) TF_CALL_uint16 (m) TF_CALL_int16 (m) TF_CALL_uint8 (m) \
180
+ TF_CALL_int8(m)
174
181
175
182
#define TF_CALL_COMPLEX_TYPES (m ) TF_CALL_complex64(m) TF_CALL_complex128(m)
176
183
0 commit comments