Computes the maximum 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)
| 2131 | "keep_dims is deprecated, use keepdims instead", |
| 2132 | "keep_dims") |
| 2133 | def reduce_max_v1(input_tensor, |
| 2134 | axis=None, |
| 2135 | keepdims=None, |
| 2136 | name=None, |
| 2137 | reduction_indices=None, |
| 2138 | keep_dims=None): |
| 2139 | """Computes the maximum of elements across dimensions of a tensor. |
| 2140 | |
| 2141 | Reduces `input_tensor` along the dimensions given in `axis`. |
| 2142 | Unless `keepdims` is true, the rank of the tensor is reduced by 1 for each |
| 2143 | entry in `axis`. If `keepdims` is true, the reduced dimensions |
| 2144 | are retained with length 1. |
| 2145 | |
| 2146 | If `axis` is None, all dimensions are reduced, and a |
| 2147 | tensor with a single element is returned. |
| 2148 | |
| 2149 | Args: |
| 2150 | input_tensor: The tensor to reduce. Should have real numeric type. |
| 2151 | axis: The dimensions to reduce. If `None` (the default), reduces all |
| 2152 | dimensions. Must be in the range `[-rank(input_tensor), |
| 2153 | rank(input_tensor))`. |
| 2154 | keepdims: If true, retains reduced dimensions with length 1. |
| 2155 | name: A name for the operation (optional). |
| 2156 | reduction_indices: The old (deprecated) name for axis. |
| 2157 | keep_dims: Deprecated alias for `keepdims`. |
| 2158 | |
| 2159 | Returns: |
| 2160 | The reduced tensor. |
| 2161 | |
| 2162 | @compatibility(numpy) |
| 2163 | Equivalent to np.max |
| 2164 | @end_compatibility |
| 2165 | """ |
| 2166 | axis = deprecation.deprecated_argument_lookup("axis", axis, |
| 2167 | "reduction_indices", |
| 2168 | reduction_indices) |
| 2169 | keepdims = deprecation.deprecated_argument_lookup("keepdims", keepdims, |
| 2170 | "keep_dims", keep_dims) |
| 2171 | return reduce_max(input_tensor, axis, keepdims, name) |
| 2172 | |
| 2173 | |
| 2174 | @tf_export("math.reduce_max", "reduce_max", v1=[]) |
nothing calls this directly
no test coverage detected