[Caffe2] How to update params after every twice iterations?

Hi all,
I use Caffe2 to do some projects.
And I wonder how to update params after every two iterations.
Can anyone kindly help me?
Thank you very much!