-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fixing last failed test for Release build #1187
Comments
Which test is failing, concretely? Could you elaborate, please? |
I am trying to hunt that down, which isn't easy because this program requires a mix of gdb and pdb since it's a python script test case. |
it is the tests.unit.python.execution_tree.categorical_crossentropy test, if that's what you mean |
@hkaiser Specifically, the temporaries that appear to go out of scope are those bound by the lambda and sum3d() calls here: phylanx/src/plugins/keras_support/categorical_crossentropy_operation.cpp Lines 284 to 290 in 64540c3
So while I've fixed the crash, the assertion fails on line 125 of phylanx/tests/unit/python/execution_tree/categorical_crossentropy.py Lines 111 to 125 in 64540c3
I get these matrices: (Pdb) p v1
array([[ 3., 7., 11., 15.],
[19., 23., 27., 31.],
[35., 39., 43., 47.]])
(Pdb) p v2
array([[ 2.03318998, 4.81077662, 7.58836326, 10.3659499 ],
[13.14353654, 15.92112318, 18.69870982, 21.47629646],
[24.2538831 , 27.03146974, 29.80905638, 32.58664302]])
(Pdb) p flag
True
(Pdb) p axis
-1
(Pdb) p o
array([[[0.4, 0.5],
[0.6, 0.7],
[0.8, 0.9],
[1. , 1.1]],
[[1.2, 1.3],
[1.4, 1.5],
[1.6, 1.7],
[1.8, 1.9]],
[[2. , 2.1],
[2.2, 2.3],
[2.4, 2.5],
[2.6, 2.7]]])
(Pdb) p t
array([[[ 1., 2.],
[ 3., 4.],
[ 5., 6.],
[ 7., 8.]],
[[ 9., 10.],
[11., 12.],
[13., 14.],
[15., 16.]],
[[17., 18.],
[19., 20.],
[21., 22.],
[23., 24.]]]) |
The release build has one last failing test:
http://omega.nic.uoregon.edu:8020/#/builders/2/builds/167/steps/16/logs/stdio
I tracked this down to temporaries
output.tensor()
andtarget.tensor()
going out of scope incat_cross_operation::cat_cross3d()
:phylanx/src/plugins/keras_support/categorical_crossentropy_operation.cpp
Lines 246 to 297 in 64540c3
I'll submit a pull request for that issue (see #1188).
However, after fixing that crash, the python code fails assertions:
The text was updated successfully, but these errors were encountered: