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/03/02 07:34:24 UTC

[GitHub] ashokei opened a new issue #14301: SoftmaxOutput crashes with normalization "valid"

ashokei opened a new issue #14301: SoftmaxOutput crashes with normalization "valid"
URL: https://github.com/apache/incubator-mxnet/issues/14301
 
 
   
   ## Description
   
   ## Environment info (Required)
   ubuntu 16.04 default build
   and, run below script.
   
   ```
   import numpy as np                                                
   import mxnet as mx                                                
   xpu = mx.cpu()                                                    
   x = mx.sym.Variable('x')                                          
   label = mx.sym.Variable('label')                                  
   x_nd = mx.nd.array([[1, 6, 4, 2],[1, 6, 4, 2]], ctx=xpu)          
   grad_x = mx.nd.zeros((2,4), ctx=xpu)                              
   label_nd = mx.nd.array([1,1], ctx=xpu)                            
                                                                     
   sym = mx.sym.SoftmaxOutput(data=x, label=label, ignore_label=0,   
                              use_ignore=True, normalization="valid")
   ex = sym.bind(ctx=xpu, args={'x': x_nd, 'label': label_nd},       
                 args_grad={'x': grad_x})                            
                                                                     
   ex.forward(is_train=True)                                         
   softmax_out = ex.outputs[0].asnumpy()                             
   ex.backward(is_train=True)                                        
   
   ```
   
   MXNet commit hash:
   fb4f9d55382538fe688638b741830d84ae0d783
   
   Build config:
   make
   
   ## Error Message:
   ```
   terminated by signal SIGSEGV (Address boundary error)
   ```
   
   

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


With regards,
Apache Git Services