p-christ / Deep-Reinforcement-Learning-Algorithms-with-PyTorch

PyTorch implementations of deep reinforcement learning algorithms and environments
MIT License
5.64k stars 1.2k forks source link

fix space.Discrete type error #43

Closed shuferhoo closed 4 years ago

shuferhoo commented 4 years ago

The dtype of gym.space.Discrete is np.int64, this may cause error like 'Actor output the wrong size in CartPole using PPO'