ptrendx commented on issue #17881: Solved Bug: contrib/amp/loss_scalar.py not 
initializing variables
URL: 
https://github.com/apache/incubator-mxnet/issues/17881#issuecomment-601826768
 
 
   Hi @swfearp, could you give a little more info on how your training loop 
looks like?
   
   In particular, could you make sure that:
    - you call `amp.init_trainer` on the Gluon trainer you are using
    - you call `amp.scale_loss` inside your `with mx.autograd.record()` block
   ?
   
   Generally, if everything is called as it should, you should not see that 
error message.

----------------------------------------------------------------
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