From d9904e2794ae21e22fe75fbf179a6ea11fba1fcc Mon Sep 17 00:00:00 2001 From: ElchananHaas Date: Sun, 18 Jul 2021 23:14:04 -0400 Subject: [PATCH] Update NDArray.java Fix documentation of minimum of two NDArrays to read minimum, not maximum. --- api/src/main/java/ai/djl/ndarray/NDArray.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/ai/djl/ndarray/NDArray.java b/api/src/main/java/ai/djl/ndarray/NDArray.java index 57cabbd2da5..322c339fa45 100644 --- a/api/src/main/java/ai/djl/ndarray/NDArray.java +++ b/api/src/main/java/ai/djl/ndarray/NDArray.java @@ -1740,7 +1740,7 @@ default boolean allClose(NDArray other, double rtol, double atol, boolean equalN NDArray minimum(Number n); /** - * Returns the maximum of this {@code NDArray} and the other {@code NDArray} element-wise. + * Returns the minimum of this {@code NDArray} and the other {@code NDArray} element-wise. * *

The shapes of this {@code NDArray} and the other {@code NDArray} must be broadcastable. * @@ -1762,7 +1762,7 @@ default boolean allClose(NDArray other, double rtol, double atol, boolean equalN * * * @param other the {@code NDArray} to be compared - * @return the maximum of this {@code NDArray} and the other {@code NDArray} element-wise + * @return the minimum of this {@code NDArray} and the other {@code NDArray} element-wise */ NDArray minimum(NDArray other);