Unverified Commit 84659c93 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz Committed by GitHub
Browse files

Fix issue in TM computation

parent b2d6bff6
...@@ -640,9 +640,7 @@ def compute_tm( ...@@ -640,9 +640,7 @@ def compute_tm(
) )
bin_centers = _calculate_bin_centers(boundaries) bin_centers = _calculate_bin_centers(boundaries)
torch.sum(residue_weights) clipped_n = max(torch.sum(residue_weights), 19)
n = logits.shape[-2]
clipped_n = max(n, 19)
d0 = 1.24 * (clipped_n - 15) ** (1.0 / 3) - 1.8 d0 = 1.24 * (clipped_n - 15) ** (1.0 / 3) - 1.8
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment