你好,请问这个问题该怎么解决?ValueError: The target variable must have an associated operator that generates it.
Created by: wangdanana
请问这个问题该怎么解决?ValueError: The target variable must have an associated operator that generates it.
Traceback (most recent call last): File "reading_comprehension.py", line 461, in reading_comprehension_task.finetune_and_eval() File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 863, in finetune_and_eval return self.finetune(do_eval=True) File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 884, in finetune run_states = self._run(do_eval=do_eval) File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 1097, in _run self._eval_interval_event() File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 630, in hook_function func(*args) File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 782, in _default_eval_interval_event self.eval(phase="dev") File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 922, in eval self._eval_end_event(run_states) File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 630, in hook_function func(*args) File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 753, in _default_eval_end_event self.save_inference_model(dirname=model_saved_dir) File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddlehub/finetune/task/base_task.py", line 860, in save_inference_model params_filename=params_filename) File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddle/fluid/io.py", line 1218, in save_inference_model feeded_var_names=feeded_var_names, targets=target_vars) File "/opt/conda/envs/python27-paddle120-env/lib/python2.7/site-packages/paddle/fluid/framework.py", line 4122, in _prune_with_input "The target variable must have an " ValueError: The target variable must have an associated operator that generates it.