From 4b0be8c7011c9d39c102d64147af9a181db76179 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Wed, 21 Feb 2018 12:06:11 +0000
Subject: [PATCH] Optimized resizing of network for random=1
---
src/region_layer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/region_layer.c b/src/region_layer.c
index f7eaef6..d48e8d0 100644
--- a/src/region_layer.c
+++ b/src/region_layer.c
@@ -170,7 +170,7 @@
for (b = 0; b < l.batch; ++b){
for(i = 0; i < l.h*l.w*l.n; ++i){
int index = size*i + b*l.outputs;
- softmax(l.output + index + 5, l.classes, 1, l.output + index + 5);
+ softmax(l.output + index + 5, l.classes, 1, l.output + index + 5, 1);
}
}
}
--
Gitblit v1.10.0