Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public class MinExample {

InferenceServerClient client = new InferenceServerClient("0.0.0.0:8000", 5000, 5000);
InferResult result = client.infer("roberta", inputs, outputs);
client.close();
float[] logits = result.getOutputAsFloat("logits");
System.out.println(Arrays.toString(logits));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static void main(String[] args) throws Exception

InferenceServerClient client = new InferenceServerClient("0.0.0.0:8000", 5000, 5000);
InferResult result = client.infer("custom_identity_int32", inputs, outputs);
client.close();

// Get the output arrays from the results and verify
int[] output0 = result.getOutputAsInt("OUTPUT0");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public static void main(String[] args) throws Exception

InferenceServerClient client = new InferenceServerClient("0.0.0.0:8000", 5000, 5000);
InferResult result = client.infer("simple", inputs, outputs);
client.close();

// Get the output arrays from the results
int[] op0 = result.getOutputAsInt("OUTPUT0");
Expand Down