running product $\prod +$

Computes the running product of the input tensor along a given axis. For example, take this rank 2 tensor:


\begin{displaymath}
\left(
\begin{array}{cccc}
1& 2& 3& 4 \\
5& 4& 3& 2 \\
8& 7& 6& 5
\end{array} \right)
\end{displaymath}

The running product of this tensor, along the horizontal dimension, is:


\begin{displaymath}
\left(
\begin{array}{cccc}
1& 2& 6& 24\\
5& 20& 60& 120\\
8& 56& 336& 1680
\end{array} \right)
\end{displaymath}