Skip to content

Commit

Permalink
Update alphafold3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amorehead authored Oct 3, 2024
1 parent 7d7e6d8 commit 185bca4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions alphafold3_pytorch/alphafold3.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,8 @@ def __init__(self, *, heads, dim_pairwise, window_size=None, num_memory_kv=0, **

# line 8 of Algorithm 24

to_attn_bias_linear = LinearNoBias(dim_pairwise, heads)
nn.init.zeros_(to_attn_bias_linear.weight)

self.to_attn_bias_norm = nn.LayerNorm(dim_pairwise)
self.to_attn_bias = nn.Sequential(to_attn_bias_linear, Rearrange("b ... h -> b h ..."))
self.to_attn_bias = nn.Sequential(LinearNoBias(dim_pairwise, heads), Rearrange("b ... h -> b h ..."))

@typecheck
def forward(
Expand Down

0 comments on commit 185bca4

Please sign in to comment.