Computes the product of elements across dimensions of a tensor. Reduces `input_tensor` along the dimensions given in `axis`. Unless `keepdims` is true, the rank of the tensor is reduced by 1 for each entry in `axis`. If `keepdims` is true, the reduced dimensions are retained with length 1.
(input_tensor,
axis=None,
keepdims=None,
name=None,
reduction_indices=None,
keep_dims=None)
| 2005 | "keep_dims is deprecated, use keepdims instead", |
| 2006 | "keep_dims") |
| 2007 | def reduce_prod_v1(input_tensor, |
| 2008 | axis=None, |
| 2009 | keepdims=None, |
| 2010 | name=None, |
| 2011 | reduction_indices=None, |
| 2012 | keep_dims=None): |
| 2013 | """Computes the product of elements across dimensions of a tensor. |
| 2014 | |
| 2015 | Reduces `input_tensor` along the dimensions given in `axis`. |
| 2016 | Unless `keepdims` is true, the rank of the tensor is reduced by 1 for each |
| 2017 | entry in `axis`. If `keepdims` is true, the reduced dimensions |
| 2018 | are retained with length 1. |
| 2019 | |
| 2020 | If `axis` is None, all dimensions are reduced, and a |
| 2021 | tensor with a single element is returned. |
| 2022 | |
| 2023 | Args: |
| 2024 | input_tensor: The tensor to reduce. Should have numeric type. |
| 2025 | axis: The dimensions to reduce. If `None` (the default), reduces all |
| 2026 | dimensions. Must be in the range `[-rank(input_tensor), |
| 2027 | rank(input_tensor))`. |
| 2028 | keepdims: If true, retains reduced dimensions with length 1. |
| 2029 | name: A name for the operation (optional). |
| 2030 | reduction_indices: The old (deprecated) name for axis. |
| 2031 | keep_dims: Deprecated alias for `keepdims`. |
| 2032 | |
| 2033 | Returns: |
| 2034 | The reduced tensor. |
| 2035 | |
| 2036 | @compatibility(numpy) |
| 2037 | Equivalent to np.prod |
| 2038 | @end_compatibility |
| 2039 | """ |
| 2040 | axis = deprecation.deprecated_argument_lookup("axis", axis, |
| 2041 | "reduction_indices", |
| 2042 | reduction_indices) |
| 2043 | keepdims = deprecation.deprecated_argument_lookup("keepdims", keepdims, |
| 2044 | "keep_dims", keep_dims) |
| 2045 | return reduce_prod(input_tensor, axis, keepdims, name) |
| 2046 | |
| 2047 | |
| 2048 | @tf_export(v1=["math.reduce_min", "reduce_min"]) |
nothing calls this directly
no test coverage detected