如何在tensorflow或ValueError中提取层error:Shape(?)?,4096)必须具有等级1

2024-05-13 05:25:14 发布

您现在位置:Python中文网/ 问答频道 /正文

操作系统:CentOS 6-流浪汉专用信箱。未安装CUDA。在

安装: 1安装水蟒4.0.9; 2Tensorflow版本:0.10.0rc0; 三。python3.5、numpy 1.11.2、scipy0.18.1

复制

它是16层的标准VGG模型。我试过提取vgg.fc2使用以下代码分层:http://pastebin.com/A1qd7g2e并出现错误(下面是stacktrace)。之后我也会得到这个错误会话.运行被呼叫。我试过用正确的方法提取图层吗?在

堆栈跟踪-http://pastebin.com/eaQi1T0R

另外,我是tenserflow的新用户,不知道任何尝试过的解决方案。我发现这个问题-https://github.com/tensorflow/tensorflow/issues/3815,但它是关闭的,我打开另一个-https://github.com/tensorflow/tensorflow/issues/4773,任何想法都会有帮助。在


Tags: https版本githubcomhttptensorflow错误cuda