stack_valid#

bayesflow.utils.stack_valid(tensors: Sequence[Tensor | None], axis: int = 0) Tensor | None[source]#

Stack multiple tensors along axis, ignoring None values.