Skip to content

Commit

Permalink
Fix memory corruption in sample code for Triton Inference Server (pull
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyh authored Nov 27, 2021
1 parent 3176206 commit 96c2aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tritonserver/samples/Simple.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static class InferResponseComplete extends TRITONSERVER_InferenceResponseComplet

// We make a copy of the data here... which we could avoid for
// performance reasons but ok for this simple example.
BytePointer odata = new BytePointer(byte_size);
BytePointer odata = new BytePointer(byte_size.get());
output_data.put(name, odata);
switch (memory_type.get()) {
case TRITONSERVER_MEMORY_CPU: {
Expand Down

0 comments on commit 96c2aee

Please sign in to comment.