dithyrambe edited a comment on issue #17275: CosineEmbeddingLoss won't work 
after hybridize (ie. with symbol API)
URL: 
https://github.com/apache/incubator-mxnet/issues/17275#issuecomment-573903431
 
 
   Hello, thanks for having a look.
   
   Actually, I just realized that shape issue comes from the fact that, in 
symbolic api: 
   `.reshape(-1, 1)` is not the same as `.reshape((-1, 1))`. 
   
   Obviously, the simplest fix for `CosineEmbeddingLoss` would be to call 
explicitly `F.reshape` or to call `.reshape((-1, 1))`. 
   
   Though, souldn't `ndarray` and `symbolic` api have the same behaviour 
regarding `.reshape` ?
   Does this should be fixed ? Is it a desired behaviour ?
   
   Regards

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


With regards,
Apache Git Services

Reply via email to