From ce9c37297457ed18e018fa6996e1cc2c7463a243 Mon Sep 17 00:00:00 2001 From: Robert Altena Date: Mon, 22 Jul 2019 19:59:47 +0900 Subject: [PATCH] fix pad javadoc and @see links. (#72) Signed-off-by: Robert Altena --- .../src/main/java/org/nd4j/linalg/factory/Nd4j.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/Nd4j.java b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/Nd4j.java index eda5c7319..9840c0360 100644 --- a/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/Nd4j.java +++ b/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/Nd4j.java @@ -209,7 +209,7 @@ public class Nd4j { } /** - * @see #pad(INDArray, int[][], PadMode) + * @see #pad(INDArray, int[][], List, PadMode) with zero padding. (zeros for constantValues). */ public static INDArray pad(INDArray toPad, int[][] padWidth, PadMode padMode) { return pad(toPad, padWidth, ArrayUtil.zerosMatrix(toPad.shape()), padMode); @@ -264,7 +264,7 @@ public class Nd4j { } /** - * @see #pad(INDArray, int[][], PadMode) + * @see #pad(INDArray, int[][], List, PadMode) with a 1D int[] for padWidth. */ public static INDArray pad(INDArray toPad, int[] padWidth, List constantValues, PadMode padMode) { switch (padMode) { @@ -299,17 +299,15 @@ public class Nd4j { ret = Nd4j.append(ret, padAfter, afterVal, i); } - return ret; default: throw new UnsupportedOperationException(); - } } /** - * @see #pad(INDArray, int[][], PadMode) + * @see #pad(INDArray, int[][], List, PadMode) with a 1D int[] for padWidth and zero padding. */ public static INDArray pad(INDArray toPad, int[] padWidth, PadMode padMode) { return pad(toPad, padWidth, ArrayUtil.zerosMatrix(padWidth), padMode);