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
I'm trying to use the code in #220 as a template for my own CustomPolicy to use with SAC. However, when I try the example code, I get the following error:
Traceback (most recent call last):
File "test_custom_policy.py", line 87, in <module>
model = SAC(CustomPolicy, "CartPole-v1", verbose=1)
File "/usr/local/lib/python3.5/dist-packages/stable_baselines/sac/sac.py", line 131, in __init__
self.setup_model()
File "/usr/local/lib/python3.5/dist-packages/stable_baselines/sac/sac.py", line 153, in setup_model
**self.policy_kwargs)
File "test_custom_policy.py", line 29, in __init__
self.pdtype.proba_distribution_from_latent(pi_latent, vf_latent, init_scale=0.01)
AttributeError: can't set attribute
I'm trying to use the code in #220 as a template for my own CustomPolicy to use with SAC. However, when I try the example code, I get the following error:
Here is the exact code I am trying to execute:
The text was updated successfully, but these errors were encountered: