diff --git a/api/src/main/java/ai/djl/ndarray/NDArray.java b/api/src/main/java/ai/djl/ndarray/NDArray.java index 83eda557a2c2..d20483536337 100644 --- a/api/src/main/java/ai/djl/ndarray/NDArray.java +++ b/api/src/main/java/ai/djl/ndarray/NDArray.java @@ -4630,7 +4630,12 @@ default NDArray oneHot(int depth) { * Batchwise product of this {@code NDArray} and the other {@code NDArray}. * *
Examples diff --git a/integration/src/main/java/ai/djl/integration/tests/ndarray/NDArrayElementArithmeticOpTest.java b/integration/src/main/java/ai/djl/integration/tests/ndarray/NDArrayElementArithmeticOpTest.java index 384ea52dd52f..43dbb72f831e 100644 --- a/integration/src/main/java/ai/djl/integration/tests/ndarray/NDArrayElementArithmeticOpTest.java +++ b/integration/src/main/java/ai/djl/integration/tests/ndarray/NDArrayElementArithmeticOpTest.java @@ -677,7 +677,10 @@ public void testBatchDot() { NDArray array1 = manager.ones(new Shape(2, 1, 4)); NDArray array2 = manager.ones(new Shape(2, 4, 6)); NDArray expected = manager.create(4f).tile(12).reshape(new Shape(2, 1, 6)); - Assert.assertEquals(array1.batchDot(array2), expected, "batch dot product: Incorrect value in result ndarray"); + Assert.assertEquals( + array1.batchDot(array2), + expected, + "batch dot product: Incorrect value in result ndarray"); } } }