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

Can not step #2

Open
xiaoyuanzh opened this issue Feb 22, 2022 · 3 comments
Open

Can not step #2

xiaoyuanzh opened this issue Feb 22, 2022 · 3 comments

Comments

@xiaoyuanzh
Copy link

If I use your env
env = utils.NormalizedActions(gym.make(env_tag))
I can not step an action, it says not implement error,

@sxzhuang
Copy link

If I use your env env = utils.NormalizedActions(gym.make(env_tag)) I can not step an action, it says not implement error,

I met the same problems. Have you solved this question?

@zhengluohu
Copy link

if your error is 'raise NotImplementedError', you can solved it by install an older verision of gym(gym==0.15.6) or use the step (core. mod_utils.py) instead of _step.

[(https://github.com/openai/gym/issues/1334#issuecomment-466525895)]

class NormalizedActions(gym.ActionWrapper):

def _action(self, action):
    action = (action + 1) / 2  # [-1, 1] => [0, 1]
    action *= (self.action_space.high - self.action_space.low)
    action += self.action_space.low
    return action

def _reverse_action(self, action):
    action -= self.action_space.low
    action /= (self.action_space.high - self.action_space.low)
    action = action * 2 - 1
    return action

@huanyuyunhuang
Copy link

When I run in Pendulum-v0, I get "RuntimeError: CUDA error: CUBLAS_STATUS_EXECUTION_FAILED when calling 'cublasSgemm' unless I set batch_size to 16. Why is that? My python environment is set to the same environment as yours.

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

4 participants