mirror of
https://github.com/HuwCampbell/grenade.git
synced 2024-11-23 00:34:44 +03:00
1e461cb07a
Using dependent types in the deeper functions and requiring a Proxy to reach them meant we required dictionary passing to get the Nats. This made the pad and crop layers almost 1000 times slower than they should have been.
14 lines
462 B
C
14 lines
462 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
|
|
void pad_cpu(double* data_im, const int channels,
|
|
const int height, const int width, const int pad_left, const int pad_top,
|
|
const int pad_right, const int pad_bottom,
|
|
double* data_col);
|
|
|
|
void crop_cpu(double* data_im, const int channels,
|
|
const int height, const int width, const int crop_left, const int crop_top,
|
|
const int crop_right, const int crop_bottom,
|
|
double* data_col);
|