Skip to content

Commit

Permalink
fix usage of ReadDataFromJson
Browse files Browse the repository at this point in the history
  • Loading branch information
v-shobhit committed Sep 18, 2024
1 parent 68d4c01 commit a093d02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/http_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3557,6 +3557,8 @@ HTTPAPIServer::GenerateRequestClass::ExactMappingInput(
}
}

// get original element count back
element_cnt = tensor_data.IsArray() ? tensor_data.ArraySize() : 1;
serialized_data_.emplace_back();
std::vector<char>& serialized = serialized_data_.back();
serialized.resize(byte_size);
Expand Down

0 comments on commit a093d02

Please sign in to comment.