exe.run(fluid.default_startup_program())
AttributeError Traceback (most recent call last)
in
----> 1 exe.run(fluid.default_startup_program())
D:\SOFT\anaconda\lib\site-packages\paddle\fluid\executor.py in run(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache, return_merged, use_prune)
1108 return_merged=return_merged)
1109 except Exception as e:
-> 1110 six.reraise(*sys.exc_info())
1111
1112 def _run_impl(self, program, feed, fetch_list, feed_var_name,
D:\SOFT\anaconda\lib\site-packages\six.py in reraise(tp, value, tb)
691 if value.__traceback__ is not tb:
692 raise value.with_traceback(tb)
--> 693 raise value
694 finally:
695 value = None
D:\SOFT\anaconda\lib\site-packages\paddle\fluid\executor.py in run(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache, return_merged, use_prune)
1106 use_program_cache=use_program_cache,
1107 use_prune=use_prune,
-> 1108 return_merged=return_merged)
1109 except Exception as e:
1110 six.reraise(*sys.exc_info())
D:\SOFT\anaconda\lib\site-packages\paddle\fluid\executor.py in _run_impl(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache, return_merged, use_prune)
1236 scope=scope,
1237 return_numpy=return_numpy,
-> 1238 use_program_cache=use_program_cache)
1239
1240 program._compile(scope, self.place)
D:\SOFT\anaconda\lib\site-packages\paddle\fluid\executor.py in _run_program(self, program, feed, fetch_list, feed_var_name, fetch_var_name, scope, return_numpy, use_program_cache)
1330 self._default_executor.run_prepared_ctx(ctx, scope, False, False,
1331 False)
-> 1332 arr = scope.find_var(fetch_var_name).get_fetch_list()
1333 tensors = arr._move_to_list()
1334 if return_numpy:
AttributeError: 'NoneType' object has no attribute 'get_fetch_list'
请问有解决方法了吗
fetch_list没给吧
请问下您使用的Paddle版本以及训练对应的上下文代码是?