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

numpy.core._exceptions.MemoryError: Unable to allocate 8.00 GiB for an array with shape (2147483647,) and data type int32 #4

Open
Myricazzz opened this issue Jan 16, 2024 · 0 comments

Comments

@Myricazzz
Copy link

python hybrid_sac_platform.py --seed 7 --gym-id Platform-v0 --total-timesteps 100000 --learning-starts 1000
pygame 2.1.0 (SDL 2.0.16, Python 3.8.16)
Hello from the pygame community. https://www.pygame.org/contribute.html
D:\Anaconda3\envs\pytorch2023\lib\site-packages\gym\spaces\box.py:73: UserWarning: WARN: Box bound precision lowered by casting to float32
logger.warn(
<class 'gym.spaces.tuple.Tuple'>
Tuple(Box([0. 0. 0. 0. 0. 0. 0. 0. 0.], [1. 1. 1. 1. 1. 1. 1. 1. 1.], (9,), float32), Discrete(200))
Traceback (most recent call last):
File "hybrid_sac_platform.py", line 155, in
env.action_space.seed(args.seed)
File "D:\Anaconda3\envs\pytorch2023\lib\site-packages\gym\spaces\tuple.py", line 30, in seed
subseeds = self.np_random.choice(
File "mtrand.pyx", line 1010, in numpy.random.mtrand.RandomState.choice
File "mtrand.pyx", line 4699, in numpy.random.mtrand.RandomState.permutation
numpy.core._exceptions.MemoryError: Unable to allocate 8.00 GiB for an array with shape (2147483647,) and data type int32

I would be very grateful to you for answering this question

@Myricazzz Myricazzz reopened this Jan 17, 2024
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

1 participant