RuRo commented on issue #11434: add ignore_reinit to initialize to skip warnings
URL: https://github.com/apache/incubator-mxnet/pull/11434#issuecomment-581925828
 
 
   Please reconsider adding this feature.
   
   I would argue that `.initialize()` is an idempotent operation like 
`.hybridize()`. In my opinion, it's very annoying, that attempting to 
initialize an already (maybe partially) initialized model prints countless 
warnings without any ability to silence them.
   
   I am not suggesting, that it shouldn't print warnings at all, but at least 
having an option to silence them should be useful. If you need a precedent for 
a similar functionality, there is the `allow_missing` and `ignore_extra` 
parameters of `mxnet.gluon.Block.load_parameters`, although they ignore errors, 
not warnings. Also, as I mentioned, attempting to `hybridize` an already 
hybridized model doesn't print any warnings.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to