pymc.distributions.shape_utils.to_tuple#
- pymc.distributions.shape_utils.to_tuple(shape)[source]#
Convert ints, arrays, and Nones to tuples.
- Parameters:
- shape: None, int or array-like
Represents the shape to convert to tuple.
- Returns:
- shape
tuple
If shape is None, returns an empty tuple. If it’s an int, (shape,) is returned. If it is array-like, tuple(shape) is returned.
- shape