-
Notifications
You must be signed in to change notification settings - Fork 31
Description
An error is thrown on version 1.4.x
In file included from src/operator/contrib/rnnt_loss.cc:27:0: src/operator/contrib/./rnnt_loss-inl.h: In member function 'virtual bool mxnet::op::RNNTLossProp::InferShape(std::vector<mxnet::TShape>*, std::vector<mxnet::TShape>*, std::vector<mxnet::TShape>*) const': src/operator/contrib/./rnnt_loss-inl.h:230:20: error: no matching function for call to 'mxnet::TShape::TShape(int)' TShape oshape(1); ^ In file included from include/mxnet/./base.h:38:0, from include/mxnet/operator.h:38, from src/operator/contrib/./rnnt_loss-inl.h:32, from src/operator/contrib/rnnt_loss.cc:27: include/mxnet/./tuple.h:519:10: note: candidate: 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 src/operator/contrib/rnnt_loss.cc:27:0: src/operator/contrib/./rnnt_loss-inl.h:230:20: note: mismatched types 'mshadow::Shape<ndim>' and 'int' TShape oshape(1); ^ In file included from include/mxnet/./base.h:38:0, from include/mxnet/operator.h:38, from src/operator/contrib/./rnnt_loss-inl.h:32, from src/operator/contrib/rnnt_loss.cc:27: include/mxnet/./tuple.h:514:10: note: candidate: template<int dim> mxnet::TShape::TShape(const mshadow::Shape<ndim>&) inline TShape(const mshadow::Shape<dim> &s) {// NOLINT(*) ^ include/mxnet/./tuple.h:514:10: note: template argument deduction/substitution failed: In file included from src/operator/contrib/rnnt_loss.cc:27:0: src/operator/contrib/./rnnt_loss-inl.h:230:20: note: mismatched types 'const mshadow::Shape<ndim>' and 'int' TShape oshape(1); ^ In file included from include/mxnet/./base.h:38:0, from include/mxnet/operator.h:38, from src/operator/contrib/./rnnt_loss-inl.h:32, from src/operator/contrib/rnnt_loss.cc:27: include/mxnet/./tuple.h:449:10: note: candidate: template<class RandomAccessIterator, typename std::enable_if<std::is_same<typename std::iterator_traits<_Iterator>::iterator_category, std::random_access_iterator_tag>::value, int>::type <anonymous> > mxnet::TShape::TShape(RandomAccessIterator, RandomAccessIterator) inline TShape(RandomAccessIterator begin, ^ include/mxnet/./tuple.h:449:10: note: template argument deduction/substitution failed: In file included from src/operator/contrib/rnnt_loss.cc:27:0: src/operator/contrib/./rnnt_loss-inl.h:230:20: note: candidate expects 2 arguments, 1 provided TShape oshape(1); ^ In file included from include/mxnet/./base.h:38:0, from include/mxnet/operator.h:38, from src/operator/contrib/./rnnt_loss-inl.h:32, from src/operator/contrib/rnnt_loss.cc:27: include/mxnet/./tuple.h:434:10: note: candidate: mxnet::TShape::TShape(mxnet::Tuple<long int>&&) inline TShape(Tuple<dim_t>&& s) { // NOLINT(*) ^ include/mxnet/./tuple.h:434:10: note: no known conversion for argument 1 from 'int' to 'mxnet::Tuple<long int>&&' include/mxnet/./tuple.h:427:10: note: candidate: mxnet::TShape::TShape(std::initializer_list<long int>) inline TShape(std::initializer_list<dim_t> init) { ^ include/mxnet/./tuple.h:427:10: note: no known conversion for argument 1 from 'int' to 'std::initializer_list<long int>' include/mxnet/./tuple.h:416:10: note: candidate: mxnet::TShape::TShape(const mxnet::Tuple<long int>&) inline TShape(const Tuple<dim_t>& s) { // NOLINT(*) ^ include/mxnet/./tuple.h:416:10: note: no known conversion for argument 1 from 'int' to 'const mxnet::Tuple<long int>&' include/mxnet/./tuple.h:406:10: note: candidate: mxnet::TShape::TShape(int, dim_t) inline TShape(const int ndim, const dim_t value) { // NOLINT(*) ^ include/mxnet/./tuple.h:406:10: note: candidate expects 2 arguments, 1 provided include/mxnet/./tuple.h:398:3: note: candidate: mxnet::TShape::TShape() TShape() { ^ include/mxnet/./tuple.h:398:3: note: candidate expects 0 arguments, 1 provided include/mxnet/./tuple.h:395:7: note: candidate: mxnet::TShape::TShape(const mxnet::TShape&) class TShape : public Tuple<dim_t> { ^ include/mxnet/./tuple.h:395:7: note: no known conversion for argument 1 from 'int' to 'const mxnet::TShape&' include/mxnet/./tuple.h:395:7: note: candidate: mxnet::TShape::TShape(mxnet::TShape&&) include/mxnet/./tuple.h:395:7: note: no known conversion for argument 1 from 'int' to 'mxnet::TShape&&'
On version 1.1.0 the install file no longer exists. ./install_mxnet_ubuntu_python.sh