-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Coot 12, refactor, arma::min
, arma::imbue
and some other bugs
#3643
Conversation
Signed-off-by: Omar Shrit <omar@avontech.fr>
Signed-off-by: Omar Shrit <omar@avontech.fr>
Signed-off-by: Omar Shrit <omar@avontech.fr>
@rcurtin I think we need to upgrade armadillo version in here |
Signed-off-by: Omar Shrit <omar@avontech.fr>
Signed-off-by: Omar Shrit <omar@avontech.fr>
Signed-off-by: Omar Shrit <omar@avontech.fr>
@rcurtin this is good from my end, I am not adding anything here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two really minor comments, otherwise, looks good to me. Sorry the review took so long 👍
@@ -117,7 +117,7 @@ TEST_CASE("PReLUIntegrationTest", "[ANNLayerTest]") | |||
model.Add<Linear>(3); | |||
model.Add<PReLU>(0.01); | |||
model.Add<Linear>(1); | |||
|
|||
model.InputDimensions() = std::vector<size_t>({trainData.n_rows}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this shouldn't be needed---I believe if the input dimensions are left unset, the input is assumed to be a 1D tensor with number of elements equal to the number of rows in the matrix. Did you find that you needed to add this line, or will the test work without it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test was failing without it, so I have no idea, the dimensions were set up manually everywhere else.
Technically you are right, it is not necessary, but at the same time, the test was failing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to reproduce this locally, and I found that I could make a test failure happen with or without the code. It also doesn't look as simple as adjusting tolerances, I think there may be an invalid memory access in a different test that sometimes affects this one. Hopefully we can solve that, but here is not the place... up to you whether you want to remove this line or keep it there. 👍
Signed-off-by: Omar Shrit <omar@avontech.fr>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the fixes 👍
@@ -117,7 +117,7 @@ TEST_CASE("PReLUIntegrationTest", "[ANNLayerTest]") | |||
model.Add<Linear>(3); | |||
model.Add<PReLU>(0.01); | |||
model.Add<Linear>(1); | |||
|
|||
model.InputDimensions() = std::vector<size_t>({trainData.n_rows}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to reproduce this locally, and I found that I could make a test failure happen with or without the code. It also doesn't look as simple as adjusting tolerances, I think there may be an invalid memory access in a different test that sometimes affects this one. Hopefully we can solve that, but here is not the place... up to you whether you want to remove this line or keep it there. 👍
okay, I will remove it tomorrow morning |
Signed-off-by: Omar Shrit <omar@avontech.fr>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second approval provided automatically after 24 hours. 👍
Hi,
There is still one single test that is failing and I am not able to figure out where the issue is coming from. Here is the test failure:
The issue here is that there are two as_scalar that are left in methods that could be used here, and both of them are being used correctly, (evaluate a vector and return a scalar).
I am also pretty sure that in a lot of places we can remove
arma::as_scalar
since it is used for no reason