AttributeError: module 'torch.optim' has no attribute 'RMSProp'
Getting the following error when trying to use the RMSProp Optimizer with PyTorch:

AttributeError: module 'torch.optim' has no attribute 'RMSProp'


Code:

import torch as T
import torch.nn as nn
import torch.optim as optim

class DeepQNetwork(nn.Module):

  def __init__(self, alpha, ...):
    super(DeepQNetwork, self).__init__()
    ...
    self.optimizer = optim.RMSProp(self.parameters(), lr=alpha)
    ...


PyTorch version is 1.5.1 with Python version 3.6. There's a documentation for torch.optim and its optimizers including RMSProp, but PyCharm only suggests Adam and SGD and it really seems like all other optimizers are missing.

Does anyone have an idea? I did not find a single thing on the internet and it starts driving me crazy.

Suggesstion from PyCharm

RMSprop (as seen in the documentation) instead of RMSProp. So, it's just a typo.
