Paddle executor.py:1093: UserWarning: There are no operators in the program to be executed.

ig9co6j1  于 2021-12-07  发布在  Java
关注(0)|答案(3)|浏览(284)

C:\Users\eashow\AppData\Local\Programs\Python\Python37\lib\site-packages\paddle\fluid\executor.py:1093: 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.

这个警告怎么去掉呀?是什么意思?

g2ieeal7

g2ieeal71#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

6bc51xsx

6bc51xsx2#

原码:

获取每句话的单词数量

base_shape = len(c) for c in data

生成预测数据

tensor_words = fluid.create_lod_tensor(data, base_shape, place)

执行预测

result = exe.run(program=infer_program,
feed={feeded_var_names[0]: tensor_words},
fetch_list=target_var)

3pvhb19x

3pvhb19x3#

这个警告影响你计算结果嘛

相关问题