diff --git a/java/paddle-serving-sdk-java/pom.xml b/java/paddle-serving-sdk-java/pom.xml
index 693c1bfa2d88560c0c974e00e75a3234eab7801a..821f395fb204e133566627d742dfd341b4c5b025 100644
--- a/java/paddle-serving-sdk-java/pom.xml
+++ b/java/paddle-serving-sdk-java/pom.xml
@@ -56,6 +56,8 @@
1.27.2
3.11.0
3.11.0
+ nd4j-native
+ 1.0.0-beta7
1.8
1.8
@@ -144,6 +146,11 @@
log4j-slf4j-impl
2.12.1
+
+ org.nd4j
+ ${nd4j.backend}
+ ${nd4j.version}
+
diff --git a/java/paddle-serving-sdk-java/src/main/java/io/paddle/serving/client/Client.java b/java/paddle-serving-sdk-java/src/main/java/io/paddle/serving/client/Client.java
index 083eb56edc5146d82dcc3733e1760f5598644f49..cef718d9b8cd888c52994843484070a0034b703d 100644
--- a/java/paddle-serving-sdk-java/src/main/java/io/paddle/serving/client/Client.java
+++ b/java/paddle-serving-sdk-java/src/main/java/io/paddle/serving/client/Client.java
@@ -11,6 +11,9 @@ import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
+import org.nd4j.linalg.api.ndarray.INDArray;
+import org.nd4j.linalg.factory.Nd4j;
+
import io.paddle.serving.grpc.*;
import io.paddle.serving.configure.*;
@@ -140,13 +143,8 @@ public class Client {
}
}
- private List extends Number> _flattenList(List extends Number> x) {
- // TODO
- return x;
- }
-
private InferenceRequest _packInferenceRequest(
- List