@@ -908,8 +908,8 @@ Reductions
908
908
:Parameter: *x * - symbolic Tensor (or compatible)
909
909
:Parameter: *axis * - axis or axes along which to compute the maximum
910
910
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
911
- left in the result as dimensions with size one. With this option, the result
912
- will broadcast correctly against the original tensor.
911
+ left in the result as dimensions with size one. With this option, the result
912
+ will broadcast correctly against the original tensor.
913
913
:Returns: maximum of *x * along *axis *
914
914
915
915
axis can be:
@@ -922,8 +922,8 @@ Reductions
922
922
:Parameter: *x * - symbolic Tensor (or compatible)
923
923
:Parameter: *axis * - axis along which to compute the index of the maximum
924
924
:Parameter: *keepdims * - (boolean) If this is set to True, the axis which is reduced is
925
- left in the result as a dimension with size one. With this option, the result
926
- will broadcast correctly against the original tensor.
925
+ left in the result as a dimension with size one. With this option, the result
926
+ will broadcast correctly against the original tensor.
927
927
:Returns: the index of the maximum value along a given axis
928
928
929
929
if ``axis == None ``, `argmax ` over the flattened tensor (like NumPy)
@@ -933,8 +933,8 @@ Reductions
933
933
:Parameter: *x * - symbolic Tensor (or compatible)
934
934
:Parameter: *axis * - axis along which to compute the maximum and its index
935
935
:Parameter: *keepdims * - (boolean) If this is set to True, the axis which is reduced is
936
- left in the result as a dimension with size one. With this option, the result
937
- will broadcast correctly against the original tensor.
936
+ left in the result as a dimension with size one. With this option, the result
937
+ will broadcast correctly against the original tensor.
938
938
:Returns: the maximum value along a given axis and its index.
939
939
940
940
if ``axis == None ``, `max_and_argmax ` over the flattened tensor (like NumPy)
@@ -944,8 +944,8 @@ Reductions
944
944
:Parameter: *x * - symbolic Tensor (or compatible)
945
945
:Parameter: *axis * - axis or axes along which to compute the minimum
946
946
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
947
- left in the result as dimensions with size one. With this option, the result
948
- will broadcast correctly against the original tensor.
947
+ left in the result as dimensions with size one. With this option, the result
948
+ will broadcast correctly against the original tensor.
949
949
:Returns: minimum of *x * along *axis *
950
950
951
951
`axis ` can be:
@@ -958,8 +958,8 @@ Reductions
958
958
:Parameter: *x * - symbolic Tensor (or compatible)
959
959
:Parameter: *axis * - axis along which to compute the index of the minimum
960
960
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
961
- left in the result as dimensions with size one. With this option, the result
962
- will broadcast correctly against the original tensor.
961
+ left in the result as dimensions with size one. With this option, the result
962
+ will broadcast correctly against the original tensor.
963
963
:Returns: the index of the minimum value along a given axis
964
964
965
965
if ``axis == None ``, `argmin ` over the flattened tensor (like NumPy)
@@ -980,8 +980,8 @@ Reductions
980
980
This default dtype does _not_ depend on the value of "acc_dtype".
981
981
982
982
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
983
- left in the result as dimensions with size one. With this option, the result
984
- will broadcast correctly against the original tensor.
983
+ left in the result as dimensions with size one. With this option, the result
984
+ will broadcast correctly against the original tensor.
985
985
986
986
:Parameter: *acc_dtype * - The dtype of the internal accumulator.
987
987
If None (default), we use the dtype in the list below,
@@ -1015,8 +1015,8 @@ Reductions
1015
1015
This default dtype does _not_ depend on the value of "acc_dtype".
1016
1016
1017
1017
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
1018
- left in the result as dimensions with size one. With this option, the result
1019
- will broadcast correctly against the original tensor.
1018
+ left in the result as dimensions with size one. With this option, the result
1019
+ will broadcast correctly against the original tensor.
1020
1020
1021
1021
:Parameter: *acc_dtype * - The dtype of the internal accumulator.
1022
1022
If None (default), we use the dtype in the list below,
@@ -1031,16 +1031,16 @@ Reductions
1031
1031
as we need to handle 3 different cases: without zeros in the
1032
1032
input reduced group, with 1 zero or with more zeros.
1033
1033
1034
- This could slow you down, but more importantly, we currently
1035
- don't support the second derivative of the 3 cases. So you
1036
- cannot take the second derivative of the default prod().
1034
+ This could slow you down, but more importantly, we currently
1035
+ don't support the second derivative of the 3 cases. So you
1036
+ cannot take the second derivative of the default prod().
1037
1037
1038
- To remove the handling of the special cases of 0 and so get
1039
- some small speed up and allow second derivative set
1040
- ``no_zeros_in_inputs `` to ``True ``. It defaults to ``False ``.
1038
+ To remove the handling of the special cases of 0 and so get
1039
+ some small speed up and allow second derivative set
1040
+ ``no_zeros_in_inputs `` to ``True ``. It defaults to ``False ``.
1041
1041
1042
- **It is the user responsibility to make sure there are no zeros
1043
- in the inputs. If there are, the grad will be wrong. **
1042
+ **It is the user responsibility to make sure there are no zeros
1043
+ in the inputs. If there are, the grad will be wrong. **
1044
1044
1045
1045
:Returns: product of every term in *x * along *axis *
1046
1046
@@ -1058,13 +1058,13 @@ Reductions
1058
1058
done in float64 (acc_dtype would be float64 by default),
1059
1059
but that result will be casted back in float32.
1060
1060
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
1061
- left in the result as dimensions with size one. With this option, the result
1062
- will broadcast correctly against the original tensor.
1061
+ left in the result as dimensions with size one. With this option, the result
1062
+ will broadcast correctly against the original tensor.
1063
1063
:Parameter: *acc_dtype * - The dtype of the internal accumulator of the
1064
1064
inner summation. This will not necessarily be the dtype of the
1065
1065
output (in particular if it is a discrete (int/uint) dtype, the
1066
1066
output will be in a float type). If None, then we use the same
1067
- rules as :func: `sum() `.
1067
+ rules as :func: `sum `.
1068
1068
:Returns: mean value of *x * along *axis *
1069
1069
1070
1070
`axis ` can be:
@@ -1077,8 +1077,8 @@ Reductions
1077
1077
:Parameter: *x * - symbolic Tensor (or compatible)
1078
1078
:Parameter: *axis * - axis or axes along which to compute the variance
1079
1079
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
1080
- left in the result as dimensions with size one. With this option, the result
1081
- will broadcast correctly against the original tensor.
1080
+ left in the result as dimensions with size one. With this option, the result
1081
+ will broadcast correctly against the original tensor.
1082
1082
:Returns: variance of *x * along *axis *
1083
1083
1084
1084
`axis ` can be:
@@ -1091,8 +1091,8 @@ Reductions
1091
1091
:Parameter: *x * - symbolic Tensor (or compatible)
1092
1092
:Parameter: *axis * - axis or axes along which to compute the standard deviation
1093
1093
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
1094
- left in the result as dimensions with size one. With this option, the result
1095
- will broadcast correctly against the original tensor.
1094
+ left in the result as dimensions with size one. With this option, the result
1095
+ will broadcast correctly against the original tensor.
1096
1096
:Returns: variance of *x * along *axis *
1097
1097
1098
1098
`axis ` can be:
@@ -1105,8 +1105,8 @@ Reductions
1105
1105
:Parameter: *x * - symbolic Tensor (or compatible)
1106
1106
:Parameter: *axis * - axis or axes along which to apply 'bitwise and'
1107
1107
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
1108
- left in the result as dimensions with size one. With this option, the result
1109
- will broadcast correctly against the original tensor.
1108
+ left in the result as dimensions with size one. With this option, the result
1109
+ will broadcast correctly against the original tensor.
1110
1110
:Returns: bitwise and of *x * along *axis *
1111
1111
1112
1112
`axis ` can be:
@@ -1119,8 +1119,8 @@ Reductions
1119
1119
:Parameter: *x * - symbolic Tensor (or compatible)
1120
1120
:Parameter: *axis * - axis or axes along which to apply bitwise or
1121
1121
:Parameter: *keepdims * - (boolean) If this is set to True, the axes which are reduced are
1122
- left in the result as dimensions with size one. With this option, the result
1123
- will broadcast correctly against the original tensor.
1122
+ left in the result as dimensions with size one. With this option, the result
1123
+ will broadcast correctly against the original tensor.
1124
1124
:Returns: bitwise or of *x * along *axis *
1125
1125
1126
1126
`axis ` can be:
@@ -1745,7 +1745,7 @@ Linear Algebra
1745
1745
when indexed, so that each returned argument has the same shape.
1746
1746
The dimensions and number of the output arrays are equal to the
1747
1747
number of indexing dimensions. If the step length is not a complex
1748
- number, then the stop is not inclusive.
1748
+ number, then the stop is not inclusive.
1749
1749
1750
1750
Example:
1751
1751
0 commit comments