Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 运行numpy时,我会出错_Python_Numpy_Keras - Fatal编程技术网

Python 运行numpy时,我会出错

Python 运行numpy时,我会出错,python,numpy,keras,Python,Numpy,Keras,在运行numpy和其他所有代码时,我不断地得到一个错误 import tensorflow as tf import keras import numpy as np import matplotlib.pyplot as plt data = keras.datasets.fashion_mnist (train_images, train_labels), (test_images, test_labels) = data.load_data() print(train_labels[

在运行numpy和其他所有代码时,我不断地得到一个错误

import tensorflow as tf
import keras
import numpy as np
import matplotlib.pyplot as plt

data = keras.datasets.fashion_mnist

(train_images, train_labels), (test_images, test_labels) = data.load_data()

print(train_labels[0])
我说这个时出错了:

C:\Users\Martijn\Anaconda3\envs\Neural\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550:
 FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;
 in a future version of numpy,
 it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
这不是一个错误,这是一个警告。因此,它不会影响代码的性能


您现在可以忽略它,因为这是TensorFlow工程师必须解决的问题。

这不是错误,而是警告。你仍然应该得到你的结果。如果你没有看到任何东西,它可能是
,你可以用
打印(repr(train_labels[0]))检查它是否正常
好的,谢谢!