Given a tensor with rank and shape stored in row-major order, compute the maximum value over a specified axis .
Input
A- input tensor stored in row-major order containing single-precision floating-point values.shape- integer array describing the dimensions of the input tensor; its length isn.n- the number of dimensions (rank) of the tensor.dim- the axis along which to reduce (0-indexed, valid in[0, n)).
Output
B- tensor containing the maximum values from reducingAalong dimensiondim.