当前位置:网站首页>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
边栏推荐
猜你喜欢
APP常用跨端技术栈深入分析
牛客网编程题—【WY22 Fibonacci数列】和【替换空格】详解
如视技术副总裁杨永林:当传统产业遇到“数字空间”
Helm chart for Kubernetes
抢先预约 | 阿里云无影云应用线上发布会预约开启
During the appointment, the 2022 JD cloud industrial integration new product launch was launched online
Day 3
MySQL的详细安装使用教程(保姆式安装图文讲解)
京东云联合Forrester咨询发布混合云报告 云原生成为驱动产业发展新引擎
365 day challenge leetcode 1000 questions - day 039 full binary tree inserter + find peak II + snapshot array
随机推荐
无重复字符的最长字串
Live broadcast preview | how to improve enterprise immunity through "intelligent edge security"?
【C语言系列】— 不创造第三个变量,实现两个数的交换
数据库操作 Day 6
200 多家 ISV 入驻!阿里云计算巢发布一周年
【C语言系列】—文件操作详解(上)
CMU15-213 Shell Lab实验记录
GPIO的输入输出详解
阿里云架构师梁旭:MES on 云盒,助力客户快速构建数字工厂
Alibaba cloud Zhang Xintao: heterogeneous computing provides surging power for the digital economy
365 day challenge leetcode 1000 questions - day 040 design jump table + avoid flooding + find the latest grouping with size M + color ball with reduced sales value
英伟达周锡健:设计到数字营销的最后一公里
京东云联合Forrester咨询发布混合云报告 云原生成为驱动产业发展新引擎
Li Yan, CEO of parallel cloud: cloudxr, opens the channel to the metauniverse
Alibaba cloud and Dingjie software released the cloud digital factory solution to realize the localized deployment of cloud MES system
京东云金秋上云特惠进行中!扫码参与活动
With cloud simulation platform, Shichuang technology supports the upgrading of "China smart manufacturing"
千人规模互联网公司研发效能成功之路
微信小程序视频上传组件直接上传至阿里云OSS
QML control: combobox