1 /* Copyright 2019 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_DELEGATES_HEXAGON_HEXAGON_NN_INTERFACE_H_ 16 #define TENSORFLOW_LITE_DELEGATES_HEXAGON_HEXAGON_NN_INTERFACE_H_ 17 18 #include "tensorflow/lite/delegates/hexagon/hexagon_nn/hexagon_nn.h" 19 20 using hexagon_nn_config_fn = decltype(hexagon_nn_config); 21 using hexagon_nn_init_fn = decltype(hexagon_nn_init); 22 23 using hexagon_nn_set_powersave_level_fn = 24 decltype(hexagon_nn_set_powersave_level); 25 26 using hexagon_nn_set_debug_level_fn = decltype(hexagon_nn_set_debug_level); 27 28 using hexagon_nn_prepare_fn = decltype(hexagon_nn_prepare); 29 30 using hexagon_nn_append_node_fn = decltype(hexagon_nn_append_node); 31 32 using hexagon_nn_append_const_node_fn = decltype(hexagon_nn_append_const_node); 33 34 using hexagon_nn_execute_fn = decltype(hexagon_nn_execute); 35 36 using hexagon_nn_execute_new_fn = decltype(hexagon_nn_execute_new); 37 38 using hexagon_nn_teardown_fn = decltype(hexagon_nn_teardown); 39 40 using hexagon_nn_snpprint_fn = decltype(hexagon_nn_snpprint); 41 42 using hexagon_nn_getlog_fn = decltype(hexagon_nn_getlog); 43 44 using hexagon_nn_get_perfinfo_fn = decltype(hexagon_nn_get_perfinfo); 45 46 using hexagon_nn_reset_perfinfo_fn = decltype(hexagon_nn_reset_perfinfo); 47 48 using hexagon_nn_op_id_to_name_fn = decltype(hexagon_nn_op_id_to_name); 49 50 using hexagon_nn_global_teardown_fn = decltype(hexagon_nn_global_teardown); 51 52 using hexagon_nn_global_init_fn = decltype(hexagon_nn_global_init); 53 54 using hexagon_nn_is_device_supported_fn = 55 decltype(hexagon_nn_is_device_supported); 56 57 using hexagon_nn_version_fn = decltype(hexagon_nn_version); 58 59 using hexagon_nn_hexagon_interface_version_fn = 60 decltype(hexagon_nn_hexagon_interface_version); 61 62 #endif // TENSORFLOW_LITE_DELEGATES_HEXAGON_HEXAGON_NN_INTERFACE_H_ 63