Skip to content

Commit 665ffef

Browse files
authored
Update alphafold3.py (#302)
1 parent 7d7e6d8 commit 665ffef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: alphafold3_pytorch/alphafold3.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -767,11 +767,8 @@ def __init__(self, *, heads, dim_pairwise, window_size=None, num_memory_kv=0, **
767767

768768
# line 8 of Algorithm 24
769769

770-
to_attn_bias_linear = LinearNoBias(dim_pairwise, heads)
771-
nn.init.zeros_(to_attn_bias_linear.weight)
772-
773770
self.to_attn_bias_norm = nn.LayerNorm(dim_pairwise)
774-
self.to_attn_bias = nn.Sequential(to_attn_bias_linear, Rearrange("b ... h -> b h ..."))
771+
self.to_attn_bias = nn.Sequential(LinearNoBias(dim_pairwise, heads), Rearrange("b ... h -> b h ..."))
775772

776773
@typecheck
777774
def forward(

0 commit comments

Comments
 (0)