From 63aeb63dee51aff8d0b7c862f9c7966e055eb061 Mon Sep 17 00:00:00 2001
From: Alexey <AlexeyAB@users.noreply.github.com>
Date: Thu, 07 Jun 2018 13:46:23 +0000
Subject: [PATCH] Update Readme.md
---
src/parser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/parser.c b/src/parser.c
index c1ee98c..184d1de 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -817,7 +817,7 @@
//printf("%ld\n", workspace_size);
#ifdef GPU
if(gpu_index >= 0){
- net.workspace = cuda_make_array(0, (workspace_size-1)/sizeof(float)+1);
+ net.workspace = cuda_make_array(0, workspace_size/sizeof(float) + 1);
}else {
net.workspace = calloc(1, workspace_size);
}
--
Gitblit v1.10.0