From 21c75c6936fd3151731fe021bab4c89c6e5b5015 Mon Sep 17 00:00:00 2001 From: Wonsuk Lee Date: Thu, 17 Feb 2022 11:00:09 +0900 Subject: [PATCH] Add 'default' option to MLDevicePreference and MLPowerPreference - To make a sync with WebNN API and to provide easy hand it needs to be added 'default' option to eum definion for MLDevicePreference, MLPowerPreference --- index.bs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.bs b/index.bs index e6c8ba0..cc60d00 100644 --- a/index.bs +++ b/index.bs @@ -40,11 +40,14 @@ API {#api} enum MLModelFormat { "tflite" }; enum MLDevicePreference { + "default", "gpu", "cpu" }; enum MLPowerPreference { + // Let the user agent select the most suitable behavior. + "default", // Prioritizes execution speed over power consumption. "high-performance", // Prioritizes power consumption over other considerations such as execution