From cf32e7e9b843560eb7ec3ed16e5b19f0f7156724 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@burninator.cs.washington.edu>
Date: Sat, 25 Jun 2016 23:12:00 +0000
Subject: [PATCH] colors
---
src/deconvolutional_layer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/deconvolutional_layer.c b/src/deconvolutional_layer.c
index 0f4e1e8..d476957 100644
--- a/src/deconvolutional_layer.c
+++ b/src/deconvolutional_layer.c
@@ -134,7 +134,7 @@
int n = l.h*l.w;
int k = l.c;
- bias_output(l.output, l.biases, l.batch, l.n, size);
+ fill_cpu(l.outputs*l.batch, 0, l.output, 1);
for(i = 0; i < l.batch; ++i){
float *a = l.filters;
@@ -145,6 +145,7 @@
col2im_cpu(c, l.n, out_h, out_w, l.size, l.stride, 0, l.output+i*l.n*size);
}
+ add_bias(l.output, l.biases, l.batch, l.n, size);
activate_array(l.output, l.batch*l.n*size, l.activation);
}
--
Gitblit v1.10.0