36 mic::types::MatrixPtr<float> y = layer.forward(input_x);
38 for (
size_t i=0; i<4; i++)
39 ASSERT_LE( fabs((*y)[i] - (*output_y)[i]), eps) <<
"Difference at position i=" << i <<
" where " << (*y)[i] <<
" and should be " << (*output_y)[i];
69 int main(
int argc,
char **argv) {
70 testing::InitGoogleTest(&argc, argv);
71 return RUN_ALL_TESTS();
Test Fixture - 4x1 softmax layer.
int main(int argc, char **argv)
TEST_F(Softmax4x1Float, Forward)