Skip to content

Eigen Matrix declarations in 1 Dimensions #3

@SarthakDubey

Description

@SarthakDubey

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions