mirror of
https://github.com/HuwCampbell/grenade.git
synced 2024-11-25 13:43:03 +03:00
ac0e4b22c8
Add singletons for Shape and remove hacks on recurrent nets Add Recurrent Nets
24 lines
934 B
C
24 lines
934 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
|
|
void im2col_cpu(const double* data_im, const int channels,
|
|
const int height, const int width, const int kernel_h, const int kernel_w,
|
|
const int stride_h, const int stride_w,
|
|
double* data_col);
|
|
|
|
void col2im_cpu(const double* data_col, const int channels,
|
|
const int height, const int width, const int kernel_h, const int kernel_w,
|
|
const int stride_h, const int stride_w,
|
|
double* data_im);
|
|
|
|
void pool_forwards_cpu(const double* data_im, const int channels,
|
|
const int height, const int width, const int kernel_h, const int kernel_w,
|
|
const int stride_h, const int stride_w,
|
|
double* data_pooled);
|
|
|
|
void pool_backwards_cpu(const double* data_im, const double* data_pooled,
|
|
const int channels, const int height, const int width, const int kernel_h,
|
|
const int kernel_w, const int stride_h, const int stride_w,
|
|
double* data_backgrad );
|