dmlc / minpy

NumPy interface with mixed backend execution
https://minpy.readthedocs.io/en/latest/
Other
1.11k stars 112 forks source link

Why solver._step() shouldn't be called manually? #147

Open VoVAllen opened 7 years ago

VoVAllen commented 7 years ago

I think solver._step() is quite a useful and necessary API to be open to the users.

Manually iterate batches and step can help debug and watch the internal variable changes. Also some training tricks in GAN need this. (Such as update discriminator once when the generator is updated ten times). I think only solver.train() lacks the flexibility.