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/07/19 18:42:35 UTC

[GitHub] [incubator-mxnet] samskalicky opened a new issue #15612: WarpCTC build failure in 1.5.0

samskalicky opened a new issue #15612: WarpCTC build failure in 1.5.0
URL: https://github.com/apache/incubator-mxnet/issues/15612
 
 
   Building the warpCTC plugin fails i 1.5.0 due to this PR https://github.com/apache/incubator-mxnet/pull/14270 
   
   It fails with the following error:
   
   ```
   In file included from plugin/warpctc/warpctc.cc:27:0:
   plugin/warpctc/./warpctc-inl.h: In member function ‘virtual bool mxnet::op::WarpCTCProp::InferShape(mxnet::ShapeVector*, mxnet::ShapeVector*, mxnet::ShapeVector*) const’:
   plugin/warpctc/./warpctc-inl.h:257:48: error: no matching function for call to ‘mxnet::TShape::TShape(int)’
        mxnet::TShape label_shape(dshape.ndim() - 1);
                                                   ^
   plugin/warpctc/./warpctc-inl.h:257:48: note: candidates are:
   In file included from include/mxnet/./base.h:38:0,
                    from include/mxnet/operator.h:38,
                    from plugin/warpctc/./warpctc-inl.h:31,
                    from plugin/warpctc/warpctc.cc:27:
   include/mxnet/./tuple.h:519:10: note: template<int dim> mxnet::TShape::TShape(mshadow::Shape<ndim>&&)
      inline TShape(mshadow::Shape<dim> &&s) {// NOLINT(*)
             ^
   include/mxnet/./tuple.h:519:10: note:   template argument deduction/substitution failed:
   In file included from plugin/warpctc/warpctc.cc:27:0:
   plugin/warpctc/./warpctc-inl.h:257:48: note:   mismatched types ‘mshadow::Shape<ndim>’ and ‘int’
        mxnet::TShape label_shape(dshape.ndim() - 1);
                                                   ^
   ```
   
   looks like nnvm::Tshape takes a single int for constructor:
   https://github.com/dmlc/tvm/blob/master/nnvm/include/nnvm/tuple.h#L352
   
   But mxnet::Tshape does not have this constructor, instead we provide the default value as well (which is value: 1 in nnvm)
   https://github.com/apache/incubator-mxnet/blob/master/include/mxnet/tuple.h#L406

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