| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected