as_shape

probnum.utils.as_shape(x, ndim=None)[source]

Convert a shape representation into a shape defined as a tuple of ints.

Parameters
Return type

Tuple[int, …]