Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行后self.build_program()报错 #1109

Open
lzlbit123 opened this issue Jul 7, 2023 · 1 comment
Open

运行后self.build_program()报错 #1109

lzlbit123 opened this issue Jul 7, 2023 · 1 comment

Comments

@lzlbit123
Copy link

按照课上讲的代码policy gradient 运行后报错raise NotImplementedError

1688715375418 Traceback (most recent call last): File "C:\Users\lzlbi\PycharmProjects\PPO\train.py", line 86, in main() File "C:\Users\lzlbi\PycharmProjects\PPO\train.py", line 63, in main agent = Agent(alg, obs_dim=obs_dim, act_dim=act_dim) File "C:\Users\lzlbi\PycharmProjects\PPO\agent.py", line 11, in __init__ super(Agent, self).__init__(algorithm) File "D:\anaconda\envs\paddle\lib\site-packages\parl\core\fluid\agent.py", line 81, in __init__ self.build_program() File "C:\Users\lzlbi\PycharmProjects\PPO\agent.py", line 20, in build_program self.act_prob = self.alg.predict(obs) File "D:\anaconda\envs\paddle\lib\site-packages\parl\core\fluid\algorithm.py", line 196, in predict raise NotImplementedError NotImplementedError 版本:parl==1.4 paddle paddle==1.8.5 gym==0.18.0 Python ==3.7.7
@lzlbit123
Copy link
Author

另外,课程中的代码是否需要定义是否启用GPU运算?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant