Loading may or may not work. But probably.

This commit is contained in:
Joseph Redmon
2013-11-06 16:09:41 -08:00
parent 9b1774bd39
commit d7286c2732
14 changed files with 155 additions and 57 deletions

View File

@ -1,10 +1,10 @@
#include "maxpool_layer.h"
maxpool_layer make_maxpool_layer(int h, int w, int c, int stride)
maxpool_layer *make_maxpool_layer(int h, int w, int c, int stride)
{
maxpool_layer layer;
layer.stride = stride;
layer.output = make_image((h-1)/stride+1, (w-1)/stride+1, c);
maxpool_layer *layer = calloc(1, sizeof(maxpool_layer));
layer->stride = stride;
layer->output = make_image((h-1)/stride+1, (w-1)/stride+1, c);
return layer;
}