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

Function test_layer

dlib/dnn/core.h:3530–3544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3528 typename layer_details_type
3529 >
3530 layer_test_results test_layer (
3531 layer_details_type l
3532 )
3533 {
3534 // Try a few different derivative step sizes to see if any work.
3535 for (float base_eps = 0.0001; base_eps < 0.1; base_eps *= 2)
3536 {
3537 auto result = impl_test_layer(l, base_eps);
3538 if (result)
3539 return result;
3540 }
3541 // However, if none of the step sizes worked then try this one and probably result
3542 // in returning an error.
3543 return impl_test_layer(l, 0.01);
3544 }
3545
3546// ----------------------------------------------------------------------------------------
3547

Callers 1

test_layersFunction · 0.85

Calls 1

impl_test_layerFunction · 0.85

Tested by

no test coverage detected