2023-02-09 01:28:51 +09:00
|
|
|
#include <cstdlib>
|
|
|
|
|
|
|
|
#include "convolution.h"
|
|
|
|
|
2023-02-14 01:23:28 +09:00
|
|
|
void convolution_gpu_initialize(int N, int C, int H, int W, int K, int R, int S,
|
|
|
|
int pad_h, int pad_w, int stride_h,
|
|
|
|
int stride_w, int dilation_h, int dilation_w) {
|
2023-02-09 01:28:51 +09:00
|
|
|
// TODO
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-02-14 01:23:28 +09:00
|
|
|
void convolution_gpu(float *I, float *F, float *O, int N, int C, int H, int W,
|
|
|
|
int K, int R, int S, int pad_h, int pad_w, int stride_h,
|
|
|
|
int stride_w, int dilation_h, int dilation_w) {
|
2023-02-09 01:28:51 +09:00
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2023-02-14 01:23:28 +09:00
|
|
|
void convolution_gpu_finalize(int N, int C, int H, int W, int K, int R, int S,
|
|
|
|
int pad_h, int pad_w, int stride_h, int stride_w,
|
|
|
|
int dilation_h, int dilation_w) {
|
2023-02-09 01:28:51 +09:00
|
|
|
// TODO
|
|
|
|
return;
|
|
|
|
}
|