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 2017/12/28 15:00:23 UTC

[GitHub] CXMA479 commented on issue #8663: terminate called after throwing an instance of 'std::out_of_range?

CXMA479 commented on issue #8663: terminate called after throwing an instance of 'std::out_of_range?
URL: https://github.com/apache/incubator-mxnet/issues/8663#issuecomment-354301365
 
 
   similar problem has been spotted, as i tried to execute some code like this:
   **Version 0.11.1**
   
   ```python
   def gen_sym(seq_len):
       data=mx.sym.Variable('data')
       label = mx.sym.Variable('label')  # NT
       output, _ = stack.unroll(seq_len, inputs=data, merge_outputs=False, layout='NT')
       pred = output[seq_len-1]
       pred = mx.sym.reshape(pred, shape=(batch_size,-1))
       pred_e = mx.sym.FullyConnected(data= pred, num_hidden=1)
       sym = mx.sym.broadcast_add(pred_e, label)
       sym = mx.sym.MakeLoss(sym)
       return sym, ('data', ), ('label', )
   ```
   However, if i replace `pred_e` with `pred` in *broadcast_add* it works fine

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