We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9071be4 commit fdac500Copy full SHA for fdac500
bayesflow/networks/flow_matching/flow_matching.py
@@ -191,7 +191,10 @@ def compute_metrics(
191
else:
192
# not pre-configured, resample
193
x1 = x
194
- x0 = self.base_distribution.sample(keras.ops.shape(x1), seed=self.seed_generator)
+ if not self.base_distribution.built:
195
+ # ensure that base distribution is built
196
+ self.base_distribution.build(keras.ops.shape(x1))
197
+ x0 = self.base_distribution.sample(keras.ops.shape(x1)[:-1])
198
199
if self.use_optimal_transport:
200
x1, x0, conditions = optimal_transport(
0 commit comments