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 fdac500 commit 1081bbdCopy full SHA for 1081bbd
bayesflow/networks/flow_matching/flow_matching.py
@@ -191,9 +191,10 @@ def compute_metrics(
191
else:
192
# not pre-configured, resample
193
x1 = x
194
- if not self.base_distribution.built:
195
- # ensure that base distribution is built
196
- self.base_distribution.build(keras.ops.shape(x1))
+ if not self.built:
+ xz_shape = keras.ops.shape(x1)
+ conditions_shape = None if conditions is None else keras.ops.shape(conditions)
197
+ self.build(xz_shape, conditions_shape)
198
x0 = self.base_distribution.sample(keras.ops.shape(x1)[:-1])
199
200
if self.use_optimal_transport:
0 commit comments