From 539db2df6c5992bf504fc402be8442bd31a97683 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Fri, 16 Feb 2024 15:59:11 -0800 Subject: [PATCH] Style: Make grouped algorithm steps consistent For operations defined in bulk - element-wise binary, unary, and logical ops, plus pooling and reduction ops - make the styling consistent: - A single
around all definitions - A separate
around each op's steps. This was already done for the element-wise ops so already the majority style. Pooling ops now have just a single "Algorithm" watermark (instead of 3), and reduction ops now have a watermark instead of none. For #450 --- index.bs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/index.bs b/index.bs index 9ca9181a..38d0b374 100644 --- a/index.bs +++ b/index.bs @@ -4487,25 +4487,27 @@ partial interface MLGraphBuilder { The following pooling algorithms are supported. -
+
+
The averagePool2d(|input|, |options|) method steps are: 1. Let |output| be the result of running the [=MLGraphBuilder/pooling-op | create pooling operation=] given "averagePool2d", |input| and |options|. 1. If that [=exception/throws=] an error, then re-[=exception/throw=] the error. 1. Return |output|. -
+
-
+
The l2Pool2d(|input|, |options|) method steps are: 1. Let |output| be the result of running the [=MLGraphBuilder/pooling-op | create pooling operation=] given "l2Pool2d", |input| and |options|. 1. If that [=exception/throws=] an error, then re-[=exception/throw=] the error. 1. Return |output|. -
+
-
+
The maxPool2d(|input|, |options|) method steps are: 1. Let |output| be the result of running the [=MLGraphBuilder/pooling-op | create pooling operation=] given "maxPool2d", |input| and |options|. 1. If that [=exception/throws=] an error, then re-[=exception/throw=] the error. 1. Return |output|. +
@@ -4656,6 +4658,7 @@ partial interface MLGraphBuilder { The following reduce algorithms are supported. +
The reduceL1(|input|, |options|) method steps are: 1. Let |output| be the result of running the [=MLGraphBuilder/reduce-op | create reduce operation=] given "reduceL1", |input| and |options|. @@ -4725,6 +4728,7 @@ partial interface MLGraphBuilder { 1. If that [=exception/throws=] an error, then re-[=exception/throw=] the error. 1. Return |output|.
+
### relu ### {#api-mlgraphbuilder-relu-method}