Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/upsample_dla_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
layer make_upsample_dla_layer(int batch, int w, int h, int c, int stride)
{
layer l = {0};
l.type = UPSAMPLE;
l.type = UPSAMPLE_DLA;
l.batch = batch;
l.w = w;
l.h = h;
Expand All @@ -33,6 +33,18 @@ layer make_upsample_dla_layer(int batch, int w, int h, int c, int stride)
return l;
}

void dump_file(float *data, char *filename, int size)
{
FILE *file;
int ii;

file = fopen(filename, "w");
for (ii = 0; ii < size; ii++)
{
fprintf(file, "%.2g\t", data[ii]);
}
}

void *cubecpy(void *dst, const void *src){
char *tmp_dst= dst;
const char *tmp_src = src;
Expand Down