ValueError: share_vars_from is not compiled and run, so there is no var to share.
Created by: becknian
When running python3 simulator_server.py --port 8030 --ensemble_num 1
within NeurIPS2018-AI-for-Prosthetics-Challenge
, I got the following error:
share_vars_from is set, scope is ignored.
Traceback (most recent call last):
File "simulator_server.py", line 331, in <module>
simulator_server = SimulatorServer()
File "simulator_server.py", line 84, in __init__
self.agent = OpenSimAgent(alg, OBS_DIM, ACT_DIM, args.ensemble_num)
File "/home/rsa-key-20191010/test/PARL/examples/NeurIPS2018-AI-for-Prosthetics-Challenge/opensim
_agent.py", line 64, in __init__
share_vars_parallel_executor=self.learn_pe[i])
File "/home/rsa-key-20191010/test/PARL/examples/NeurIPS2018-AI-for-Prosthetics-Challenge/multi_h
ead_ddpg.py", line 121, in sync_target
share_vars_parallel_executor=share_vars_parallel_executor)
File "/home/davidzhenggd/.local/lib/python3.5/site-packages/parl/core/fluid/model.py", line 182,
in sync_weights_to
self._cached_fluid_executor.run(fetch_list=[])
File "/home/davidzhenggd/.local/lib/python3.5/site-packages/paddle/fluid/parallel_executor.py",
line 280, in run
return_numpy=return_numpy)
File "/home/davidzhenggd/.local/lib/python3.5/site-packages/paddle/fluid/executor.py", line 664,
in run
program._compile(scope, self.place)
File "/home/davidzhenggd/.local/lib/python3.5/site-packages/paddle/fluid/compiler.py", line 376,
in _compile
scope=self._scope)
File "/home/davidzhenggd/.local/lib/python3.5/site-packages/paddle/fluid/compiler.py", line 284,
in _compile_data_parallel
"share_vars_from is not compiled and run, so there is no "
ValueError: share_vars_from is not compiled and run, so there is no var to share.
Do you know how to resolve this issue? Thanks in advance!