dpnp.broadcast.shape

property

property broadcast.shape

Shape of the broadcasted result.

Returns:

out -- A tuple containing the shape of the broadcasted result.

Return type:

tuple

Examples

>>> import dpnp as np
>>> x = np.array([[1], [2], [3]])
>>> y = np.array([4, 5, 6])
>>> np.broadcast(x, y).shape
(3, 3)