You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: alphafold3_pytorch/alphafold3.py
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@
59
59
DEFAULT_NUM_MOLECULE_MODS,
60
60
ADDITIONAL_MOLECULE_FEATS,
61
61
BatchedAtomInput,
62
+
hard_validate_atom_indices_ascending
62
63
)
63
64
64
65
fromalphafold3_pytorch.common.biomoleculeimport (
@@ -5347,7 +5348,8 @@ def forward(
5347
5348
rollout_show_tqdm_pbar: bool=False,
5348
5349
detach_when_recycling: bool=None,
5349
5350
min_conf_resolution: float=0.1,
5350
-
max_conf_resolution: float=4.0
5351
+
max_conf_resolution: float=4.0,
5352
+
hard_validate: bool=False
5351
5353
) -> (
5352
5354
Float['b m 3'] |
5353
5355
Tuple[Float['b m 3'], ConfidenceHeadLogits] |
@@ -5363,6 +5365,13 @@ def forward(
5363
5365
assertatom_inputs.shape[-1] ==self.dim_atom_inputs, f'expected {self.dim_atom_inputs} for atom_inputs feature dimension, but received {atom_inputs.shape[-1]}'
5364
5366
assertatompair_inputs.shape[-1] ==self.dim_atompair_inputs, f'expected {self.dim_atompair_inputs} for atompair_inputs feature dimension, but received {atompair_inputs.shape[-1]}'
5365
5367
5368
+
# hard validate when debug env variable is turned on
0 commit comments