From 130c9aa536a48a39589c6a1d61afb55fa4efefde Mon Sep 17 00:00:00 2001 From: Alex Black Date: Fri, 30 Aug 2019 16:36:14 +1000 Subject: [PATCH] Fixes (#202) * Remove unnecessary dup in MKLDNNSubsamplingHelper Signed-off-by: AlexDBlack * gson dep fix Signed-off-by: AlexDBlack --- .../nn/layers/mkldnn/MKLDNNSubsamplingHelper.java | 3 --- nd4j/nd4j-remote/nd4j-json-server/pom.xml | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/mkldnn/MKLDNNSubsamplingHelper.java b/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/mkldnn/MKLDNNSubsamplingHelper.java index ff4b52ac5..3edbf0b28 100644 --- a/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/mkldnn/MKLDNNSubsamplingHelper.java +++ b/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/mkldnn/MKLDNNSubsamplingHelper.java @@ -69,9 +69,6 @@ public class MKLDNNSubsamplingHelper implements SubsamplingHelper { pad = ConvolutionUtils.getSameModeTopLeftPadding(new int[]{(int)epsilon.size(2), (int)epsilon.size(3)}, new int[] {(int)input.size(2), (int)input.size(3)}, kernel, strides, dilation); } - input = input.dup(); - epsilon = epsilon.dup(); - Pooling2DConfig conf = Pooling2DConfig.builder() .isSameMode(convolutionMode == ConvolutionMode.Same) .kH(kernel[0]).kW(kernel[1]) diff --git a/nd4j/nd4j-remote/nd4j-json-server/pom.xml b/nd4j/nd4j-remote/nd4j-json-server/pom.xml index ba4d97bd5..47ef995a9 100644 --- a/nd4j/nd4j-remote/nd4j-json-server/pom.xml +++ b/nd4j/nd4j-remote/nd4j-json-server/pom.xml @@ -123,6 +123,13 @@ activation 1.1 + + + com.google.code.gson + gson + ${gson.version} + test +