[Doc] Set action_spec instead of input_spec#1657
[Doc] Set action_spec instead of input_spec#1657vmoens merged 8 commits intopytorch:mainfrom FrankTianTT:main
action_spec instead of input_spec#1657Conversation
vmoens
left a comment
There was a problem hiding this comment.
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`
vmoens
left a comment
There was a problem hiding this comment.
Thanks for working on this!
Description
input_specis protected and does not support with direct setting. Example code inCEMandMPPIdocumentation will cause error:Let's set the
action_specand 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 #15213if 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
xin all the boxes that apply.If you are unsure about any of these, don't hesitate to ask. We are here to help!