From 994f95534870d8597f10326b2608706b96259283 Mon Sep 17 00:00:00 2001 From: cyy Date: Thu, 5 Sep 2019 19:02:45 +0800 Subject: [PATCH] fix prototype --- src/cost_layer.h | 2 +- src/normalization_layer.h | 2 +- src/region_layer.h | 2 +- src/reorg_layer.h | 2 +- src/reorg_old_layer.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cost_layer.h b/src/cost_layer.h index 92666aa3..b350003e 100644 --- a/src/cost_layer.h +++ b/src/cost_layer.h @@ -10,7 +10,7 @@ extern "C" { #endif COST_TYPE get_cost_type(char *s); char *get_cost_string(COST_TYPE a); -cost_layer make_cost_layer(int batch, int inputs, COST_TYPE type, float scale); +cost_layer make_cost_layer(int batch, int inputs, COST_TYPE cost_type, float scale); void forward_cost_layer(const cost_layer l, network_state state); void backward_cost_layer(const cost_layer l, network_state state); void resize_cost_layer(cost_layer *l, int inputs); diff --git a/src/normalization_layer.h b/src/normalization_layer.h index b7b3d81a..2ac9b0f6 100644 --- a/src/normalization_layer.h +++ b/src/normalization_layer.h @@ -9,7 +9,7 @@ extern "C" { #endif layer make_normalization_layer(int batch, int w, int h, int c, int size, float alpha, float beta, float kappa); -void resize_normalization_layer(layer *layer, int h, int w); +void resize_normalization_layer(layer *layer, int w, int h); void forward_normalization_layer(const layer layer, network_state state); void backward_normalization_layer(const layer layer, network_state state); void visualize_normalization_layer(layer layer, char *window); diff --git a/src/region_layer.h b/src/region_layer.h index 2b40d80f..e616624e 100644 --- a/src/region_layer.h +++ b/src/region_layer.h @@ -9,7 +9,7 @@ typedef layer region_layer; #ifdef __cplusplus extern "C" { #endif -region_layer make_region_layer(int batch, int h, int w, int n, int classes, int coords, int max_boxes); +region_layer make_region_layer(int batch, int w, int h, int n, int classes, int coords, int max_boxes); void forward_region_layer(const region_layer l, network_state state); void backward_region_layer(const region_layer l, network_state state); void get_region_boxes(layer l, int w, int h, float thresh, float **probs, box *boxes, int only_objectness, int *map); diff --git a/src/reorg_layer.h b/src/reorg_layer.h index f2b90930..63185686 100644 --- a/src/reorg_layer.h +++ b/src/reorg_layer.h @@ -9,7 +9,7 @@ #ifdef __cplusplus extern "C" { #endif -layer make_reorg_layer(int batch, int h, int w, int c, int stride, int reverse); +layer make_reorg_layer(int batch, int w, int h, int c, int stride, int reverse); void resize_reorg_layer(layer *l, int w, int h); void forward_reorg_layer(const layer l, network_state state); void backward_reorg_layer(const layer l, network_state state); diff --git a/src/reorg_old_layer.h b/src/reorg_old_layer.h index 15c61f8d..caa8c918 100644 --- a/src/reorg_old_layer.h +++ b/src/reorg_old_layer.h @@ -9,7 +9,7 @@ #ifdef __cplusplus extern "C" { #endif -layer make_reorg_old_layer(int batch, int h, int w, int c, int stride, int reverse); +layer make_reorg_old_layer(int batch, int w, int h, int c, int stride, int reverse); void resize_reorg_old_layer(layer *l, int w, int h); void forward_reorg_old_layer(const layer l, network_state state); void backward_reorg_old_layer(const layer l, network_state state);