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
additional_token_feats: Float['b n {self.dim_additional_token_feats}'] |None=None,
3303
3314
atom_ids: Int['b m'] |None=None,
3304
3315
atompair_ids: Int['b m m'] |Int['b nw w1 w2'] |None=None,
3316
+
is_molecule_mod: Bool['b n {self.num_molecule_mods}'] |None=None,
3305
3317
atom_mask: Bool['b m'] |None=None,
3306
3318
atom_parent_ids: Int['b m'] |None=None,
3307
3319
token_bonds: Bool['b n n'] |None=None,
@@ -3401,6 +3413,26 @@ def forward(
3401
3413
3402
3414
atompair_feats=atompair_feats+atompair_embeds
3403
3415
3416
+
# handle maybe molecule modifications
3417
+
3418
+
assertnot (exists(is_molecule_mod) ^self.has_molecule_mod_embeds), 'you either set `num_molecule_mods` and did not pass in `is_molecule_mod` or vice versa'
0 commit comments