When converting ExtensionType inputs to match the expected dtype, only use...
When converting ExtensionType inputs to match the expected dtype, only use tf.cast if the value doesn't already have the expected dtype. (Not all ExtensionTypes add dispatch handlers for the tf.cast method, so we should avoid calling it unless it's necessary.) PiperOrigin-RevId: 395780095
Showing
想要评论请 注册 或 登录