<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reset_state(self):
 """ Resets states h and c to zero. """


        self.h.data.zero()
        self.c.data.zero()