Skip to content

Commit

Permalink
name it the way they have in the supplementary
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed May 13, 2024
1 parent a1dc28f commit 715327c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alphafold3_pytorch/alphafold3.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __init__(
nn.Sigmoid()
)

self.to_beta = nn.Linear(dim_cond, dim, bias = False)
self.to_beta = LinearNoBias(dim_cond, dim)

@typecheck
def forward(
Expand Down Expand Up @@ -259,7 +259,7 @@ def __init__(

# line 8 of Algorithm 24

to_attn_bias_linear = nn.Linear(dim_pairwise_repr, heads, bias = False)
to_attn_bias_linear = LinearNoBias(dim_pairwise_repr, heads)
nn.init.zeros_(to_attn_bias_linear.weight)

self.to_attn_bias = nn.Sequential(
Expand Down Expand Up @@ -308,7 +308,7 @@ def __init__(
self.attn = Attention(dim = dim, heads = heads, **attn_kwargs)

self.to_attn_bias = nn.Sequential(
nn.Linear(dim, heads, bias = False),
LinearNoBias(dim, heads),
Rearrange('... i j h -> ... h i j')
)

Expand Down

0 comments on commit 715327c

Please sign in to comment.