From d9cfa8073ff4f18c9d2fa43fb6a9fd9a004d92f4 Mon Sep 17 00:00:00 2001 From: raver119 Date: Tue, 3 Mar 2020 14:19:55 +0300 Subject: [PATCH] bigger reads Signed-off-by: raver119 --- libnd4j/include/graph/impl/GraphExecutioner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnd4j/include/graph/impl/GraphExecutioner.cpp b/libnd4j/include/graph/impl/GraphExecutioner.cpp index 38399242c..aeb8f61b5 100644 --- a/libnd4j/include/graph/impl/GraphExecutioner.cpp +++ b/libnd4j/include/graph/impl/GraphExecutioner.cpp @@ -837,9 +837,9 @@ uint8_t* readFlatBuffers(const char * filename) { int cnt = 0; int b = 0; while (cnt < fileLen) { - b += fread(data + cnt, 1, 1, in); + b = fread(data + cnt, 1, 16384, in); - cnt++; + cnt += b; } fclose(in);