Skip to content

Commit 6690cf3

Browse files
committed
fix attn bias and pairwise repr given together in AttentionPairBias
1 parent e5a1fdf commit 6690cf3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alphafold3_pytorch/alphafold3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def forward(
580580
# attention bias preparation with further addition from pairwise repr
581581

582582
if exists(attn_bias):
583-
attn_bias = rearrange(attn_bias, 'b i j -> b 1 i j')
583+
attn_bias = rearrange(attn_bias, 'b ... -> b 1 ...')
584584
else:
585585
attn_bias = 0.
586586

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "alphafold3-pytorch"
3-
version = "0.0.64"
3+
version = "0.0.65"
44
description = "Alphafold 3 - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" }

0 commit comments

Comments
 (0)