tf.contrib.data.map_and_batch
tf2.* 版本中无法处理tf1中的这个函数: tf.contrib.data.map_and_batch(batch_size,drop_remainder)
通过查找,tf2版本中更新为:tf.data.Dataset.batch(batch_size, drop_remainder). 解决问题
tf.contrib在tf2版本中改用tf.compat.v1.estimator
tf.contrib.data.map_and_batch
tf2.* 版本中无法处理tf1中的这个函数: tf.contrib.data.map_and_batch(batch_size,drop_remainder)
通过查找,tf2版本中更新为:tf.data.Dataset.batch(batch_size, drop_remainder). 解决问题
tf.contrib在tf2版本中改用tf.compat.v1.estimator