mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
improve compatibility with c++ compilers, prepare for CMake
This commit is contained in:
@ -9,10 +9,13 @@
|
||||
|
||||
typedef layer deconvolutional_layer;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifdef GPU
|
||||
void forward_deconvolutional_layer_gpu(deconvolutional_layer layer, network_state state);
|
||||
void backward_deconvolutional_layer_gpu(deconvolutional_layer layer, network_state state);
|
||||
void update_deconvolutional_layer_gpu(deconvolutional_layer layer, float learning_rate, float momentum, float decay);
|
||||
void update_deconvolutional_layer_gpu(deconvolutional_layer layer, int skip, float learning_rate, float momentum, float decay);
|
||||
void push_deconvolutional_layer(deconvolutional_layer layer);
|
||||
void pull_deconvolutional_layer(deconvolutional_layer layer);
|
||||
#endif
|
||||
@ -20,7 +23,7 @@ void pull_deconvolutional_layer(deconvolutional_layer layer);
|
||||
deconvolutional_layer make_deconvolutional_layer(int batch, int h, int w, int c, int n, int size, int stride, ACTIVATION activation);
|
||||
void resize_deconvolutional_layer(deconvolutional_layer *layer, int h, int w);
|
||||
void forward_deconvolutional_layer(const deconvolutional_layer layer, network_state state);
|
||||
void update_deconvolutional_layer(deconvolutional_layer layer, float learning_rate, float momentum, float decay);
|
||||
void update_deconvolutional_layer(deconvolutional_layer layer, int skip, float learning_rate, float momentum, float decay);
|
||||
void backward_deconvolutional_layer(deconvolutional_layer layer, network_state state);
|
||||
|
||||
image get_deconvolutional_image(deconvolutional_layer layer);
|
||||
@ -30,5 +33,8 @@ image get_deconvolutional_filter(deconvolutional_layer layer, int i);
|
||||
int deconvolutional_out_height(deconvolutional_layer layer);
|
||||
int deconvolutional_out_width(deconvolutional_layer layer);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user