add_docstr(torch.cumprod,
r"""
-cumprod(input, dim, dtype=None) -> Tensor
+cumprod(input, dim, out=None, dtype=None) -> Tensor
Returns the cumulative product of elements of :attr:`input` in the dimension
:attr:`dim`.
input (Tensor): the input tensor
dim (int): the dimension to do the operation over
{dtype}
+ out (Tensor, optional): the output tensor
Example::
input (Tensor): the input tensor
dim (int): the dimension to do the operation over
{dtype}
+ out (Tensor, optional): the output tensor
Example::