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

Request rename MLDevicePreference to MLDeviceType to align with WebNN API #41

Open
BruceDai opened this issue Nov 9, 2022 · 0 comments

Comments

@BruceDai
Copy link

BruceDai commented Nov 9, 2022

The previous landed patch webmachinelearning/webnn#257 of WebNN API renamed MLDevicePreference to MLDeviceType with reason "rename MLDevicePreference to MLDeviceType to make it more clear that it is not merely a hint".

Current WebNN API samples is renaming MLDevicePreference to MLDeviceType by webmachinelearning/webnn-samples#150 to align latest WebNN API Spec, while device selection would not work by running Chrome with enabled enable-experimental-web-platform-features flag,

//  WebNN API code
navigator.ml.createContext({deviceType: 'cpu'})
navigator.ml.createContext({deviceType: 'gpu'})

so we request rename MLDevicePreference to MLDeviceType for Model Loader API, thanks.

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

No branches or pull requests

1 participant