Hi! I'm struggling to understand why function convert_zip_code works.
First of all, its input argument will have type tf.Tensor when it is called from preprocessing_fn. Consequently, zipcode=='' will allways be false, as tensor does not equal to empty string and eager mode is not supported in tfx. So I expect this function to crash during casting to an empty string to a number, what I'm missing here? Thanks!
Hi! I'm struggling to understand why function convert_zip_code works.
First of all, its input argument will have type
tf.Tensor
when it is called frompreprocessing_fn
. Consequently,zipcode==''
will allways be false, as tensor does not equal to empty string and eager mode is not supported in tfx. So I expect this function to crash during casting to an empty string to a number, what I'm missing here? Thanks!