1 /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
2 
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 
7     http://www.apache.org/licenses/LICENSE-2.0
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 ==============================================================================*/
15 #ifndef TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_MINI_BENCHMARK_CALL_REGISTER_H_
16 #define TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_MINI_BENCHMARK_CALL_REGISTER_H_
17 #include "tensorflow/lite/c/common.h"
18 namespace tflite {
19 namespace acceleration {
20 namespace ops {
21 // CALL op can be used to invoke a subgraph a given number of times.
22 TfLiteRegistration* Register_CALL();
23 
24 typedef struct {
25   // Index of the subgraph that needs to be invoked.
26   // Subgraph should have batch size 1.
27   int subgraph_index;
28   // The number of times the CALL op should call the subgraph.
29   // The inputs to the call op are expected to have this value as their batch
30   // size.
31   int loop_count;
32 } TfLiteCallParams;
33 
34 }  // namespace ops
35 }  // namespace acceleration
36 }  // namespace tflite
37 #endif  // TENSORFLOW_LITE_EXPERIMENTAL_ACCELERATION_MINI_BENCHMARK_CALL_REGISTER_H_
38