Skip to content

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

@BruceDai

Description

@BruceDai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions