Skip to content

Add float16 to MLOperandType and ArrayBufferView compatibility table - #386

Merged
anssiko merged 5 commits into
mainfrom
float16
Jun 6, 2023
Merged

anssiko merged 5 commits into
mainfrom
float16

Conversation

@anssiko

@anssiko anssiko commented May 9, 2023 •

Copy link
Copy Markdown
Member

This is an update to the compatibility table to note the latest status of float16 per discussion in #373.

  • Note TC39 Float16Array proposal is WIP
  • Update issue links

(Bikeshed syntax not supported inside tables, thus plain HTML.)


Preview | Diff

@anssiko
anssiko requested review from huningxin and wchao1115 May 9, 2023 08:42

@huningxin huningxin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also document the current Uint16Array solution before Float16Array landing? Maybe do it in a separate PR, any thoughts?

@anssiko

anssiko commented May 15, 2023

Copy link
Copy Markdown
Member Author

@huningxin thanks, that's a good idea. Updated the PR to note the Float16Array emulation path that demonstrably works.

anssiko added 2 commits May 17, 2023 15:48
- Note TC39 Float16Array proposal is WIP
- Update issue links

Related #373

(Bikeshed syntax not supported inside tables, thus plain HTML.)
@anssiko

anssiko commented May 17, 2023 •

Copy link
Copy Markdown
Member Author

PR updated to reflect the Float16Array advancement to ECMA Stage 3 i.e. design finished.

(The second force-push was just to fix the commit message.)

@anssiko
anssiko requested a review from huningxin May 17, 2023 13:25
- Add {{Float16Array}} Bikeshed custom definition
- Convert the related in-spec issue into a note
- Tweak the note wording
@anssiko

anssiko commented Jun 5, 2023

Copy link
Copy Markdown
Member Author

@huningxin @wchao1115 PTAL. Please prioritize the review of this small patch.

I'd be happy for our WG to be the early adopter of Float16Array given our ECMA friends defined this in part per our request (see #373). This paves the way for other new kinds of TypedArrays in the future beneficial to ML workloads.

@huningxin huningxin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @anssiko !

Comment thread index.bs Outdated
</table>

Issue(webmachinelearning/webnn#127): clarify the usage of {{ArrayBufferView}} for {{MLOperandType/float16}}.
<p class="note">{{Float16Array}} is at <a href="https://tc39.es/process-document/">ECMA Stage 3</a> signalling its design is finished. Implementers wanting to enable this type ahead native implementations can emulate the type by passing raw bits via {{Uint16Array}}. <a href="https://github.com/webmachinelearning/webnn/issues/373">[Issue webnn#373]</a></p>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix a typo "signalling"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed in af8e9c6

@anssiko

anssiko commented Jun 6, 2023

Copy link
Copy Markdown
Member Author

With two approvals, I'll merge this PR to address our first v2 feature #373.

@anssiko
anssiko merged commit 1a308dd into main Jun 6, 2023
@anssiko
anssiko deleted the float16 branch June 6, 2023 09:13
github-actions Bot added a commit that referenced this pull request Jun 6, 2023
SHA: 1a308dd
Reason: push, by anssiko

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit to zolkis/webnn that referenced this pull request Jun 8, 2023
…at16

SHA: 1a308dd
Reason: push, by zolkis

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants