Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/279.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/318.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 属性错误:模块';tensorflow.contrib.slim';没有属性';网络';_Python_Tensorflow_Tf Slim - Fatal编程技术网

Python 属性错误:模块';tensorflow.contrib.slim';没有属性';网络';

Python 属性错误:模块';tensorflow.contrib.slim';没有属性';网络';,python,tensorflow,tf-slim,Python,Tensorflow,Tf Slim,我想使用tf slim中的内置resnet进行快速实验。我是根据自述文件在: 但是出现了这样一个错误:AttributeError:module'tensorflow.contrib.slim'没有属性'nets'。我已经安装了最新版本的tensorflow-0.12.0 如何解决此问题?按如下方式导入: from tensorflow.contrib.slim.nets import resnet_v1 slim = tf.contrib.slim from tensorflow.cont

我想使用
tf slim
中的内置
resnet
进行快速实验。我是根据
自述文件
在:

但是出现了这样一个错误:
AttributeError:module'tensorflow.contrib.slim'没有属性'nets'
。我已经安装了最新版本的
tensorflow-0.12.0

如何解决此问题?

按如下方式导入:

from tensorflow.contrib.slim.nets import resnet_v1

slim = tf.contrib.slim
from tensorflow.contrib.slim.nets import resnet_v1

slim = tf.contrib.slim