当前位置:网站首页>paddle.fluild常量计算报错‘NoneType‘ object has no attribute ‘get_fetch_list‘
paddle.fluild常量计算报错‘NoneType‘ object has no attribute ‘get_fetch_list‘
2022-07-29 05:09:00 【晶格点阵】
错误来源:
《paddlepaddle Fluid深度学习入门与实》书籍中第一个示例:“PaddlePaddle常量的使用”
示例代码如下:
import paddle.fluid as fluid
x1 = fluid.layers.fill_constant(shape=[2, 2], value=1, dtype='int64')
x2 = fluid.layers.fill_constant(shape=[2, 2], value=1, dtype='int64')
y1 = fluid.layers.sum(x=[x1, x2])
place = fluid.CPUPlace()
exe = fluid.executor.Executor(place)
exe.run(fluid.default_startup_program())
result = exe.run(program=fluid.default_main_program(), fetch_list=[y1])
print(result)
if __name__ == '__main__':
pass运行报错如下:
C:\ProgramData\Anaconda3\lib\site-packages\paddle\fluid\executor.py:1279: UserWarning: There are no operators in the program to be executed. If you pass Program manually, please use fluid.program_guard to ensure the current Program is being used.
war边栏推荐
- Xiaobai high salary shortcut Qt development game Snake
- Live broadcast Preview: integration of JD cloud Devops and jfrog product library
- 时间复杂度和空间复杂度
- CryEngine技术
- 冒泡排序 C语言
- Alibaba cloud and Dingjie software released the cloud digital factory solution to realize the localized deployment of cloud MES system
- 365 day challenge leetcode 1000 questions - day 039 full binary tree inserter + find peak II + snapshot array
- Cryengine5 shader debugging
- Helm chart for Kubernetes
- AD常用快捷键
猜你喜欢

QT series - Installation

【C语言系列】—深度解剖数据在内存中的存储(二)-浮点型

Complete ecological map of R & D Efficiency & selection of Devops tools

Alibaba cloud architect Liang Xu: MES on cloud box helps customers quickly build digital factories

【活动预告】云上数字工厂与中小企业数字化转型创新论坛

千人规模互联网公司研发效能成功之路

MySQL的基础概念+数据库系统结构+拓展延申+基础命令学习

Alibaba cloud and Dingjie software released the cloud digital factory solution to realize the localized deployment of cloud MES system

来!看排名一年上升16位的ClickHouse,如何在京东落地实践

Live broadcast preview | how to improve enterprise immunity through "intelligent edge security"?
随机推荐
容器安全开源检测工具--问脉 VeinMind(镜像后门、恶意样本、敏感信息、弱口令等)
Unity3d - the object is too far away to see
QT learning: qdropevent drag event
水一篇图的拓扑排序
QtCreator+CMake编译器设置
存储类别
QT series - Installation
京东云联合Forrester咨询发布混合云报告 云原生成为驱动产业发展新引擎
【C语言系列】— 把同学弄糊涂的 “常量” 与 “变量”
MySQL的基础概念+数据库系统结构+拓展延申+基础命令学习
C语言文件操作
365 day challenge leetcode 1000 questions - day 041 two point search completion anniversary + nth magic number + online election
直播预告|如何通过“智能边缘安全”提升企业免疫力?
QML type: state state
Helm chart for Kubernetes
Cmu15-213 malloc lab experiment record
Xiaobai high salary shortcut Qt development game Snake
实现简单的数据库查询(不完整)
Thousands of databases, physical machines all over the country, JD logistics full volume cloud live record | interview with excellent technical team
Vs code的安装步骤及环境配置