Package ai.djl.engine.rpc
Class RpcClient
java.lang.Object
ai.djl.engine.rpc.RpcClient
A client used to connect to remote model server.
-
Method Summary
-
Method Details
-
getClient
Returns a newClientinstance from criteria arguments.- Parameters:
arguments- the criteria arguments.- Returns:
- a new
Clientinstance - Throws:
MalformedURLException- if url is invalid
-
send
Sends request to remote server.- Parameters:
input- the input- Returns:
- the output
- Throws:
IOException- if connection failed
-