summaryrefslogtreecommitdiff
path: root/chromium/chromeos/services/machine_learning/public/mojom/model.mojom
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chromeos/services/machine_learning/public/mojom/model.mojom')
-rw-r--r--chromium/chromeos/services/machine_learning/public/mojom/model.mojom12
1 files changed, 9 insertions, 3 deletions
diff --git a/chromium/chromeos/services/machine_learning/public/mojom/model.mojom b/chromium/chromeos/services/machine_learning/public/mojom/model.mojom
index 473313f085e..959ace787a9 100644
--- a/chromium/chromeos/services/machine_learning/public/mojom/model.mojom
+++ b/chromium/chromeos/services/machine_learning/public/mojom/model.mojom
@@ -15,8 +15,13 @@ import "chromeos/services/machine_learning/public/mojom/graph_executor.mojom";
enum ModelId {
UNKNOWN,
- TAB_DISCARDER,
- POWER_MANAGER
+ TEST_MODEL, // Only available in tests.
+};
+
+enum CreateGraphExecutorResult {
+ OK = 0,
+ MODEL_INTERPRETATION_ERROR,
+ MEMORY_ALLOCATION_ERROR,
};
struct ModelSpec {
@@ -27,5 +32,6 @@ struct ModelSpec {
// interface pipe. The Model interface pipe can be used to acquire multiple
// separate GraphExecutor instances.
interface Model {
- CreateGraphExecutor(GraphExecutor& request);
+ CreateGraphExecutor(GraphExecutor& request) =>
+ (CreateGraphExecutorResult result);
};