Ashleywutq commented on issue #12269: get memory error when running a model 
exported from gluon model zoo
URL: 
https://github.com/apache/incubator-mxnet/issues/12269#issuecomment-416515584
 
 
   The problem can be solved by changing e1.forward() to 
e1.forward(is_train=True)
   The difference here is that if you don't specify is_train=True, the executor 
does not expect to have a backward after and thus won't initialize e1.outputs 
which leads to seg fault in future calculations.
    

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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