Skip to content

Commit

Permalink
Bugfix concatenation axis
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanradev93 committed Jun 12, 2024
1 parent 047204d commit 42d20ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bayesflow/experimental/utils/dictutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def concatenate_tensors(tensor_dict: dict[str, Tensor], filter_list: list, axis:
An optional axis can be specified (default: last axis).
"""

return ops.concatenate([v for k, v in tensor_dict.items() if k in filter_list])
return ops.concatenate([v for k, v in tensor_dict.items() if k in filter_list], axis=axis)


def keras_kwargs(kwargs: dict):
Expand Down

0 comments on commit 42d20ab

Please sign in to comment.