You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you haven't replied for more than a year, we have closed this issue/pr.
If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up.
由于您超过一年未回复,我们将关闭这个issue/pr。
若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。
下面程序中,
print(list(fluid.default_main_program().list_vars()))
可以正确输出所有变量。
但 print('v=', fluid.global_scope().find_var('fc.w_0')) 返回为None
执行 exe.run(fluid.default_startup_program()) 后有可以正常输出变量。
难道var缺省不在global_scope中?如果要求必须执行startup_program, 希望能在文档中明确说明这些变量的状态,以及什么函数是在 startup_program执行后才是可用的。 否则让人混淆。
另外如果内部状态不完整情况下调用find_var ,建议扔一个异常,而不是返回None。
The text was updated successfully, but these errors were encountered: