Skip to content

Commit af5ac0d

Browse files
authored
Apply suggestion from @0oshowero0
1 parent 6292ef7 commit af5ac0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transfer_queue/storage/simple_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_data(self, fields: list[str], local_indexes: list[int]) -> TensorDict[st
102102

103103
# Explicit batch size for stability
104104
batch_size = 0 if not fields or not local_indexes else len(local_indexes)
105-
return TensorDict(result, batch_size=bs)
105+
return TensorDict(result, batch_size=batch_size)
106106

107107
def put_data(self, field_data: TensorDict[str, Any], local_indexes: list[int]) -> None:
108108
"""

0 commit comments

Comments
 (0)