Skip to content

(Bug) Update sentence_encoder.py: clamping cos_sim between -1 and 1 to avoid floating point precision errors in torch.acos(cos_sim)#804

Merged
qiyanjun merged 1 commit intoQData:masterfrom
Aniloid2:patch-1
Apr 17, 2026
Merged

(Bug) Update sentence_encoder.py: clamping cos_sim between -1 and 1 to avoid floating point precision errors in torch.acos(cos_sim)#804
qiyanjun merged 1 commit intoQData:masterfrom
Aniloid2:patch-1

Commits

Commits on Sep 19, 2024