Skip to content

Commit 8685ed8

Browse files
committed
Test fixed to use the new operation_mode enum
1 parent 274f32f commit 8685ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dlib/test/dnn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,13 +2469,13 @@ void test_embeddings()
24692469
}
24702470
{
24712471
print_spinner();
2472-
softmax_<operation_mode::CHANNEL_WISE> l;
2472+
softmax_<static_cast<unsigned long>(operation_mode::CHANNEL_WISE)> l;
24732473
auto res = test_layer(l);
24742474
DLIB_TEST_MSG(res, res);
24752475
}
24762476
{
24772477
print_spinner();
2478-
softmax_<operation_mode::PLANE_WISE> l;
2478+
softmax_<static_cast<unsigned long>(operation_mode::PLANE_WISE)> l;
24792479
auto res = test_layer(l);
24802480
DLIB_TEST_MSG(res, res);
24812481
}

0 commit comments

Comments
 (0)