Python 运行numpy时,我会出错
在运行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[
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]))检查它是否正常
好的,谢谢!