小编Bre*_*ory的帖子

模块“tensorflow.python.keras.datasets.fashion_mnist”没有属性“load_data”

我目前正在 Keras 网站上关注此介绍教程:https ://www.tensorflow.org/tutorials/keras/basic_classification

调用后我遇到了这个错误的几个步骤fashion_mnist.load_data()

AttributeError: module 'tensorflow.python.keras.datasets.fashion_mnist' has no attribute 'load_data'
Run Code Online (Sandbox Code Playgroud)

这是完整的输出:

Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> from tensorflow import keras
>>> fashion_mnist = keras.datasets.fashion_mnist
>>> (train_images, train_labels), (test_images, test_labels) = fashion_mnist.load_data()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow.python.keras.datasets.fashion_mnist' has no attribute 'load_data'
Run Code Online (Sandbox Code Playgroud)

我正在使用 tensorflow …

keras tensorflow

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

keras ×1

tensorflow ×1