-
Notifications
You must be signed in to change notification settings - Fork 350
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
[Doc] Set action_spec
instead of input_spec
#1657
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
The remaining field in input spec should be placed in state_spec
which can be edited.
self.state_spec = CompositeSpec(...)
@vmoens I have corrected it, if we are on the same page:) |
@vmoens Sorry, I just checked and directly changing
This seems to be because ... self.observation_spec = CompositeSpec(
... hidden_observation=UnboundedContinuousTensorSpec((4,))
... )
... self.state_spec = CompositeSpec(
... hidden_observation=UnboundedContinuousTensorSpec((4,)),
... ) Actually this caused me more doubts, are the More specifically, if I want to use |
…of `input_spec`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
Description
input_spec
is protected and does not support with direct setting. Example code inCEM
andMPPI
documentation will cause error:Let's set the
action_spec
and let the program decide theinput_spec
.Motivation and Context
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
You can use the syntax
close #15213
if this solves the issue #15213Types of changes
What types of changes does your code introduce? Remove all that do not apply:
Checklist
Go over all the following points, and put an
x
in all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!