MCPcopy Create free account
hub / github.com/davisking/dlib / perform_test

Method perform_test

dlib/test/dnn.cpp:5352–5379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5350 }
5351
5352 void perform_test()
5353 {
5354 dlog << LINFO << "NOW RUNNING TESTS WITH set_dnn_prefer_fastest_algorithms()";
5355 set_dnn_prefer_fastest_algorithms();
5356 run_tests();
5357
5358 dlog << LINFO << "NOW RUNNING TESTS WITH set_dnn_prefer_smallest_algorithms()";
5359 set_dnn_prefer_smallest_algorithms();
5360 run_tests();
5361
5362
5363 {
5364 resizable_tensor a(2,3,4,5);
5365 resizable_tensor b(2,3,4,5);
5366 DLIB_TEST(have_same_dimensions(a,b));
5367
5368 a.set_size(2,3,4,4);
5369 DLIB_TEST(!have_same_dimensions(a,b));
5370 a.set_size(2,3,3,5);
5371 DLIB_TEST(!have_same_dimensions(a,b));
5372 a.set_size(2,2,4,5);
5373 DLIB_TEST(!have_same_dimensions(a,b));
5374 a.set_size(1,3,4,5);
5375 DLIB_TEST(!have_same_dimensions(a,b));
5376
5377 static_assert(!is_image_type<resizable_tensor>::value, "should be false");
5378 }
5379 }
5380 } a;
5381}
5382

Callers

nothing calls this directly

Calls 4

have_same_dimensionsFunction · 0.50
set_sizeMethod · 0.45

Tested by

no test coverage detected