Skip to content

Commit

Permalink
[Python] Fix input type for num_bytes (#25086)
Browse files Browse the repository at this point in the history
* fix input type

* use sys for size
  • Loading branch information
riteshghorse committed Jan 19, 2023
1 parent 60a9382 commit 80d8d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/python/apache_beam/ml/inference/sklearn_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def run_inference(

return _convert_to_result(batch, predictions)

def get_num_bytes(self, batch: Sequence[pandas.DataFrame]) -> int:
def get_num_bytes(self, batch: Sequence[numpy.ndarray]) -> int:
"""
Returns:
The number of bytes of data for a batch.
Expand Down

0 comments on commit 80d8d34

Please sign in to comment.