slice_maybe_nested#

bayesflow.utils.slice_maybe_nested(obj: Mapping | Tensor, start: int, end: int)[source]#

Slices a possibly nested dictionary of arrays along the first axis.