From 36db761917cbaa1c81007a95b7006420333137fd Mon Sep 17 00:00:00 2001 From: Alex Black Date: Mon, 19 Aug 2019 20:36:03 +1000 Subject: [PATCH] Build fix (IsMax) (#132) Signed-off-by: AlexDBlack --- .../src/test/java/org/deeplearning4j/ValidateCuDNN.java | 4 ++-- .../deeplearning4j/nn/layers/objdetect/Yolo2OutputLayer.java | 4 ++-- .../deeplearning4j/nn/layers/pooling/GlobalPoolingLayer.java | 2 +- .../java/org/deeplearning4j/util/MaskedReductionUtil.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deeplearning4j/deeplearning4j-cuda/src/test/java/org/deeplearning4j/ValidateCuDNN.java b/deeplearning4j/deeplearning4j-cuda/src/test/java/org/deeplearning4j/ValidateCuDNN.java index a9e4d185f..1d393aaf4 100644 --- a/deeplearning4j/deeplearning4j-cuda/src/test/java/org/deeplearning4j/ValidateCuDNN.java +++ b/deeplearning4j/deeplearning4j-cuda/src/test/java/org/deeplearning4j/ValidateCuDNN.java @@ -248,7 +248,7 @@ public class ValidateCuDNN extends BaseDL4JTest { Nd4j.getRandom().setSeed(12345); INDArray features = Nd4j.rand(fShape); INDArray labels = Nd4j.rand(lShape); - Nd4j.getExecutioner().exec(new IsMax(labels, 1)); + labels = Nd4j.exec(new IsMax(labels, 1)); List testCaseList = new ArrayList<>(); @@ -256,7 +256,7 @@ public class ValidateCuDNN extends BaseDL4JTest { for (int i = 0; i < 6; i++) { INDArray f = Nd4j.rand(fShape); INDArray l = Nd4j.rand(lShape); - Nd4j.getExecutioner().exec(new IsMax(l, 1)); + Nd4j.exec(new IsMax(l, 1))[0]; dataSets.add(new DataSet(f, l)); } DataSetIterator iter = new ExistingDataSetIterator(dataSets); diff --git a/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/objdetect/Yolo2OutputLayer.java b/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/objdetect/Yolo2OutputLayer.java index 2610603bc..bb551cd3f 100644 --- a/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/objdetect/Yolo2OutputLayer.java +++ b/deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/layers/objdetect/Yolo2OutputLayer.java @@ -191,8 +191,8 @@ public class Yolo2OutputLayer extends AbstractLayer