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

ml/american_option.ipynb is working but unable to save the policy #12

Open
Daman2461 opened this issue Dec 1, 2024 · 0 comments
Open

Comments

@Daman2461
Copy link

ml/american_option.ipynb is working but unable to save the policy. It gives an error of ..TypeError Traceback (most recent call last)
in <cell line: 11>()
9
10 # Create a policy saver
---> 11 tf_policy_saver = policy_saver.PolicySaver(agent.policy)
12
13 # Save the policy

10 frames
/usr/lib/python3.10/inspect.py in _check_instance(obj, attr)
1688 instance_dict = {}
1689 try:
-> 1690 instance_dict = object.getattribute(obj, "dict")
1691 except AttributeError:
1692 pass

TypeError: this dict descriptor does not support '_DictWrapper' objects

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