25 #ifndef SOFTMAXTESTS_HPP_
26 #define SOFTMAXTESTS_HPP_
28 #include <gtest/gtest.h>
31 #define private public
32 #define protected public
44 input_x = MAKE_MATRIX_PTR(
float, 4, 1);
45 output_y = MAKE_MATRIX_PTR(
float, 4, 1);
46 target_y = MAKE_MATRIX_PTR(
float, 4, 1);
52 (*input_x) << 1, -1, -5, 0.5;
53 (*output_y) << 0.573281, 0.0775852, 0.00142102, 0.347713;
54 (*target_y) << 0.5, 0.25, 0.15, 0.10;
Test Fixture - 4x1 softmax layer.
mic::types::MatrixPtr< float > output_y
mic::types::MatrixPtr< float > target_y
mic::mlnn::cost_function::Softmax< float > layer
mic::types::MatrixPtr< float > input_x