Skip to content

Commit

Permalink
Merge pull request #101 from stefanradev93/Development
Browse files Browse the repository at this point in the history
Add summary_dim attribute to transformers
  • Loading branch information
stefanradev93 committed Sep 12, 2023
2 parents 1419f3a + a350ec1 commit 2bd8744
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bayesflow/summary_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def __init__(

# Final output reduces representation into a vector of length summary_dim
self.output_layer = Dense(summary_dim)
self.summary_dim = summary_dim

def call(self, x, **kwargs):
"""Performs the forward pass through the transformer.
Expand Down Expand Up @@ -269,6 +270,8 @@ def __init__(
summary_dim, attention_settings, num_dense_fc, dense_settings, use_layer_norm, num_seeds
)

self.summary_dim = summary_dim

def call(self, x, **kwargs):
"""Performs the forward pass through the set-transformer.
Expand Down

0 comments on commit 2bd8744

Please sign in to comment.