tf.keras.ops.prod

Return the product of tensor elements over a given axis.

xInput tensor.
axisAxis or axes along which a product is performed. The default, axis=None, will compute the product of all elements in the input tensor.
keepdimsIf this is set to True, the axes which are reduce are left in the result as dimensions with size one.
dtypeData type of the returned tensor.

Product of elements of x over the given axis or axes.