Lines Matching refs:first_layer
108 CvCNNLayer* first_layer, *layer, *last_layer; \
114 first_layer = last_layer = network->layers; \
115 for( i = 0, layer = first_layer; i < n_layers && layer; i++ ) \
123 if( i == 0 || i != n_layers || first_layer->prev_layer || layer ) \
126 if( first_layer->n_input_planes != 1 ) \
129 if( img_size != first_layer->input_height*first_layer->input_width ) \
227 CvCNNLayer* first_layer = network->layers;
228 const int img_height = first_layer->input_height;
229 const int img_width = first_layer->input_width;
244 for( k = 0, layer = first_layer; k < n_layers; k++, layer = layer->next_layer )
267 for( k = 0, layer = first_layer; k < n_layers; k++, layer = layer->next_layer )
288 for( k = 0, layer = first_layer; k < n_layers - 1; k++, layer = layer->next_layer )
328 CvCNNLayer* first_layer, *layer = 0;
340 first_layer = cnn_model->network->layers;
341 img_height = first_layer->input_height;
342 img_width = first_layer->input_width;
351 for( k = 0, layer = first_layer; k < n_layers; k++, layer = layer->next_layer )
359 for( k = 0, layer = first_layer; k < n_layers; k++, layer = layer->next_layer )
467 ML_IMPL CvCNNetwork* cvCreateCNNetwork( CvCNNLayer* first_layer )
474 if( !ICV_IS_CNN_LAYER(first_layer) )
480 network->layers = first_layer;