You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to run the the code from your wideo with Weights & Biases but I have errors when I want to run it. First of all there isn't a seed attribute for the env. To replace env.seed(seed) I have used :
env.reset(seed=seed)
Now I have an issue with:
next_obs=torch.Tensor(envs.reset()).to(device)
# Returns the error:ValueError: expectedsequenceoflength4atdim1 (got0)
To try and resolve it I print the tupple and converted it into an array before converting it into a Tensor :
env_reset_ar=np.asarray(envs.reset(), dtype=tuple)
next_obs=torch.Tensor(env_reset_ar).to(device) # store the initial obs #With env.reset() : #[[-0.01702683 0.02884287 -0.01968052 -0.00465021]# [-0.00673692 0.01692973 -0.00772153 0.01331844]# [-0.0069372 0.00867986 0.02378378 0.04562673]# [-0.00695037 0.02889467 0.0484153 -0.01302742]]#{} # But Now I have the Error :next_obs=torch.Tensor(env_reset_ar).to(device) # store the initial obs TypeError: can'tconvertnp.ndarrayoftypenumpy.object_. Theonlysupportedtypesare: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, andbool.
Do you know what do I need to change to make it work ? I am still a beginner at RL so I don't know what have I done wrong.
Thank you in advance.
Kind regards,
Eliott.
The text was updated successfully, but these errors were encountered:
Hi sorry to bother you,
I was trying to run the the code from your wideo with Weights & Biases but I have errors when I want to run it. First of all there isn't a seed attribute for the env. To replace env.seed(seed) I have used :
Now I have an issue with:
To try and resolve it I print the tupple and converted it into an array before converting it into a Tensor :
Do you know what do I need to change to make it work ? I am still a beginner at RL so I don't know what have I done wrong.
Thank you in advance.
Kind regards,
Eliott.
The text was updated successfully, but these errors were encountered: