- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在Windows 10上使用tensorflow 2.1
model.add(Conv3D(16, (22, 5, 5), strides=(1, 2, 2), padding='valid',activation='relu',data_format= "channels_first", input_shape=input_shape))
在spyder上,出现以下错误:
{ AttributeError: module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list_devices' }
我该如何解决这个错误?
最佳答案
我在这里找到了答案-https://github.com/keras-team/keras/issues/13684。
我对Anaconda下的keras的load_model()
有相同的问题:
AttributeError: module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list_devices'
...\anaconda3\envs\tf_env\Lib\site-packages\keras\backend\tensorflow_backend.py
_LOCAL_DEVICES = tf.config.experimental_list_devices()
devices = tf.config.list_logical_devices()
_LOCAL_DEVICES = [x.name for x in devices]
关于python - tensorflow_core._api.v2.config中缺少experimental_list_devices属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60581677/
我正在Windows 10上使用tensorflow 2.1 model.add(Conv3D(16, (22, 5, 5), strides=(1, 2, 2), padding='valid',a
我正在 jupyter notebook 中运行神经网络算法。 input_func = tf.estimator.inputs.pandas_input_fn( x=X_train,
当我尝试导入 tensorflow_addons 时,我看到以下错误使用 tensorflow 2.1 > import tensorflow_addons as tfa AttributeError
使用时 image = tf.cast(image, tf.string) label = tf.cast(label, tf.int32) # make a input queue input_qu
x = tf.placeholder(dtype = tf.float32, shape = [None, 28, 28]) y = tf.placeholder(dtype = tf.int32,
我正在使用 python 3.6.9 、keras 2.3.1 和 (tf 2.0.0 或 tf 2.1. 0)。从此table获取兼容版本. 当我导入 keras 时,出现此错误。 最佳答案 错误:
我想将图像从 28*28 调整为 32*32,使用 tf.image.resize_images(x_train, (32, 32)) .它返回 AttributeError:模块“tensorflo
我在Ubuntu 18.04上使用Tensorflow 2.0。运行时 tf.config.list_physical_devices('GPU') 我收到上述错误。解决方法是什么? 最佳答案 运行t
使用 tensorflow 时,出现以下错误消息 ERROR:root:Internal Python error in the inspect module. Below is the traceb
我正在运行下面的代码并收到错误“AttributeError:模块'tensorflow_core.keras.layers'没有属性'Conv1d'”。任何帮助将不胜感激 import tensor
我使用 Tensorflow 2.1.0 在这段代码中 data_augmentation = tf.keras.Sequential([ tf.keras.layers.experiment
我正在构建一个简单的网络服务来对图像进行分类。 分离我的 keras 模型正确分类并且 flask 服务正在运行。 但是当我尝试在我的 flask 应用程序中使用 keras 模型时...... fr
我正在使用 Azure ML studio 使用 SQuAD 数据集训练问答 ALBERT 模型。我收到以下错误。这是我执行的代码。 # Clone transformers github repo
我是一名优秀的程序员,十分优秀!