Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 1 | // Copyright 2019 Google LLC |
| 2 | // |
| 3 | // This source code is licensed under the BSD-style license found in the |
| 4 | // LICENSE file in the root directory of this source tree. |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <xnnpack.h> |
| 9 | |
| 10 | #include <memory> |
| 11 | #include <vector> |
| 12 | |
| 13 | namespace models { |
| 14 | |
| 15 | typedef std::vector<std::unique_ptr<xnn_operator, decltype(&xnn_delete_operator)>> ExecutionPlan; |
Marat Dukhan | 5f18d26 | 2019-10-31 10:24:14 -0700 | [diff] [blame] | 16 | typedef ExecutionPlan (*ExecutionPlanFactory)(pthreadpool_t threadpool); |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 17 | |
Marat Dukhan | 270a2c4 | 2020-06-26 16:45:52 -0700 | [diff] [blame] | 18 | ExecutionPlan FP32MobileNetV1(pthreadpool_t threadpool); |
| 19 | ExecutionPlan FP32MobileNetV2(pthreadpool_t threadpool); |
| 20 | ExecutionPlan FP32MobileNetV3Large(pthreadpool_t threadpool); |
| 21 | ExecutionPlan FP32MobileNetV3Small(pthreadpool_t threadpool); |
| 22 | |
| 23 | ExecutionPlan FP16MobileNetV1(pthreadpool_t threadpool); |
| 24 | ExecutionPlan FP16MobileNetV2(pthreadpool_t threadpool); |
| 25 | ExecutionPlan FP16MobileNetV3Large(pthreadpool_t threadpool); |
| 26 | ExecutionPlan FP16MobileNetV3Small(pthreadpool_t threadpool); |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 27 | |
Marat Dukhan | 0743cdf | 2020-08-04 18:52:07 -0700 | [diff] [blame] | 28 | ExecutionPlan QS8MobileNetV1(pthreadpool_t threadpool); |
Marat Dukhan | 70a9618 | 2020-09-03 17:13:58 -0700 | [diff] [blame] | 29 | ExecutionPlan QS8MobileNetV2(pthreadpool_t threadpool); |
Marat Dukhan | 0743cdf | 2020-08-04 18:52:07 -0700 | [diff] [blame] | 30 | |
Marat Dukhan | c068bb6 | 2019-10-04 13:24:39 -0700 | [diff] [blame] | 31 | } // namespace models |