Skip to content

Commit d8d84c8

Browse files
committed
Fix build_from_data in ModelComparisonApproximator
1 parent 955ac79 commit d8d84c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/approximators/model_comparison_approximator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def build(self, data_shapes: dict[str, tuple[int] | dict[str, dict]]) -> None:
103103
self.built = True
104104

105105
def build_from_data(self, adapted_data: dict[str, any]):
106-
self.build(keras.tree.map_structure(keras.ops.shape(adapted_data)))
106+
self.build(keras.tree.map_structure(keras.ops.shape, adapted_data))
107107

108108
@classmethod
109109
def build_adapter(

0 commit comments

Comments
 (0)