成员,尤其是成员变量,可以保存实例调用时的中间状态(intermediate states): It’s helpful to have everything in a class like this so that intermediate states can be saved after training and then loaded for later use.