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 #511

Conversation

inexorabletash
Copy link
Member

@inexorabletash inexorabletash commented Jan 17, 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


💥 Error: 400 Bad Request 💥

PR Preview failed to build. (Last tried on Jan 17, 2024, 8:38 PM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 CSS Spec Preprocessor - CSS Spec Preprocessor is the web service used to build Bikeshed specs.

🔗 Related URL

If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

@zolkis
Copy link
Collaborator

zolkis commented Jan 17, 2024

Looks good, thanks.

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
@inexorabletash
Copy link
Member Author

Apologies, it looks like I'd pushed an incomplete version of this PR. Updated to actually update device type too.

Also, since this will conflict with #499 I'm going to close this for now and will re-open if/when that lands, so make things easier for reviewers/editors.

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
2 participants