Skip to content

Commit

Permalink
Add double parameter handling
Browse files Browse the repository at this point in the history
  • Loading branch information
fpetrini15 committed Dec 30, 2023
1 parent 950c47f commit b0b369d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python_be.cc
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ ModelInstanceState::SaveRequestsToSharedMemory(
} else if (type == TRITONSERVER_PARAMETER_STRING) {
std::string string = reinterpret_cast<const char*>(vvalue);
RETURN_IF_ERROR(parameters_json.AddString(name, string));
} else if (type == TRITONSERVER_PARAMETER_DOUBLE) {
RETURN_IF_ERROR(parameters_json.AddDouble(
name, *(reinterpret_cast<const double*>(vvalue))));
} else {
return TRITONSERVER_ErrorNew(
TRITONSERVER_ERROR_INVALID_ARG,
Expand Down

0 comments on commit b0b369d

Please sign in to comment.