当前位置:网站首页>paddle. Fluid constant calculation error 'nonetype' object has no attribute 'get_ fetch_ list‘
paddle. Fluid constant calculation error 'nonetype' object has no attribute 'get_ fetch_ list‘
2022-07-29 05:32:00 【crystal lattices 】
The source of the error :
《paddlepaddle Fluid Introduction and practice of deep learning 》 The first example in the book :“PaddlePaddle Use of constants ”
The sample code is as follows :
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
The running error is as follows :
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
边栏推荐
- QML type: state state
- 365 day challenge leetcode 1000 questions - day 041 two point search completion anniversary + nth magic number + online election
- APP常用跨端技术栈深入分析
- 终端shell常用命令
- Allocate memory: malloc() and free()
- 千人规模互联网公司研发效能成功之路
- End of document
- In depth analysis of common cross end technology stacks of app
- Thousands of databases, physical machines all over the country, JD logistics full volume cloud live record | interview with excellent technical team
- Occt learning 003 - MFC single document project
猜你喜欢
NVIDIA Zhou Xijian: the last mile from design to digital marketing
APP常用跨端技术栈深入分析
游戏行业弹性计算最佳实践
365 day challenge leetcode1000 question - distance between bus stops on day 038 + time-based key value storage + array closest to the target value after transforming the array and + maximum value at t
Occt learning 001 - Introduction
[event preview] cloud development, efficient and intelligent - the second Alibaba cloud ECS cloudbuild developer competition is about to start
QML control: combobox
365 day challenge leetcode 1000 questions - day 042 array sequence number conversion + relative ranking discretization processing
Helm chart for Kubernetes
VIM editor use
随机推荐
AiTalk创始人梁宇淇:镜像连接虚拟与现实的纽带
Alibaba cloud architect details nine trends in the game industry
一维数组练习
阿里云联合鼎捷软件发布云上数字工厂解决方案,实现云MES系统本地化部署
实现简单的数据库查询(不完整)
水一篇图的拓扑排序
Best practices of JD cloud Distributed Link Tracking in financial scenarios
QT learning: qdropevent drag event
来!看排名一年上升16位的ClickHouse,如何在京东落地实践
科班同学真的了解未来的职业规划吗?
One dimensional array exercise
redis的基本使用
英伟达周锡健:设计到数字营销的最后一公里
Cmu15-213 malloc lab experiment record
利用Poi-tl在word模板表格单元格内一次插入多张图片和多行单元格相同数据自动合并的功能组件
关于局部变量
Complete ecological map of R & D Efficiency & selection of Devops tools
Custom QML control: imagebutton
C语言 一维数组
During the appointment, the 2022 JD cloud industrial integration new product launch was launched online