|
@@ -269,14 +269,6 @@ public class PAIModelV1 {
|
|
|
List<Float> result = response.getFloatVals("probs");
|
|
List<Float> result = response.getFloatVals("probs");
|
|
|
parseResponseTime = System.currentTimeMillis() - stageStart;
|
|
parseResponseTime = System.currentTimeMillis() - stageStart;
|
|
|
|
|
|
|
|
- long totalTime = System.currentTimeMillis() - totalStart;
|
|
|
|
|
-
|
|
|
|
|
- // 输出耗时分析日志
|
|
|
|
|
- LOGGER.info("PAIModelV1.score cost: total={}ms, itemSize={}, buildUserFeature={}ms, " +
|
|
|
|
|
- "buildItemFeature={}ms, buildRequest={}ms, predict={}ms, parseResponse={}ms",
|
|
|
|
|
- totalTime, items.size(), buildUserFeatureTime, buildItemFeatureTime,
|
|
|
|
|
- buildRequestTime, predictTime, parseResponseTime);
|
|
|
|
|
-
|
|
|
|
|
if (!CollectionUtils.isEmpty(result)) {
|
|
if (!CollectionUtils.isEmpty(result)) {
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|