Skip to content

Commit 86f972a

Browse files
committed
Remove unneeded comments
Co-authored-by: Steffen Schneider <steffen@bethgelab.org>
1 parent c51eb95 commit 86f972a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

cebra/data/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,10 @@ def expand_index_in_trial(self, index, trial_ids, trial_borders):
162162
self.offset.right,
163163
device=index.device)
164164

165-
# Vectorized lookup and boundary calculation
166165
batch_trial_ids = trial_ids[index]
167166
min_borders = trial_borders[batch_trial_ids] + self.offset.left
168167
max_borders = trial_borders[batch_trial_ids + 1] - self.offset.right
169168

170-
# Fast C-level clamp
171169
index = torch.clamp(index, min=min_borders, max=max_borders)
172170

173171
return index[:, None] + offset[None, :]

0 commit comments

Comments
 (0)