tensorflow提示出错'module' object has no attribute 'pack'
提示 No object Tensorflow module has attribute 出错
2023-09-14 09:10:42 时间
编译旧的代码,会像下面这样提示出错:
deconv_shape3 = tf.pack([shape[0], shape[1], shape[2], NUM_OF_CLASSESS])
AttributeError: 'module' object has no attribute 'pack'
因为TF后面的版本修改了这个函数的名称,把tf.pack改为 tf.stack。
因此只需要替换掉,就可以编译通过了。
1. C++标准模板库从入门到精通
2.跟老菜鸟学C++
3. 跟老菜鸟学python
4. 在VC2015里学会使用tinyxml库
5. 在Windows下SVN的版本管理与实战
http://edu.csdn.net/course/detail/2579
6.Visual Studio 2015开发C++程序的基本使用
http://edu.csdn.net/course/detail/2570
相关文章
- windows如何修改盘符,提示无法修改怎么办?
- 问题-Delphi2007编译时提示内存错误“sxs.dll. No Debug Info.ACCESS 0xXXXXX"
- No section matches selector - no section to be FIRST/LAST
- 启动MongoDB时,提示:error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
- Apache2.4.6添加虚拟主机提示:NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/extra/httpd-vhosts.conf
- jdk8新特性:在用Repository实体查询是总是提示要java.util.Optional, 原 Inferred type 'S' for type parameter 'S' is not within its bound;
- vscode的vetur插件提示 [vue-language-server] Elements in iteration expect to have 'v-bind:key' directives错误的解决办法
- eclipse代码提示优化
- paip.点击每个网页链接都提示下载的解决。
- 低电量提示和关机方案
- Android 实现隐私政策提示弹窗
- android导入父类红标提示:import android.support.v13.app.xxx
- 【异常】IDEA中Spring的@Autowired注解提示Could not autowire. No beans of ‘xxxx‘ type found
- 【异常】MyBatis报错,提示There is no getter for property named ‘数据表中的字段名‘ in ‘实体类‘!
- AttributeError: module librosa has no attribute output No module named numba.decorators错误解决
- Android自己主动提示文本框(AutoCompleteTextView)
- 【ChatGPT】ChatGPT Prompt 列表:3000 多个提示、示例、用例、工具、API、扩展、失败和其他资源的集合。
- Win10 打开.cpl文件打不开 突然跳出提示 你正试图打开类型为系统文件的文件 (.cpl)
- win10 删除旧系统windows文件夹,提示需要管理员权限,更改时无法枚举容器中的对象,访问被拒绝,怎么也删不了
- 为什么不能在气泡提示中防止超链接
- e776. 设置JList组件项的提示语
- Spring Boot启动报错,log4j2日志依赖冲突,报错提示:log4j-slf4j-impl cannot be present with log4j-to-slf4j
- .net core 3.1 使用 AddJwtBearer 提示未包含AddJwtBearer定义,并找不到扩展方法AddJwtBearer的问题