blob: 476a3022dc1704e71f32a46006d3dce0b7bdb23d [file] [log] [blame]
Alan Greenb9d0c832020-04-30 08:29:50 +10001// Copyright 2020 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// A simplified interface to the ML service. Used to implement the ml_cmdline
6// tool.
7
8#ifndef ML_SIMPLE_H_
9#define ML_SIMPLE_H_
10
11#include <string>
12
13namespace ml {
14namespace simple {
15
16// Result of adding two numbers
17struct AddResult {
18 std::string status;
19 double sum;
20};
21
22// Add two numbers. Returns result and a status message.
Alan Green55e16542020-05-11 14:06:46 +100023AddResult Add(double x, double y, bool use_nnapi);
Alan Greenb9d0c832020-04-30 08:29:50 +100024
25} // namespace simple
26} // namespace ml
27
28#endif // ML_SIMPLE_H_