[tf.data] Improve the error messages for `Dataset.from_generator()`.
In particular: * Improve the error message when the generator yields something with the wrong structure. * Improve the error message when the generator yields something with the wrong element type. PiperOrigin-RevId: 200124096
Loading
Please sign in to comment