From d41018751b9dc58225c041504bc2fab7ec112ffc Mon Sep 17 00:00:00 2001 From: Alex Black Date: Wed, 4 Sep 2019 19:11:17 +1000 Subject: [PATCH] Small fix (#233) Signed-off-by: Alex Black --- .../nn/layers/mkldnn/MKLDNNSubsamplingHelper.java | 6 +----- 1 file changed, 1 insertion(+), 5 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 3edbf0b28..abb84e965 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 @@ -87,11 +87,7 @@ public class MKLDNNSubsamplingHelper implements SubsamplingHelper { break; } - Pooling2DDerivative d = Pooling2DDerivative.derivativeBuilder() - .config(conf) - .arrayInputs(new INDArray[]{input, epsilon}) - .arrayOutputs(new INDArray[]{gradAtInput}) - .build(); + Pooling2DDerivative d = new Pooling2DDerivative(input, epsilon, gradAtInput, conf); Nd4j.exec(d); return new Pair(new DefaultGradient(), gradAtInput);