Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 26, 2020
1 parent 968d280 commit 512da0c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ from alphafold2 import Alphafold2
model = Alphafold2(
dim = 256,
depth = 2,
heads = 8,
dim_head = 64
).cuda()

x = torch.randint(0, 21, (1, 128)).cuda()
distogram = model(x) # (1, 128, 128, 37)
seq = torch.randint(0, 21, (1, 128)).cuda()
mask = torch.ones_like(seq).bool().cuda()

distogram = model(x, mask = mask) # (1, 128, 128, 37)
```

## Speculation
Expand Down

0 comments on commit 512da0c

Please sign in to comment.