Skip to content

Test mode is failing #3

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

Open
mat-sipahi opened this issue Aug 9, 2022 · 1 comment
Open

Test mode is failing #3

mat-sipahi opened this issue Aug 9, 2022 · 1 comment

Comments

@mat-sipahi
Copy link

mat-sipahi commented Aug 9, 2022

Hi,
I have issues with running the code in test mode. There was a Segmentation Fault because the m_driver object was not initialized correctly (options was null), so I fixed the issue by making the following change (copied from function NNDisParser::train):

Screen Shot 2022-08-10 at 12 59 48 AM

But now I'm getting the following error:

NNDisParser/src/NNDisParser-synmlp-do/model/EDUNodes.h:147: 
void EDUNodes::forward(Graph*, const EDU&, const std::vector<Node*>&): 
Assertion `word_concat[idx].dim == word_represents[idx].param->W.inDim()' failed.

Do you have any idea how it can be fixed? (FYI I printed the value of word_concat[idx].dim and it was 0).

@mat-sipahi
Copy link
Author

mat-sipahi commented Aug 30, 2022

I finally managed to successfully run the code with trial and error. I've created a pull request with comments about the important changes made:

#4

I'd be grateful if you could review and give feedback, specially about:
1- the initialization steps copied into test from train
2- the reason why the code doesn't work correctly without calling loadModelFile twice

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

1 participant