Skip to content

Commit 3c22035

Browse files
committed
Remove .shape reference for autograph [skip ci]
1 parent e45fcc2 commit 3c22035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/amortizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ def _compute_condition(self, input_dict, **kwargs):
11741174
local_summaries, global_summaries = self._get_local_global(input_dict, **kwargs)
11751175

11761176
# At this point, add globals as conditions
1177-
num_locals = local_summaries.shape[1]
1177+
num_locals = tf.shape(local_summaries)[1]
11781178

11791179
# Add hyper parameters as conditions:
11801180
# p(local_n | data_n, hyper)

0 commit comments

Comments
 (0)