Skip to content

Commit ab740d2

Browse files
Tidying up
Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
1 parent ce89f14 commit ab740d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ray/data/_internal/execution/operators/base_physical_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def internal_queue_num_blocks(self) -> int:
119119
return sum(len(bundle.block_refs) for bundle in self._input_buffer)
120120

121121
def internal_queue_num_bytes(self) -> int:
122-
return sum([bundle.size_bytes() for bundle in self._input_buffer])
122+
return sum(bundle.size_bytes() for bundle in self._input_buffer)
123123

124124
def all_inputs_done(self) -> None:
125125
ctx = TaskContext(

python/ray/data/_internal/execution/operators/zip_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def num_output_rows_total(self) -> Optional[int]:
8080
return num_rows
8181

8282
def internal_queue_num_blocks(self) -> int:
83-
return sum(len(bundle) for buf in self._input_buffers for bundle in buf)
83+
return sum(len(bundle.block_refs) for buf in self._input_buffers for bundle in buf)
8484

8585
def internal_queue_num_bytes(self) -> int:
8686
return sum(bundle.size_bytes() for buf in self._input_buffers for bundle in buf)

0 commit comments

Comments
 (0)