File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
python/ray/data/_internal/execution/operators Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments