From 7506d5571a97889bb116e7c37124e8f0dac07430 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Wed, 24 Jul 2024 10:43:08 -0700 Subject: [PATCH 1/8] Editorial: Clarify reduction with empty axes and scalar input Improve the description of the reduction ops: - Give in-line definition for L1/L2. - Make "input values" slightly clearer. - Explicitly note that if the input is a scalar, so is the output. - State how the reduction function is applied for empty axes. - Standardize on "reduction operation" not "reduce operation". Fixes #740 --- index.bs | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/index.bs b/index.bs index 7bb43dc8..10c6c1a1 100644 --- a/index.bs +++ b/index.bs @@ -4934,7 +4934,8 @@ partial interface MLGraphBuilder { ### Reduction operations ### {#api-mlgraphbuilder-reduce} -Reduce the input tensor along all dimensions, or along the axes specified in the {{MLReduceOptions/axes}} array parameter. For each specified axis, the dimension with that index is reduced, i.e. the resulting tensor will not contain it, unless the {{MLReduceOptions/keepDimensions}} option is specified. The values of the resulting tensor are calculated using the specified reduction function that takes as parameters all the values across the reduced dimension. +Reduce the input tensor along all dimensions, or along the axes specified in the {{MLReduceOptions/axes}} array parameter. For each specified axis, the dimension with that index is reduced, i.e. the resulting tensor will not contain it, unless the {{MLReduceOptions/keepDimensions}} option is specified. The values of the resulting tensor are calculated using the specified reduction function that takes as parameters all the input values across the reduced dimensions. +