You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/10 19:37:21 UTC

[GitHub] [beam] yeandy commented on a diff in pull request #21777: Make keying of examples explicit.

yeandy commented on code in PR #21777:
URL: https://github.com/apache/beam/pull/21777#discussion_r894838238


##########
sdks/python/apache_beam/ml/inference/pytorch_inference.py:
##########
@@ -119,7 +119,7 @@ def run_inference(
       predictions = model(batched_tensors, **prediction_params)
     return [PredictionResult(x, y) for x, y in zip(batch, predictions)]
 
-  def get_num_bytes(self, batch: List[torch.Tensor]) -> int:

Review Comment:
   Do the same `Sequence` change for `sklearn_inference.py` lines 78, 89, 97, 116, 121



-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org