Skip to content

Commit 270013c

Browse files
committed
Remove duplicate tracking of sorting time
1 parent 271dfa4 commit 270013c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/data/sorted_dataset.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import torch
22
from torch.utils.data import Dataset
33

4-
import wandb
5-
from time import time
6-
74

85
def sort_indices(dataset):
9-
start = time()
106
labels = dataset.targets
117
sorted_idx = torch.argsort(torch.tensor(labels))
12-
wandb.log({"time_to_sort_dataset": time() - start})
138
return sorted_idx
149

1510

0 commit comments

Comments
 (0)