hybrid-sac icon indicating copy to clipboard operation
hybrid-sac copied to clipboard

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

Open Myricazzz opened this issue 7 months ago • 0 comments

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 avatar Jan 16 '24 07:01 Myricazzz