-
Notifications
You must be signed in to change notification settings - Fork 306
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
[Feature]: TensorDictPrimer
transform
#456
Conversation
Lint! |
|
Added |
# Conflicts: # torchrl/envs/libs/gym.py
The transform is still needed to properly reset the states. Thank you for the changes to rollout!. I'll rename it to DefaultTensorReset if that's ok with you |
Have you looked at my solution? It does reset things. What does ForceTensorReset do that TensorDictPrimer does not? |
I'm not sure i understand how i can set vectors that aren't given by the env with TensorDictPrimer. Like prior_state and belief |
Look at the docstring :) |
Ah it's with the kwargs. Ok i will remove my tests and transform then |
TensorDictPrimer
transform
Description
This PR add a ForceTensorReset transform.
Motivation and Context
ForceTensorReset allows to set or reset to default values some given vectors
Types 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!