运行numpy时出现错误

时间:2019-11-07 17:32:17

标签: 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[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)])

1 个答案:

答案 0 :(得分:0)

这不是错误-这是警告。因此,它不会妨碍代码的性能。

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