Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in Windows #26

Open
Microbotz opened this issue Aug 3, 2016 · 3 comments
Open

Issue in Windows #26

Microbotz opened this issue Aug 3, 2016 · 3 comments

Comments

@Microbotz
Copy link

I am trying to compile this in windows. i fixed all the dependency related issues, but i am stuck at one place.
The Dump and Load function in utils class is showing error and i am not able to compile it. Any help will be really helpful

Error 101 error C2784: 'void Dump(const Eigen::Matrix<Real,rows,-1,1> &,FILE *)' : could not deduce template argument for 'const Eigen::Matrix<Real,rows,-1,1> &' from 'const RowMatrix' c:\users\users\documents\visual studio 2012\projects\rnnlm\faster-rnnlm\hierarchical_softmax.cc 251
Error 102 error C2784: 'void Load(Eigen::Matrix<Real,rows,-1,1> *,FILE *)' : could not deduce template argument for 'Eigen::Matrix<Real,rows,-1,1> *' from 'RowMatrix *' c:\users\users\documents\visual studio 2012\projects\rnnlm\faster-rnnlm\hierarchical_softmax.cc 255
Error 126 error C2784: 'void Dump(const Eigen::Matrix<Real,rows,-1,1> &,FILE *)' : could not deduce template argument for 'const Eigen::Matrix<Real,rows,-1,1> &' from 'const RowMatrix' c:\users\users\documents\visual studio 2012\projects\rnnlm\faster-rnnlm\nce.cc 196
Error 127 error C2784: 'void Load(Eigen::Matrix<Real,rows,-1,1> *,FILE *)' : could not deduce template argument for 'Eigen::Matrix<Real,rows,-1,1> *' from 'RowMatrix *' c:\users\users\documents\visual studio 2012\projects\rnnlm\faster-rnnlm\nce.cc 200

@gogabr
Copy link

gogabr commented Aug 14, 2016

See 040477d

@Thanh-Binh
Copy link

@gogabr
I think, your change causes other issues by building under Ubuntu, like my errors:
../faster-rnnlm/util.h: In instantiation of ‘void DumpMatrixArray(std::vector<Matrix*>, FILE_) [with Matrix = Eigen::Matrix<float, 1, -1>; FILE = IO_FILE]’:
../faster-rnnlm/layers/interface.h:128:37: required from here
../faster-rnnlm/util.h:45:9: error: no matching function for call to ‘Dump(Eigen::Matrix<float, 1, -1>&, FILE
&)’
../faster-rnnlm/util.h:29:13: note: candidate: template<int rows, int MaxRows, int MaxCols> void Dump(const Eigen::Matrix<float, rows, -1, 1>&, FILE)
inline void Dump(const Eigen::Matrix<Real, rows, Eigen::Dynamic, Eigen::RowMajor>& matrix, FILE
fo) {
^
../faster-rnnlm/util.h:29:13: note: template argument deduction/substitution failed:
../faster-rnnlm/util.h:45:9: note: couldn't deduce template parameter ‘_MaxRows’
Dump(*array[i], fo);

What do you think?

@gogabr
Copy link

gogabr commented Aug 16, 2016

9a50e78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants