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 2018/08/01 13:31:31 UTC

[GitHub] sbodenstein opened a new issue #11967: pad layer only works for float32

sbodenstein opened a new issue #11967: pad layer only works for float32
URL: https://github.com/apache/incubator-mxnet/issues/11967
 
 
   Padding is a core structural op that should work for all array types, but fails for any type that is not `float32`:
   ```
   import numpy as np
   import mxnet as mx
   
   s=mx.sym.pad(mx.sym.Variable("data", dtype="float64"), mode="edge", pad_width=(0,0,0,0,1,1,1,1))
   d=mx.nd.ones((1,2,6,6), dtype="float64")
   s.bind(mx.cpu(), {'data': d})
   
   MXNetError: Error in operator pad13: [15:30:33] include/mxnet/operator.h:228: Check failed: in_type->at(i) == mshadow::default_type_flag || in_type->at(i) == -1 Unsupported data type 1
   ```

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