# Keyword argument error in optim.RMSprop()

**URL:** <https://discuss.pytorch.org/t/keyword-argument-error-in-optim-rmsprop/1414>\
**Category:** Uncategorized\
**Created:** [March 27, 2017, 11:29pm UTC](https://discuss.pytorch.org/t/keyword-argument-error-in-optim-rmsprop/1414 "2017-03-27T23:29:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shihan\_su](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@Shihan\_su](https://discuss.pytorch.org/u/Shihan_su)\
**Post date:** [March 27, 2017, 11:29pm UTC](https://discuss.pytorch.org/t/keyword-argument-error-in-optim-rmsprop/1414/1 "2017-03-27T23:29:06Z")

</div>

Hi, I am trying to implement a optimizer of RMSprop type.  
The optimizer is initialized as follows:  
optimizer = torch.optim.RMSprop(model.parameters(), alpha = 0.95, eps = 0.0001, centered = True)  
Then I got the following error:  
**init** () got an unexpected keyword argument ‘centered’

I am wondering is there any change made to the RMSprop so that it no longer support centered version ?

---

<div class="post-metadata">

**Author:** ![smth](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/smth/32/13_2.png) [@smth](https://discuss.pytorch.org/u/smth)\
**Post date:** [March 28, 2017, 1:10am UTC](https://discuss.pytorch.org/t/keyword-argument-error-in-optim-rmsprop/1414/2 "2017-03-28T01:10:24Z")

</div>

the `centered` option is in `master` but not in `0.1.10`. It is due to appear in `0.1.11` today/tomorrow.
