| 5923 | } |
| 5924 | |
| 5925 | void perform_test() |
| 5926 | { |
| 5927 | dlog << LINFO << "NOW RUNNING TESTS WITH set_dnn_prefer_fastest_algorithms()"; |
| 5928 | set_dnn_prefer_fastest_algorithms(); |
| 5929 | run_tests(); |
| 5930 | |
| 5931 | dlog << LINFO << "NOW RUNNING TESTS WITH set_dnn_prefer_smallest_algorithms()"; |
| 5932 | set_dnn_prefer_smallest_algorithms(); |
| 5933 | run_tests(); |
| 5934 | |
| 5935 | |
| 5936 | { |
| 5937 | resizable_tensor a(2,3,4,5); |
| 5938 | resizable_tensor b(2,3,4,5); |
| 5939 | DLIB_TEST(have_same_dimensions(a,b)); |
| 5940 | |
| 5941 | a.set_size(2,3,4,4); |
| 5942 | DLIB_TEST(!have_same_dimensions(a,b)); |
| 5943 | a.set_size(2,3,3,5); |
| 5944 | DLIB_TEST(!have_same_dimensions(a,b)); |
| 5945 | a.set_size(2,2,4,5); |
| 5946 | DLIB_TEST(!have_same_dimensions(a,b)); |
| 5947 | a.set_size(1,3,4,5); |
| 5948 | DLIB_TEST(!have_same_dimensions(a,b)); |
| 5949 | |
| 5950 | static_assert(!is_image_type<resizable_tensor>::value, "should be false"); |
| 5951 | } |
| 5952 | } |
| 5953 | } a; |
| 5954 | |
| 5955 | // ---------------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected