API Reference
Convert a shape representation into a shape defined as a tuple of ints.
x (Union[int, Integral, integer, Iterable[Union[int, Integral, integer]]]) – Shape representation.
ndim (Optional[Integral]) –
Tuple[int, …]