gustaf.utils.arr.is_one_of_shapes#
- gustaf.utils.arr.is_one_of_shapes(arr, shapes, strict=False)[source]#
Tuple/list of given shapes, iterates and checks with is_shape. Useful if you have multiple acceptable shapes.
- Parameters:
arr (np.ndarray)
shapes (tuple or list) – tuple/list of tuple/list
strict (bool)
- Returns:
matches
- Return type:
bool