Skip to content

Commit

Permalink
[BUFG][nn.Layernorm]
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed May 15, 2024
1 parent 2dcafe5 commit 2001577
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion alphafold3/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(
)

# Norm
self.norm = nn.Layernorm(dim)
self.norm = nn.LayerNorm(dim)

def forward(
self,
Expand Down
10 changes: 5 additions & 5 deletions alphafold3/template_embedder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@

class TemplateEmbedder(nn.Module):
def __init__(
self,
self,
dim: int = None,
depth: int = 2,
depth: int = 2,
seq_len: int = None,
heads: int = 64,
dim_head: int = 64,
attn_dropout: float = 0.0,
ff_dropout: float = 0.0,
global_column_attn: bool = False,
c: int = 64,
c: int = 64,
Ntemplates: int = 1,
*args,
**kwargs
**kwargs,
):
super(TemplateEmbedder, self).__init__()
# Define layers used in the embedding
Expand All @@ -34,7 +34,7 @@ def __init__(
ff_dropout=ff_dropout,
depth=depth,
*args,
**kwargs
**kwargs,
)
self.relu = nn.ReLU()
self.final_linear = nn.Linear(c, c, bias=False)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "alphafold3"
version = "0.0.5"
version = "0.0.8"
description = "Paper - Pytorch"
license = "MIT"
authors = ["Kye Gomez <kye@apac.ai>"]
Expand Down
Empty file added tests/test_template_embedder.py
Empty file.

0 comments on commit 2001577

Please sign in to comment.