Computes the minimum 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)
| 2050 | "keep_dims is deprecated, use keepdims instead", |
| 2051 | "keep_dims") |
| 2052 | def reduce_min_v1(input_tensor, |
| 2053 | axis=None, |
| 2054 | keepdims=None, |
| 2055 | name=None, |
| 2056 | reduction_indices=None, |
| 2057 | keep_dims=None): |
| 2058 | """Computes the minimum of elements across dimensions of a tensor. |
| 2059 | |
| 2060 | Reduces `input_tensor` along the dimensions given in `axis`. |
| 2061 | Unless `keepdims` is true, the rank of the tensor is reduced by 1 for each |
| 2062 | entry in `axis`. If `keepdims` is true, the reduced dimensions |
| 2063 | are retained with length 1. |
| 2064 | |
| 2065 | If `axis` is None, all dimensions are reduced, and a |
| 2066 | tensor with a single element is returned. |
| 2067 | |
| 2068 | Args: |
| 2069 | input_tensor: The tensor to reduce. Should have real numeric type. |
| 2070 | axis: The dimensions to reduce. If `None` (the default), reduces all |
| 2071 | dimensions. Must be in the range `[-rank(input_tensor), |
| 2072 | rank(input_tensor))`. |
| 2073 | keepdims: If true, retains reduced dimensions with length 1. |
| 2074 | name: A name for the operation (optional). |
| 2075 | reduction_indices: The old (deprecated) name for axis. |
| 2076 | keep_dims: Deprecated alias for `keepdims`. |
| 2077 | |
| 2078 | Returns: |
| 2079 | The reduced tensor. |
| 2080 | |
| 2081 | @compatibility(numpy) |
| 2082 | Equivalent to np.min |
| 2083 | @end_compatibility |
| 2084 | """ |
| 2085 | axis = deprecation.deprecated_argument_lookup("axis", axis, |
| 2086 | "reduction_indices", |
| 2087 | reduction_indices) |
| 2088 | keepdims = deprecation.deprecated_argument_lookup("keepdims", keepdims, |
| 2089 | "keep_dims", keep_dims) |
| 2090 | return reduce_min(input_tensor, axis, keepdims, name) |
| 2091 | |
| 2092 | |
| 2093 | @tf_export("math.reduce_min", "reduce_min", v1=[]) |
nothing calls this directly
no test coverage detected