Skip to content

Commit

Permalink
break line in 2 to reduce line length
Browse files Browse the repository at this point in the history
  • Loading branch information
gumityolcu committed Apr 18, 2024
1 parent 9019ade commit 424a1ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/datasets/corrupt_label_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def __init__(
assert hasattr(dataset, "device")
self.device = dataset.device

if IC.exists(path=cache_path, file_id=f"{dataset_id}_corrupt_ids") and IC.exists(path=cache_path, file_id=f"{dataset_id}_corrupt_labels"):
if IC.exists(path=cache_path, file_id=f"{dataset_id}_corrupt_ids") and \
IC.exists(path=cache_path, file_id=f"{dataset_id}_corrupt_labels"):
self.corrupt_indices = IC.load(path=cache_path, file_id=f"{dataset_id}_corrupt_ids")
self.corrupt_labels = IC.load(path=cache_path, file_id=f"{dataset_id}_corrupt_labels", device=self.device)
else:
Expand Down

0 comments on commit 424a1ca

Please sign in to comment.