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 1405ee5 commit f1e1ba1Copy full SHA for f1e1ba1
bayesflow/networks/point_inference_network.py
@@ -132,7 +132,9 @@ def call(
132
if xz is None and not self.built:
133
raise ValueError("Cannot build inference network without inference variables.")
134
if conditions is None: # unconditional estimation uses a fixed input vector
135
- conditions = keras.ops.convert_to_tensor([[1.0]])
+ conditions = keras.ops.convert_to_tensor(
136
+ [[1.0]], dtype=keras.ops.dtype(xz) if xz is not None else "float32"
137
+ )
138
139
# pass conditions to the shared subnet
140
output = self.subnet(conditions, training=training)
0 commit comments