diff --git a/examples/dnn_imagenet_train_ex.cpp b/examples/dnn_imagenet_train_ex.cpp index fe2765524..5cd428b29 100644 --- a/examples/dnn_imagenet_train_ex.cpp +++ b/examples/dnn_imagenet_train_ex.cpp @@ -331,7 +331,7 @@ int main(int argc, char** argv) try bool found_match = false; for (int k = 0; k < 5; ++k) { - unsigned long predicted_label = index_of_max(p); + long predicted_label = index_of_max(p); p(predicted_label) = 0; if (predicted_label == l.numeric_label) {