From ade767c0cadafe794ba3ca28a168772672bd6a13 Mon Sep 17 00:00:00 2001 From: Tyler Osterberg Date: Thu, 20 Oct 2022 12:53:43 -0700 Subject: [PATCH] fix: remove warning spam during training (#2097) --- .../main/java/ai/djl/ndarray/index/NDArrayIndexer.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/src/main/java/ai/djl/ndarray/index/NDArrayIndexer.java b/api/src/main/java/ai/djl/ndarray/index/NDArrayIndexer.java index fe9fa7e2cf8..ab799069dde 100644 --- a/api/src/main/java/ai/djl/ndarray/index/NDArrayIndexer.java +++ b/api/src/main/java/ai/djl/ndarray/index/NDArrayIndexer.java @@ -20,9 +20,6 @@ import ai.djl.ndarray.index.full.NDIndexFullSlice; import ai.djl.ndarray.index.full.NDIndexFullTake; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.util.List; import java.util.Optional; @@ -80,11 +77,6 @@ public NDArray get(NDArray array, NDIndex index) { Optional fullTake = NDIndexFullTake.fromIndex(index, array.getShape()); if (fullTake.isPresent()) { - Logger logger = LoggerFactory.getLogger(NDArrayIndexer.class); - logger.warn( - "The definition of the getter by array NDIndex: get(NDIndex array) has changed" - + " from pick to take.If you still want to use array index as pick, then do" - + " it explicitly by get(new NDIndex().addPickDim(array));"); return get(array, fullTake.get()); }