Spec-Zone.ru › TensorFlow

tf.keras.ops.prod

Return the product of tensor elements over a given axis.

View aliases

Main aliases

tf.keras.ops.numpy.prod

tf.keras.ops.prod(
    x, axis=None, keepdims=False, dtype=None
)
Args
x Input tensor.
axis Axis or axes along which a product is performed. The default, axis=None, will compute the product of all elements in the input tensor.
keepdims If this is set to True, the axes which are reduce are left in the result as dimensions with size one.
dtype Data type of the returned tensor.
Returns
Product of elements of x over the given axis or axes.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/ops/prod

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API