首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

解决read_data_sets (from tensorflow.contrib.learn.python.learn.dat

tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.Please use...alternatives such as official/mnist/dataset.py from tensorflow/models.Instructions for updating:Please use...`tf.data` to implement this functionality.这个问题的出现是由于TensorFlow团队正在逐步更新和改善API,推荐使用新的​​tf.data​​模块来处理数据集...x_test / 255.0构建模型并进行训练和测试:pythonCopy codemodel = tf.keras.Sequential([ tf.keras.layers.Flatten(input_shape...示例代码:如何使用tf.data加载MNIST数据集在实际应用中,我们通常使用​​tf.data​​模块来处理数据集,包括加载、预处理和批处理等操作。

32420
领券