nnetcpp icon indicating copy to clipboard operation
nnetcpp copied to clipboard

Eigen Matrix declarations in 1 Dimensions

Open SarthakDubey opened this issue 9 years ago • 0 comments

I was trying to make makeSequence 1 dimensional for LSTM to give just one output. I think there's an error when the program attempts to make an Eigen::MatrixXf in one dimension and it crashes.

./tests recurrent tests: /usr/local/include/eigen3/Eigen/src/Core/Block.h:119: Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Block(XprType&, Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Index) [with XprType = Eigen::Matrix<float, -1, -1>; int BlockRows = -1; int BlockCols = 1; bool InnerPanel = true; Eigen::Block<XprType, BlockRows, BlockCols, InnerPanel>::Index = long int]:Assertion`(i>=0) && ( ((BlockRows==1) && (BlockCols==XprType::ColsAtCompileTime) && i<xpr.rows()) ||((BlockRows==XprType::RowsAtCompileTime) && (BlockCols==1) && i<xpr.cols()))' failed. Aborted (core dumped)

SarthakDubey avatar Oct 27 '16 11:10 SarthakDubey