You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/01/02 16:24:50 UTC

[GitHub] jimmychou0704 commented on issue #13748: custom loss cause "kernel died" in Jupyter notebook

jimmychou0704 commented on issue #13748: custom loss cause "kernel died" in Jupyter notebook
URL: https://github.com/apache/incubator-mxnet/issues/13748#issuecomment-450909728
 
 
   @wkcn 
   Thanks, you are right. The problem is shapes of inputs and outputs of backward operation don't match. Once I changed my code to 
   `self.assign(in_grad[0], req[0], (out_data[0] - in_data[1].reshape((-1,1)) ))`
   the issue is gone.
   I suppose the formula is correct, i followed the discussion in http://cs231n.github.io/neural-networks-2/#losses , please let me know if it is not correct. Thanks again.
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services