Skip to content

Commit

Permalink
python/pytorch: Fix regression from 6904
Browse files Browse the repository at this point in the history
Signed-off-by: Soham Manoli <[email protected]>
  • Loading branch information
msoham123 committed Jun 7, 2024
1 parent 63bfb42 commit 5429a7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/aistore/pytorch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def list_objects(
for url in urls_list:
provider, bck_name, path = parse_url(url)
bucket = client.bucket(bck_name=bck_name, provider=provider)
samples.extend([obj.name for obj in bucket.list_all_objects_iter(prefix=path)])
samples.extend([obj for obj in bucket.list_all_objects_iter(prefix=path)])

for source in ais_source_list:
samples.extend([obj.name for obj in source.list_all_objects_iter()])
Expand Down
2 changes: 1 addition & 1 deletion python/tests/integration/pytorch/test_pytorch_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_multishard_stream(self):
bucket_name=self.bck_name,
prefix="test_multishard_shard2.tar",
)
dataset = AISMultiShardStream(data_sorces=[shard1, shard2])
dataset = AISMultiShardStream(data_sources=[shard1, shard2])
combined_content = list(
zip(shard1_content_dict.values(), shard2_content_dict.values())
)
Expand Down
2 changes: 1 addition & 1 deletion python/tests/unit/pytorch/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_multi_shard_stream(self):

self.shards = [MagicMock(), MagicMock(), MagicMock()]

stream = AISMultiShardStream(data_sorces=self.shards)
stream = AISMultiShardStream(data_sources=self.shards)

expected_results = [
(b"data1_1", b"data2_1", b"data3_1"),
Expand Down

0 comments on commit 5429a7f

Please sign in to comment.