chainer.functions.cumprod¶
-
chainer.functions.cumprod(x, axis=None)[source]¶ Cumulative prod of array elements over a given axis.
- Parameters
x (
Variableor N-dimensional array) – Elements to calculate the cumulative prod.axis (int or None) – Axis along which the cumulative prod is taken. If it is not specified, the input is flattened.
- Returns
Output variable.
- Return type