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:
@ -8,6 +8,9 @@
|
||||
|
||||
typedef layer avgpool_layer;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
image get_avgpool_image(avgpool_layer l);
|
||||
avgpool_layer make_avgpool_layer(int batch, int w, int h, int c);
|
||||
void resize_avgpool_layer(avgpool_layer *l, int w, int h);
|
||||
@ -19,5 +22,8 @@ void forward_avgpool_layer_gpu(avgpool_layer l, network_state state);
|
||||
void backward_avgpool_layer_gpu(avgpool_layer l, network_state state);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user