AssertionError: [[ 0.96681002 2.18922338 3.41163674 4.6340501 ]
[ 5.85646346 7.07887682 8.30129018 9.52370354]
[10.7461169 11.96853026 13.19094362 14.41335698]]
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /var/lib/buildbot/slaves/phylanx/x86_64-gcc7-release/build/tests/unit/python/execution_tree/categorical_crossentropy.py(79)<module>()
-> assert np.all(np.abs(v1 - v2) < 1.0e-13), v1 - v2
(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) list
74 o = 3 * np.ones(10)
75 o[4] = 2
76
77 v1 = cc(t, o, flag, -1)
78 v2 = cat_cross(t, o, flag)
79 -> assert np.all(np.abs(v1 - v2) < 1.0e-13), v1 - v2
80
81 t = np.linspace(1.0e-9, 10e-9, 10)
82 t[2] = 10
83 o = 3 * np.ones(10)
84 o[4] = 2
(Pdb)
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: