Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wording change: Define power prefs & device type using WebIDL enums #535

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

inexorabletash
Copy link
Member

@inexorabletash inexorabletash commented Jan 27, 2024

Replace definitions for MLContext's device type and power preference which are used internally only, with the identical WebIDL-defined MLDeviceType and MLPowerPreference enums.

Fixes #497


Preview | Diff

Replace definitions for MLContext's device type and power preference
which are used internally only, with the identical WebIDL-defined
MLDeviceType and MLPowerPreference enums.

Fixes webmachinelearning#497
Copy link
Contributor

@huningxin huningxin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@anssiko anssiko left a comment

Choose a reason for hiding this comment

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

@inexorabletash thanks for putting up these "wording change" (aka editorial change) PRs than improve the readability of the spec.

Feel fee to propose clarifications to the type of change guidelines in the spirit of dogfooding. E.g. you've prefixed the PRs with a type, helpful for reviewers.

@anssiko anssiko merged commit c90bc64 into webmachinelearning:main Feb 6, 2024
1 check passed
github-actions bot added a commit that referenced this pull request Feb 6, 2024
…535)

SHA: c90bc64
Reason: push, by anssiko

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@inexorabletash inexorabletash deleted the bugfix-merge-enums branch February 6, 2024 15:37
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.

Define power preference and device type in terms of WebIDL enums
3 participants