Skip to content

Commit f10771f

Browse files
author
Raktim Mitra
committed
debug cleanup
1 parent e94ea14 commit f10771f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

models/rfd3/src/rfd3/model/layers/block_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,7 @@ def extend_index_mask_with_neighbours(
413413

414414
# 2. Find k-nn excluding forced indices
415415
D_LL = torch.where(mask, inf, D_LL)
416-
try:
417-
filler_idx = torch.topk(D_LL, k, dim=-1, largest=False).indices
418-
except:
419-
raise ValueError(f"DLL has nan?: {torch.isnan(D_LL).any()}, D_LL shape: {D_LL.shape}, k: {k}")
416+
filler_idx = torch.topk(D_LL, k, dim=-1, largest=False).indices
420417

421418
# ... Reverse last axis s.t. best matched indices are last
422419
filler_idx = filler_idx.flip(dims=[-1])

0 commit comments

Comments
 (0)