Alan Green | b9d0c83 | 2020-04-30 08:29:50 +1000 | [diff] [blame] | 1 | // 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 | |
| 13 | namespace ml { |
| 14 | namespace simple { |
| 15 | |
| 16 | // Result of adding two numbers |
| 17 | struct AddResult { |
| 18 | std::string status; |
| 19 | double sum; |
| 20 | }; |
| 21 | |
| 22 | // Add two numbers. Returns result and a status message. |
Alan Green | 55e1654 | 2020-05-11 14:06:46 +1000 | [diff] [blame^] | 23 | AddResult Add(double x, double y, bool use_nnapi); |
Alan Green | b9d0c83 | 2020-04-30 08:29:50 +1000 | [diff] [blame] | 24 | |
| 25 | } // namespace simple |
| 26 | } // namespace ml |
| 27 | |
| 28 | #endif // ML_SIMPLE_H_ |