AnandInguva commented on code in PR #23266:
URL: https://github.com/apache/beam/pull/23266#discussion_r973287044


##########
sdks/python/apache_beam/ml/inference/tensorrt_inference.py:
##########
@@ -270,11 +272,11 @@ def run_inference(
                 stream))
       _assign_or_fail(cuda.cuStreamSynchronize(stream))
 
-      return [
-          PredictionResult(
-              x, [prediction[idx] for prediction in cpu_allocations]) for idx,
-          x in enumerate(batch)
-      ]
+      predictions = []

Review Comment:
   PTA:L @damccorm I think this is how we use `_convert_to_result`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to