This method was apparently introduced after the 0.4 release. You could call self.rnn.bias.zeros_() in this older release, but I would recommend to update to the latest stable release (1.3.1), since a lot of bugs were fixed and also a lot of improvements as well as features were added.