webmachinelearning / webnn

🧠 Web Neural Network API
https://www.w3.org/TR/webnn/
Other
341 stars 42 forks source link

Handful of algorithm and convention fixes #672

Closed inexorabletash closed 1 month ago

inexorabletash commented 1 month ago

Preview | Diff

inexorabletash commented 1 month ago

Some minor fixes noted along the way. All editorial - either purely wording changes, or where the algorithm was clearly wrong but the intent was obvious. Please take a look @huningxin and @fdwr - thanks!

inexorabletash commented 1 month ago

And re: "else" vs. "otherwise" - Infra talks about this, but we also used "otherwise" at least 2x as frequently as "else".

fdwr commented 1 month ago

And re: "else" vs. "otherwise" - Infra talks about this, but we also used "otherwise" at least 2x as frequently as "else".

Ah yes, I remember those BASIC keywords well, IF, THEN, and OTHERWISE 😅... Alrighty, if our spec already uses otherwise 2x more than else, then consistency argument win.