Skip to content

Commit

Permalink
re-added the assertion for force_consistent_in_dim
Browse files Browse the repository at this point in the history
  • Loading branch information
DomInvivo committed Dec 20, 2023
1 parent c58de0a commit fe6fa16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphium/nn/pyg_layers/gps_pyg.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _parse_attn_layer(
attn_kwargs.setdefault("embed_dim", self.in_dim)
if force_consistent_in_dim:
embed_dim = attn_kwargs["embed_dim"]
# assert embed_dim == self.in_dim, f"embed_dim={embed_dim} must be equal to in_dim={self.in_dim}"
assert embed_dim == self.in_dim, f"embed_dim={embed_dim} must be equal to in_dim={self.in_dim}"

# Initialize the Attention layer
attn_layer, attn_class = None, None
Expand Down

0 comments on commit fe6fa16

Please # to comment.