Skip to content

Commit 2bd8744

Browse files
Merge pull request #101 from stefanradev93/Development
Add summary_dim attribute to transformers
2 parents 1419f3a + a350ec1 commit 2bd8744

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bayesflow/summary_networks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def __init__(
148148

149149
# Final output reduces representation into a vector of length summary_dim
150150
self.output_layer = Dense(summary_dim)
151+
self.summary_dim = summary_dim
151152

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

273+
self.summary_dim = summary_dim
274+
272275
def call(self, x, **kwargs):
273276
"""Performs the forward pass through the set-transformer.
274277

0 commit comments

Comments
 (0)