| 120 | } size_params; |
| 121 | |
| 122 | local_layer parse_local(list *options, size_params params) |
| 123 | { |
| 124 | int n = option_find_int(options, "filters",1); |
| 125 | int size = option_find_int(options, "size",1); |
| 126 | int stride = option_find_int(options, "stride",1); |
| 127 | int pad = option_find_int(options, "pad",0); |
| 128 | char *activation_s = option_find_str(options, "activation", "logistic"); |
| 129 | ACTIVATION activation = get_activation(activation_s); |
| 130 | |
| 131 | int batch,h,w,c; |
| 132 | h = params.h; |
| 133 | w = params.w; |
| 134 | c = params.c; |
| 135 | batch=params.batch; |
| 136 | if(!(h && w && c)) error("Layer before local layer must output image."); |
| 137 | |
| 138 | local_layer layer = make_local_layer(batch,h,w,c,n,size,stride,pad,activation); |
| 139 | |
| 140 | return layer; |
| 141 | } |
| 142 | |
| 143 | layer parse_deconvolutional(list *options, size_params params) |
| 144 | { |
no test coverage detected