Replies: 1 comment
-
This issue should be solved by adding a transform. env = TransformedEnv(GymEnv(env_name), Compose(DTypeCastTransform(dtype_in=torch.int64, dtype_out=torch.float32, in_keys=["observation"]), StepCounter())) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I've encountered a dtype mismatch issue with env.rollout or SyncDataCollector when using a one-hot encoding environment like CliffWalking. However, the code works as expected with other environments, such as 'CartPole-v1'.
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions