功能:根据tensor的维度计算最大值。
input_tensor: The tensor to reduce.
axis: The dimensions to reduce. If `None` (the default),reduces all dimensions. Must be in the range `[-rank(input_tensor), rank(input_tensor))`.
keepdims: If true, retains reduced dimensions with length 1.
name: A name for the operation (optional).
reduction_indices: The old (deprecated) name for axis.
keep_dims: Deprecated alias for `keepdims`.
Returns:The reduced tensor.
网友评论