Skip to content

Commit

Permalink
Fix compile issue after rebase
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Jan 26, 2024
1 parent 38cb4ac commit 8315be5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static ModelTensors processOutput(
// in this case, we can use jsonpath to build a List<List<Float>> result from model response.
if (StringUtils.isBlank(responseFilter))
responseFilter = MLPostProcessFunction.getResponseFilter(postProcessFunction);
List<List<Float>> vectors = JsonPath.read(modelResponse, responseFilter);
List<?> vectors = JsonPath.read(modelResponse, responseFilter);
List<ModelTensor> processedResponse = executeBuildInPostProcessFunction(
vectors,
MLPostProcessFunction.get(postProcessFunction)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public static Optional<String> executePreprocessFunction(
}

public static List<ModelTensor> executeBuildInPostProcessFunction(
List<List<Float>> vectors,
Function<List<List<Float>>, List<ModelTensor>> function
List<?> vectors,
Function<List<?>, List<ModelTensor>> function
) {
return function.apply(vectors);
}
Expand Down

0 comments on commit 8315be5

Please sign in to comment.