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

Function test_input_ouput_mappers

dlib/test/dnn.cpp:5581–5588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5579 using conblock = relu<bn_con<add_layer<con_<16, 3, 3, 2, 2, 1, 1>, SUBNET>>>;
5580
5581 void test_input_ouput_mappers()
5582 {
5583 using net_type = loss_binary_log_per_pixel<con<1, 1, 1, 1, 1,repeat<3, conblock, tag1<input_rgb_image>>>>;
5584 net_type net;
5585 point p(32, 32);
5586 DLIB_TEST(input_tensor_to_output_tensor(net, p) == p / 8);
5587 DLIB_TEST(output_tensor_to_input_tensor(net, p) == p * 8);
5588 }
5589
5590// ----------------------------------------------------------------------------------------
5591

Callers 1

run_testsMethod · 0.85

Calls 2

Tested by

no test coverage detected