From 106524663b2cb0d5e6055a573120bb51012c2e20 Mon Sep 17 00:00:00 2001 From: raver119 Date: Mon, 2 Sep 2019 15:24:51 +0300 Subject: [PATCH] fix double consumption of rng on cpu Signed-off-by: raver119 --- libnd4j/include/loops/cpu/random.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libnd4j/include/loops/cpu/random.cpp b/libnd4j/include/loops/cpu/random.cpp index 889e48181..30bab1327 100644 --- a/libnd4j/include/loops/cpu/random.cpp +++ b/libnd4j/include/loops/cpu/random.cpp @@ -162,9 +162,6 @@ namespace functions { } } } - - // update rng state - rng->rewindH(length); }; @@ -223,8 +220,6 @@ namespace functions { } } } - // update rng state - rng->rewindH(length); } @@ -256,9 +251,6 @@ namespace functions { z[offset] = OpClass::op(i+threadOffset, length, rng, extraArguments); } } - - // update rng state - rng->rewindH(length); } template