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

Method verify_constructor_args

dlib/mlp/mlp_kernel_c.h:19–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 class mlp_kernel_c : public mlp_base
18 {
19 long verify_constructor_args (
20 long nodes_in_input_layer,
21 long nodes_in_first_hidden_layer,
22 long nodes_in_second_hidden_layer,
23 long nodes_in_output_layer
24 )
25 {
26 // make sure requires clause is not broken
27 DLIB_CASSERT(nodes_in_input_layer > 0 &&
28 nodes_in_first_hidden_layer > 0 &&
29 nodes_in_second_hidden_layer >= 0 &&
30 nodes_in_output_layer > 0,
31 "\tconst mlp::constructor()"
32 << "\n\tinvalid constructor arguments"
33 << "\n\tnodes_in_input_layer: " << nodes_in_input_layer
34 << "\n\tnodes_in_first_hidden_layer: " << nodes_in_first_hidden_layer
35 << "\n\tnodes_in_second_hidden_layer: " << nodes_in_second_hidden_layer
36 << "\n\tnodes_in_output_layer: " << nodes_in_output_layer
37 );
38
39 return nodes_in_input_layer;
40 }
41
42 public:
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected