chainer.functions.cumprod¶
-
chainer.functions.
cumprod
(x, axis=None)[source]¶ Cumulative prod of array elements over a given axis.
Parameters: - x (
Variable
ornumpy.ndarray
orcupy.ndarray
) – 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: - x (