Rename lite/c/c_api_internal.h to lite/c/common.h

The C types in lite/c/c_api_internal.h are not actually internal,
rather, they are common types used throughout the C++ and C APIs.
Rename the header accordingly.

PiperOrigin-RevId: 282494601
Change-Id: Ia784f35724d774db256ffcbbcdc5bb00e6574417
This commit is contained in:
Jared Duke 2019-11-25 21:44:52 -08:00 committed by TensorFlower Gardener
parent f483d811f4
commit 4ce6a9b7a4
341 changed files with 568 additions and 515 deletions
tensorflow/lite
BUILDallocation.ccallocation.harena_planner.h
c
context.hcontext_util.h
core
delegates
experimental

View File

@ -58,7 +58,7 @@ cc_library(
":graph_info", ":graph_info",
":memory_planner", ":memory_planner",
":simple_memory_arena", ":simple_memory_arena",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
], ],
) )
@ -83,7 +83,7 @@ cc_library(
name = "context", name = "context",
hdrs = ["context.h"], hdrs = ["context.h"],
copts = TFLITE_DEFAULT_COPTS, copts = TFLITE_DEFAULT_COPTS,
deps = ["//tensorflow/lite/c:c_api_internal"], deps = ["//tensorflow/lite/c:common"],
) )
cc_library( cc_library(
@ -92,7 +92,7 @@ cc_library(
hdrs = ["external_cpu_backend_context.h"], hdrs = ["external_cpu_backend_context.h"],
copts = TFLITE_DEFAULT_COPTS, copts = TFLITE_DEFAULT_COPTS,
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
], ],
) )
@ -100,14 +100,14 @@ cc_library(
name = "graph_info", name = "graph_info",
hdrs = ["graph_info.h"], hdrs = ["graph_info.h"],
copts = TFLITE_DEFAULT_COPTS, copts = TFLITE_DEFAULT_COPTS,
deps = ["//tensorflow/lite/c:c_api_internal"], deps = ["//tensorflow/lite/c:common"],
) )
cc_library( cc_library(
name = "memory_planner", name = "memory_planner",
hdrs = ["memory_planner.h"], hdrs = ["memory_planner.h"],
copts = TFLITE_DEFAULT_COPTS, copts = TFLITE_DEFAULT_COPTS,
deps = ["//tensorflow/lite/c:c_api_internal"], deps = ["//tensorflow/lite/c:common"],
) )
cc_library( cc_library(
@ -115,7 +115,7 @@ cc_library(
srcs = ["simple_memory_arena.cc"], srcs = ["simple_memory_arena.cc"],
hdrs = ["simple_memory_arena.h"], hdrs = ["simple_memory_arena.h"],
copts = TFLITE_DEFAULT_COPTS, copts = TFLITE_DEFAULT_COPTS,
deps = ["//tensorflow/lite/c:c_api_internal"], deps = ["//tensorflow/lite/c:common"],
) )
cc_library( cc_library(
@ -123,7 +123,7 @@ cc_library(
hdrs = [ hdrs = [
"builtin_op_data.h", "builtin_op_data.h",
], ],
deps = ["//tensorflow/lite/c:c_api_internal"], deps = ["//tensorflow/lite/c:common"],
) )
cc_library( cc_library(
@ -133,7 +133,7 @@ cc_library(
"builtin_ops.h", "builtin_ops.h",
"context_util.h", "context_util.h",
], ],
deps = ["//tensorflow/lite/c:c_api_internal"], deps = ["//tensorflow/lite/c:common"],
) )
exports_files(["builtin_ops.h"]) exports_files(["builtin_ops.h"])
@ -168,7 +168,7 @@ cc_library(
deps = [ deps = [
":simple_memory_arena", ":simple_memory_arena",
":string", ":string",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/core/api", "//tensorflow/lite/core/api",
], ],
) )
@ -212,7 +212,7 @@ cc_library(
":type_to_tflitetype", ":type_to_tflitetype",
":util", ":util",
":version", ":version",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/core/api", "//tensorflow/lite/core/api",
"//tensorflow/lite/delegates/nnapi:nnapi_delegate", "//tensorflow/lite/delegates/nnapi:nnapi_delegate",
"//tensorflow/lite/experimental/resource", "//tensorflow/lite/experimental/resource",
@ -229,7 +229,7 @@ cc_library(
copts = TFLITE_DEFAULT_COPTS, copts = TFLITE_DEFAULT_COPTS,
deps = [ deps = [
":string", ":string",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
], ],
) )
@ -244,7 +244,7 @@ cc_test(
deps = [ deps = [
":framework", ":framework",
":string_util", ":string_util",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/testing:util", "//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],
@ -380,7 +380,7 @@ cc_library(
hdrs = ["util.h"], hdrs = ["util.h"],
copts = TFLITE_DEFAULT_COPTS + tflite_copts(), copts = TFLITE_DEFAULT_COPTS + tflite_copts(),
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/schema:schema_fbs", "//tensorflow/lite/schema:schema_fbs",
], ],
) )
@ -395,7 +395,7 @@ cc_test(
], ],
deps = [ deps = [
":util", ":util",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],
) )
@ -429,7 +429,7 @@ cc_library(
cc_library( cc_library(
name = "type_to_tflitetype", name = "type_to_tflitetype",
hdrs = ["type_to_tflitetype.h"], hdrs = ["type_to_tflitetype.h"],
deps = ["//tensorflow/lite/c:c_api_internal"], deps = ["//tensorflow/lite/c:common"],
) )
cc_test( cc_test(

View File

@ -25,7 +25,7 @@ limitations under the License.
#include <cstring> #include <cstring>
#include <utility> #include <utility>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/api/error_reporter.h" #include "tensorflow/lite/core/api/error_reporter.h"
namespace tflite { namespace tflite {

View File

@ -21,7 +21,7 @@ limitations under the License.
#include <cstdlib> #include <cstdlib>
#include <vector> #include <vector>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/api/error_reporter.h" #include "tensorflow/lite/core/api/error_reporter.h"
#include "tensorflow/lite/simple_memory_arena.h" #include "tensorflow/lite/simple_memory_arena.h"
#include "tensorflow/lite/string_type.h" #include "tensorflow/lite/string_type.h"

View File

@ -19,7 +19,7 @@ limitations under the License.
#include <memory> #include <memory>
#include <vector> #include <vector>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/graph_info.h" #include "tensorflow/lite/graph_info.h"
#include "tensorflow/lite/memory_planner.h" #include "tensorflow/lite/memory_planner.h"
#include "tensorflow/lite/simple_memory_arena.h" #include "tensorflow/lite/simple_memory_arena.h"

View File

@ -4,11 +4,11 @@ package(
) )
cc_library( cc_library(
name = "c_api_internal", name = "common",
srcs = ["c_api_internal.c"], srcs = ["common.c"],
hdrs = [ hdrs = [
"builtin_op_data.h", "builtin_op_data.h",
"c_api_internal.h", "common.h",
], ],
visibility = [ visibility = [
"//tensorflow/lite:__subpackages__", "//tensorflow/lite:__subpackages__",
@ -16,15 +16,15 @@ cc_library(
) )
# For use with library targets that can't use relative paths. # For use with library targets that can't use relative paths.
exports_files(["c_api_internal.h"]) exports_files(["common.h"])
# Test the C extension API code. # Test the C extension API code.
cc_test( cc_test(
name = "c_api_internal_test", name = "common_test",
size = "small", size = "small",
srcs = ["c_api_internal_test.cc"], srcs = ["common_test.cc"],
deps = [ deps = [
":c_api_internal", ":common",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],
) )
@ -35,7 +35,7 @@ cc_test(
srcs = ["builtin_op_data_test.cc"], srcs = ["builtin_op_data_test.cc"],
copts = ["-Wno-unused-variable"], copts = ["-Wno-unused-variable"],
deps = [ deps = [
":c_api_internal", ":common",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],
) )

View File

@ -17,7 +17,7 @@ limitations under the License.
#include <stdint.h> #include <stdint.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -1,4 +1,4 @@
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#ifndef TF_LITE_STATIC_MEMORY #ifndef TF_LITE_STATIC_MEMORY
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -1,4 +1,4 @@
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -12,9 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
// This file defines a C API for implementing operations in tflite.
// These operations can be defined using c++ but the interface between // This file defines common C types and APIs for implementing operations,
// the interpreter and the operations are C. // delegates and other constructs in TensorFlow Lite. The actual operations and
// delegtes can be defined using C++, but the interface between the interpreter
// and the operations are C.
// //
// Summary of abstractions // Summary of abstractions
// TF_LITE_ENSURE - Self-sufficient error checking // TF_LITE_ENSURE - Self-sufficient error checking
@ -24,10 +26,12 @@ limitations under the License.
// TfLiteTensor - tensor (a multidimensional array) // TfLiteTensor - tensor (a multidimensional array)
// TfLiteNode - a single node or operation // TfLiteNode - a single node or operation
// TfLiteRegistration - the implementation of a conceptual operation. // TfLiteRegistration - the implementation of a conceptual operation.
// TfLiteDelegate - allows delegation of nodes to alternative backends.
// //
// Some abstractions in this file are created and managed by Interpreter. // Some abstractions in this file are created and managed by Interpreter.
#ifndef TENSORFLOW_LITE_C_C_API_INTERNAL_H_
#define TENSORFLOW_LITE_C_C_API_INTERNAL_H_ #ifndef TENSORFLOW_LITE_C_COMMON_H_
#define TENSORFLOW_LITE_C_COMMON_H_
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
@ -666,4 +670,4 @@ typedef struct {
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif // __cplusplus #endif // __cplusplus
#endif // TENSORFLOW_LITE_C_C_API_INTERNAL_H_ #endif // TENSORFLOW_LITE_C_COMMON_H_

View File

@ -13,13 +13,14 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include <gtest/gtest.h> #include <gtest/gtest.h>
namespace tflite { namespace tflite {
// NOTE: this tests only the TfLiteIntArray part of context. // NOTE: this tests only the TfLiteIntArray part of context.
// most of c_api_internal.h is provided in the context of using it with // most of common.h is provided in the context of using it with
// interpreter.h and interpreter.cc, so interpreter_test.cc tests context // interpreter.h and interpreter.cc, so interpreter_test.cc tests context
// structures more thoroughly. // structures more thoroughly.

View File

@ -16,6 +16,6 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_CONTEXT_H_ #ifndef TENSORFLOW_LITE_CONTEXT_H_
#define TENSORFLOW_LITE_CONTEXT_H_ #define TENSORFLOW_LITE_CONTEXT_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#endif // TENSORFLOW_LITE_CONTEXT_H_ #endif // TENSORFLOW_LITE_CONTEXT_H_

View File

@ -17,7 +17,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_CONTEXT_UTIL_H_ #ifndef TENSORFLOW_LITE_CONTEXT_UTIL_H_
#define TENSORFLOW_LITE_CONTEXT_UTIL_H_ #define TENSORFLOW_LITE_CONTEXT_UTIL_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {

View File

@ -22,7 +22,7 @@ cc_library(
], ],
copts = tflite_copts(), copts = tflite_copts(),
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/schema:schema_fbs", "//tensorflow/lite/schema:schema_fbs",
], ],
) )
@ -54,7 +54,7 @@ cc_test(
deps = [ deps = [
":api", ":api",
"//tensorflow/lite:string", "//tensorflow/lite:string",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],
) )

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <cstdlib> #include <cstdlib>
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/schema/schema_generated.h" #include "tensorflow/lite/schema/schema_generated.h"
namespace tflite { namespace tflite {

View File

@ -19,7 +19,7 @@ limitations under the License.
// flatbuffer serialization format into in-memory values that are used by the // flatbuffer serialization format into in-memory values that are used by the
// runtime API and interpreter. // runtime API and interpreter.
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/api/error_reporter.h" #include "tensorflow/lite/core/api/error_reporter.h"
#include "tensorflow/lite/core/api/op_resolver.h" #include "tensorflow/lite/core/api/op_resolver.h"
#include "tensorflow/lite/schema/schema_generated.h" #include "tensorflow/lite/schema/schema_generated.h"

View File

@ -15,7 +15,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_CORE_API_OP_RESOLVER_H_ #ifndef TENSORFLOW_LITE_CORE_API_OP_RESOLVER_H_
#define TENSORFLOW_LITE_CORE_API_OP_RESOLVER_H_ #define TENSORFLOW_LITE_CORE_API_OP_RESOLVER_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/api/error_reporter.h" #include "tensorflow/lite/core/api/error_reporter.h"
#include "tensorflow/lite/schema/schema_generated.h" #include "tensorflow/lite/schema/schema_generated.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_CORE_API_TENSOR_UTILS_H_ #ifndef TENSORFLOW_LITE_CORE_API_TENSOR_UTILS_H_
#define TENSORFLOW_LITE_CORE_API_TENSOR_UTILS_H_ #define TENSORFLOW_LITE_CORE_API_TENSOR_UTILS_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <algorithm> #include <algorithm>
#include "tensorflow/lite/arena_planner.h" #include "tensorflow/lite/arena_planner.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/context_util.h" #include "tensorflow/lite/context_util.h"
#include "tensorflow/lite/core/api/tensor_utils.h" #include "tensorflow/lite/core/api/tensor_utils.h"
#include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h" #include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h"

View File

@ -21,7 +21,7 @@ limitations under the License.
#include <vector> #include <vector>
#include "tensorflow/lite/allocation.h" #include "tensorflow/lite/allocation.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/api/profiler.h" #include "tensorflow/lite/core/api/profiler.h"
#include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h" #include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h"
#include "tensorflow/lite/experimental/resource/resource_base.h" #include "tensorflow/lite/experimental/resource/resource_base.h"

View File

@ -26,7 +26,7 @@ cc_library(
hdrs = ["utils.h"], hdrs = ["utils.h"],
copts = tflite_copts(), copts = tflite_copts(),
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
], ],
) )
@ -37,7 +37,7 @@ cc_test(
linkstatic = 1, linkstatic = 1,
deps = [ deps = [
":utils", ":utils",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",
], ],
) )

View File

@ -17,7 +17,7 @@ cc_library(
hdrs = ["buffer_map.h"], hdrs = ["buffer_map.h"],
deps = [ deps = [
":util", ":util",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite:string", "//tensorflow/lite:string",
"//tensorflow/lite:string_util", "//tensorflow/lite:string_util",
] + select({ ] + select({
@ -69,7 +69,7 @@ cc_library(
], ],
"//conditions:default": [ "//conditions:default": [
"//tensorflow/core:tensorflow", "//tensorflow/core:tensorflow",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
], ],
}), }),
alwayslink = 1, alwayslink = 1,
@ -92,7 +92,7 @@ cc_library(
":kernel", ":kernel",
":util", ":util",
"@com_google_absl//absl/strings:strings", "@com_google_absl//absl/strings:strings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite:minimal_logging", "//tensorflow/lite:minimal_logging",
"//tensorflow/lite:string_util", "//tensorflow/lite:string_util",
@ -154,7 +154,7 @@ tf_cc_test(
":delegate_data", ":delegate_data",
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite:util", "//tensorflow/lite:util",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/testing:util", "//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],
@ -169,7 +169,7 @@ cc_library(
":util", ":util",
"@flatbuffers", "@flatbuffers",
"//tensorflow/lite/core/api", "//tensorflow/lite/core/api",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite:string", "//tensorflow/lite:string",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
@ -236,7 +236,7 @@ cc_library(
srcs = ["util.cc"], srcs = ["util.cc"],
hdrs = ["util.h"], hdrs = ["util.h"],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
] + select({ ] + select({
"//tensorflow:android": [ "//tensorflow:android": [

View File

@ -17,8 +17,8 @@ limitations under the License.
#include <map> #include <map>
#include "tensorflow/lite/c/c_api_internal.h"
#include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor.h"
#include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {
namespace flex { namespace flex {

View File

@ -15,7 +15,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_H_ #ifndef TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_H_
#define TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_H_ #define TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/delegates/flex/delegate_data.h" #include "tensorflow/lite/delegates/flex/delegate_data.h"
namespace tflite { namespace tflite {

View File

@ -16,7 +16,7 @@ limitations under the License.
#include <gmock/gmock.h> #include <gmock/gmock.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/testing/util.h" #include "tensorflow/lite/testing/util.h"
namespace tflite { namespace tflite {

View File

@ -22,7 +22,7 @@ limitations under the License.
#include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/node_def_util.h"
#include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/lite/builtin_ops.h" #include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/context_util.h" #include "tensorflow/lite/context_util.h"
#include "tensorflow/lite/core/api/profiler.h" #include "tensorflow/lite/core/api/profiler.h"
#include "tensorflow/lite/delegates/flex/delegate_data.h" #include "tensorflow/lite/delegates/flex/delegate_data.h"

View File

@ -15,7 +15,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_DELEGATES_FLEX_KERNEL_H_ #ifndef TENSORFLOW_LITE_DELEGATES_FLEX_KERNEL_H_
#define TENSORFLOW_LITE_DELEGATES_FLEX_KERNEL_H_ #define TENSORFLOW_LITE_DELEGATES_FLEX_KERNEL_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {
namespace flex { namespace flex {

View File

@ -16,9 +16,9 @@ limitations under the License.
#define TENSORFLOW_LITE_DELEGATES_FLEX_UTIL_H_ #define TENSORFLOW_LITE_DELEGATES_FLEX_UTIL_H_
#include "tensorflow/c/c_api_internal.h" #include "tensorflow/c/c_api_internal.h"
#include "tensorflow/lite/c/c_api_internal.h"
#include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/lib/core/status.h"
#include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {
namespace flex { namespace flex {

View File

@ -40,7 +40,7 @@ cc_library(
"@com_google_absl//absl/types:span", "@com_google_absl//absl/types:span",
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite:minimal_logging", "//tensorflow/lite:minimal_logging",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/delegates/gpu/common:convert", "//tensorflow/lite/delegates/gpu/common:convert",
"//tensorflow/lite/delegates/gpu/common:model", "//tensorflow/lite/delegates/gpu/common:model",
"//tensorflow/lite/delegates/gpu/common:model_builder", "//tensorflow/lite/delegates/gpu/common:model_builder",
@ -79,7 +79,7 @@ objc_library(
deps = [ deps = [
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite:minimal_logging", "//tensorflow/lite:minimal_logging",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/delegates/gpu/common:convert", "//tensorflow/lite/delegates/gpu/common:convert",
"//tensorflow/lite/delegates/gpu/common:model", "//tensorflow/lite/delegates/gpu/common:model",
"//tensorflow/lite/delegates/gpu/common:model_builder", "//tensorflow/lite/delegates/gpu/common:model_builder",
@ -198,7 +198,7 @@ cc_library(
deps = [ deps = [
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite:minimal_logging", "//tensorflow/lite:minimal_logging",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/delegates/gpu:api", "//tensorflow/lite/delegates/gpu:api",
"//tensorflow/lite/delegates/gpu/cl:api", "//tensorflow/lite/delegates/gpu/cl:api",
"//tensorflow/lite/delegates/gpu/cl:opencl_wrapper", "//tensorflow/lite/delegates/gpu/cl:opencl_wrapper",

View File

@ -270,7 +270,7 @@ cc_library(
":opencl_wrapper", ":opencl_wrapper",
":tensor_type_util", ":tensor_type_util",
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/delegates/gpu:api", "//tensorflow/lite/delegates/gpu:api",
"//tensorflow/lite/delegates/gpu:delegate", "//tensorflow/lite/delegates/gpu:delegate",
"//tensorflow/lite/delegates/gpu/common:model", "//tensorflow/lite/delegates/gpu/common:model",

View File

@ -20,7 +20,7 @@ limitations under the License.
#include <EGL/egl.h> #include <EGL/egl.h>
#include <GLES3/gl31.h> #include <GLES3/gl31.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/delegates/gpu/delegate.h" #include "tensorflow/lite/delegates/gpu/delegate.h"
#ifdef SWIG #ifdef SWIG

View File

@ -105,7 +105,7 @@ cc_library(
"//tensorflow/lite:context", "//tensorflow/lite:context",
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite:util", "//tensorflow/lite:util",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/schema:schema_fbs", "//tensorflow/lite/schema:schema_fbs",
"@FP16", "@FP16",
@ -122,7 +122,7 @@ cc_test(
":model_builder", ":model_builder",
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"@com_google_googletest//:gtest_main", "@com_google_googletest//:gtest_main",
], ],
) )

View File

@ -34,7 +34,7 @@ limitations under the License.
#include "tensorflow/lite/builtin_op_data.h" #include "tensorflow/lite/builtin_op_data.h"
#include "tensorflow/lite/builtin_ops.h" #include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/context.h" #include "tensorflow/lite/context.h"
#include "tensorflow/lite/delegates/gpu/common/data_type.h" #include "tensorflow/lite/delegates/gpu/common/data_type.h"
#include "tensorflow/lite/delegates/gpu/common/model.h" #include "tensorflow/lite/delegates/gpu/common/model.h"

View File

@ -20,7 +20,7 @@ limitations under the License.
#include <gmock/gmock.h> #include <gmock/gmock.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "tensorflow/lite/builtin_ops.h" #include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/subgraph.h" #include "tensorflow/lite/core/subgraph.h"
#include "tensorflow/lite/interpreter.h" #include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/stderr_reporter.h" #include "tensorflow/lite/stderr_reporter.h"

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <stdint.h> #include <stdint.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#ifdef SWIG #ifdef SWIG
#define TFL_CAPI_EXPORT #define TFL_CAPI_EXPORT

View File

@ -26,7 +26,7 @@ limitations under the License.
#include <GLES3/gl31.h> #include <GLES3/gl31.h>
#include "absl/types/span.h" #include "absl/types/span.h"
#include "tensorflow/lite/builtin_ops.h" #include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/delegates/gpu/common/convert.h" #include "tensorflow/lite/delegates/gpu/common/convert.h"
#include "tensorflow/lite/delegates/gpu/common/model.h" #include "tensorflow/lite/delegates/gpu/common/model.h"
#include "tensorflow/lite/delegates/gpu/common/model_builder.h" #include "tensorflow/lite/delegates/gpu/common/model_builder.h"

View File

@ -19,7 +19,7 @@ limitations under the License.
#include <stdint.h> #include <stdint.h>
#include <GLES3/gl31.h> #include <GLES3/gl31.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#ifdef SWIG #ifdef SWIG
#define TFL_CAPI_EXPORT #define TFL_CAPI_EXPORT

View File

@ -28,7 +28,7 @@ limitations under the License.
#include "absl/types/span.h" #include "absl/types/span.h"
#include "tensorflow/lite/builtin_ops.h" #include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/delegates/gpu/common/convert.h" #include "tensorflow/lite/delegates/gpu/common/convert.h"
#include "tensorflow/lite/delegates/gpu/common/model.h" #include "tensorflow/lite/delegates/gpu/common/model.h"
#include "tensorflow/lite/delegates/gpu/common/model_builder.h" #include "tensorflow/lite/delegates/gpu/common/model_builder.h"

View File

@ -31,7 +31,7 @@ cc_library(
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite:minimal_logging", "//tensorflow/lite:minimal_logging",
"//tensorflow/lite:util", "//tensorflow/lite:util",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/nnapi:nnapi_implementation", "//tensorflow/lite/nnapi:nnapi_implementation",
"//tensorflow/lite/nnapi:nnapi_util", "//tensorflow/lite/nnapi:nnapi_util",
@ -63,7 +63,7 @@ cc_library(
"//tensorflow/lite:kernel_api", "//tensorflow/lite:kernel_api",
"//tensorflow/lite:minimal_logging", "//tensorflow/lite:minimal_logging",
"//tensorflow/lite:util", "//tensorflow/lite:util",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/nnapi:nnapi_implementation", "//tensorflow/lite/nnapi:nnapi_implementation",
"//tensorflow/lite/nnapi:nnapi_util", "//tensorflow/lite/nnapi:nnapi_util",
@ -124,7 +124,7 @@ cc_test(
":nnapi_delegate_mock_test", ":nnapi_delegate_mock_test",
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite:minimal_logging", "//tensorflow/lite:minimal_logging",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:test_util", "//tensorflow/lite/kernels:test_util",
"//tensorflow/lite/nnapi:nnapi_implementation", "//tensorflow/lite/nnapi:nnapi_implementation",
"//tensorflow/lite/nnapi:nnapi_lib", "//tensorflow/lite/nnapi:nnapi_lib",
@ -148,7 +148,7 @@ cc_test(
":nnapi_delegate_mock_test", ":nnapi_delegate_mock_test",
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite:minimal_logging", "//tensorflow/lite:minimal_logging",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:test_util", "//tensorflow/lite/kernels:test_util",
"//tensorflow/lite/nnapi:nnapi_implementation", "//tensorflow/lite/nnapi:nnapi_implementation",
"//tensorflow/lite/nnapi:nnapi_lib", "//tensorflow/lite/nnapi:nnapi_lib",
@ -167,7 +167,7 @@ cc_test(
deps = [ deps = [
":nnapi_delegate", ":nnapi_delegate",
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/testing:util", "//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",

View File

@ -44,7 +44,7 @@ limitations under the License.
#include "tensorflow/lite/builtin_op_data.h" #include "tensorflow/lite/builtin_op_data.h"
#include "tensorflow/lite/builtin_ops.h" #include "tensorflow/lite/builtin_ops.h"
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/context_util.h" #include "tensorflow/lite/context_util.h"
#include "tensorflow/lite/delegates/nnapi/nnapi_delegate_kernel.h" #include "tensorflow/lite/delegates/nnapi/nnapi_delegate_kernel.h"
#include "tensorflow/lite/delegates/nnapi/quant_lstm_sup.h" #include "tensorflow/lite/delegates/nnapi/quant_lstm_sup.h"

View File

@ -19,7 +19,7 @@ limitations under the License.
#include <string> #include <string>
#include <vector> #include <vector>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
typedef struct ANeuralNetworksMemory ANeuralNetworksMemory; typedef struct ANeuralNetworksMemory ANeuralNetworksMemory;

View File

@ -15,7 +15,7 @@ limitations under the License.
#include <sys/mman.h> #include <sys/mman.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h" #include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h"
#include "tensorflow/lite/delegates/nnapi/nnapi_delegate_mock_test.h" #include "tensorflow/lite/delegates/nnapi/nnapi_delegate_mock_test.h"
#include "tensorflow/lite/interpreter.h" #include "tensorflow/lite/interpreter.h"

View File

@ -20,7 +20,7 @@ limitations under the License.
#include <memory> #include <memory>
#include "tensorflow/lite/allocation.h" #include "tensorflow/lite/allocation.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h" #include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h"
#include "tensorflow/lite/nnapi/nnapi_implementation.h" #include "tensorflow/lite/nnapi/nnapi_implementation.h"

View File

@ -17,7 +17,7 @@ limitations under the License.
#include <sys/mman.h> #include <sys/mman.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/interpreter.h" #include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/kernels/test_util.h" #include "tensorflow/lite/kernels/test_util.h"
#include "tensorflow/lite/minimal_logging.h" #include "tensorflow/lite/minimal_logging.h"

View File

@ -17,7 +17,7 @@ limitations under the License.
#include <vector> #include <vector>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {
namespace delegate { namespace delegate {

View File

@ -21,7 +21,7 @@ limitations under the License.
#include <gmock/gmock.h> #include <gmock/gmock.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/testing/util.h" #include "tensorflow/lite/testing/util.h"
namespace { namespace {

View File

@ -17,7 +17,7 @@ limitations under the License.
#include <algorithm> #include <algorithm>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {
namespace delegates { namespace delegates {

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <vector> #include <vector>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {
namespace delegates { namespace delegates {

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <gmock/gmock.h> #include <gmock/gmock.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
namespace tflite { namespace tflite {
namespace delegates { namespace delegates {

View File

@ -51,7 +51,7 @@ cc_library(
], ],
deps = [ deps = [
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
], ],
) )
@ -70,7 +70,7 @@ cc_library(
":c_api_internal", ":c_api_internal",
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite:version", "//tensorflow/lite:version",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:builtin_ops", "//tensorflow/lite/kernels:builtin_ops",
], ],
alwayslink = 1, alwayslink = 1,
@ -99,7 +99,7 @@ cc_test(
], ],
deps = [ deps = [
":c_api", ":c_api",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/testing:util", "//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest", "@com_google_googletest//:gtest",
], ],

View File

@ -1,4 +1,4 @@
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -12,9 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
// This file defines a C API for implementing operations in tflite.
// These operations can be defined using c++ but the interface between // This file defines common C types and APIs for implementing operations,
// the interpreter and the operations are C. // delegates and other constructs in TensorFlow Lite. The actual operations and
// delegtes can be defined using C++, but the interface between the interpreter
// and the operations are C.
// //
// Summary of abstractions // Summary of abstractions
// TF_LITE_ENSURE - Self-sufficient error checking // TF_LITE_ENSURE - Self-sufficient error checking
@ -24,10 +26,12 @@ limitations under the License.
// TfLiteTensor - tensor (a multidimensional array) // TfLiteTensor - tensor (a multidimensional array)
// TfLiteNode - a single node or operation // TfLiteNode - a single node or operation
// TfLiteRegistration - the implementation of a conceptual operation. // TfLiteRegistration - the implementation of a conceptual operation.
// TfLiteDelegate - allows delegation of nodes to alternative backends.
// //
// Some abstractions in this file are created and managed by Interpreter. // Some abstractions in this file are created and managed by Interpreter.
#ifndef TENSORFLOW_LITE_C_C_API_INTERNAL_H_
#define TENSORFLOW_LITE_C_C_API_INTERNAL_H_ #ifndef TENSORFLOW_LITE_C_COMMON_H_
#define TENSORFLOW_LITE_C_COMMON_H_
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
@ -666,4 +670,4 @@ typedef struct {
#ifdef __cplusplus #ifdef __cplusplus
} // extern "C" } // extern "C"
#endif // __cplusplus #endif // __cplusplus
#endif // TENSORFLOW_LITE_C_C_API_INTERNAL_H_ #endif // TENSORFLOW_LITE_C_COMMON_H_

View File

@ -51,7 +51,7 @@ cc_library(
deps = [ deps = [
":ctc_utils", ":ctc_utils",
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/kernels:op_macros", "//tensorflow/lite/kernels:op_macros",
"//tensorflow/lite/kernels/internal:optimized", "//tensorflow/lite/kernels/internal:optimized",
@ -104,7 +104,7 @@ cc_library(
deps = [ deps = [
":gru_cell", ":gru_cell",
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/kernels:cpu_backend_context", "//tensorflow/lite/kernels:cpu_backend_context",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/kernels:op_macros", "//tensorflow/lite/kernels:op_macros",
@ -136,7 +136,7 @@ cc_library(
], ],
deps = [ deps = [
"//tensorflow/lite:framework", "//tensorflow/lite:framework",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/resource", "//tensorflow/lite/experimental/resource",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/kernels:op_macros", "//tensorflow/lite/kernels:op_macros",

View File

@ -13,8 +13,9 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include <vector> #include <vector>
#include "flatbuffers/flexbuffers.h" // TF:flatbuffers #include "flatbuffers/flexbuffers.h" // TF:flatbuffers
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/kernels/ctc_beam_search.h" #include "tensorflow/lite/experimental/kernels/ctc_beam_search.h"
#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" #include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h"
#include "tensorflow/lite/kernels/internal/tensor.h" #include "tensorflow/lite/kernels/internal/tensor.h"

View File

@ -15,7 +15,7 @@ limitations under the License.
#include <string> #include <string>
#include "flatbuffers/flexbuffers.h" // TF:flatbuffers #include "flatbuffers/flexbuffers.h" // TF:flatbuffers
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/subgraph.h" #include "tensorflow/lite/core/subgraph.h"
#include "tensorflow/lite/experimental/resource/lookup_interfaces.h" #include "tensorflow/lite/experimental/resource/lookup_interfaces.h"
#include "tensorflow/lite/kernels/kernel_util.h" #include "tensorflow/lite/kernels/kernel_util.h"

View File

@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/subgraph.h" #include "tensorflow/lite/core/subgraph.h"
#include "tensorflow/lite/experimental/resource/lookup_interfaces.h" #include "tensorflow/lite/experimental/resource/lookup_interfaces.h"
#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" #include "tensorflow/lite/kernels/internal/tensor_ctypes.h"

View File

@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/subgraph.h" #include "tensorflow/lite/core/subgraph.h"
#include "tensorflow/lite/experimental/resource/lookup_interfaces.h" #include "tensorflow/lite/experimental/resource/lookup_interfaces.h"
#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" #include "tensorflow/lite/kernels/internal/tensor_ctypes.h"

View File

@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/core/subgraph.h" #include "tensorflow/lite/core/subgraph.h"
#include "tensorflow/lite/experimental/resource/lookup_interfaces.h" #include "tensorflow/lite/experimental/resource/lookup_interfaces.h"
#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" #include "tensorflow/lite/kernels/internal/tensor_ctypes.h"

View File

@ -15,7 +15,7 @@ limitations under the License.
#include <limits> #include <limits>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/kernels/gru_cell.h" #include "tensorflow/lite/experimental/kernels/gru_cell.h"
#include "tensorflow/lite/kernels/cpu_backend_context.h" #include "tensorflow/lite/kernels/cpu_backend_context.h"
#include "tensorflow/lite/kernels/internal/tensor.h" #include "tensorflow/lite/kernels/internal/tensor.h"

View File

@ -43,7 +43,7 @@ cc_library(
deps = [ deps = [
":micro_utils", ":micro_utils",
"//tensorflow/lite:type_to_tflitetype", "//tensorflow/lite:type_to_tflitetype",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/core/api", "//tensorflow/lite/core/api",
"//tensorflow/lite/experimental/micro/memory_planner:greedy_memory_planner", "//tensorflow/lite/experimental/micro/memory_planner:greedy_memory_planner",
"//tensorflow/lite/kernels/internal:tensor", "//tensorflow/lite/kernels/internal:tensor",
@ -60,7 +60,7 @@ cc_library(
"micro_utils.h", "micro_utils.h",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
], ],
) )

View File

@ -42,7 +42,7 @@ cc_library(
"output_handler.h", "output_handler.h",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
], ],
) )

View File

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
// #include "tensorflow/lite/c/c_api_internal.h" // #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/hello_world/sine_model_data.h" #include "tensorflow/lite/experimental/micro/examples/hello_world/sine_model_data.h"
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" #include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_HELLO_WORLD_OUTPUT_HANDLER_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_HELLO_WORLD_OUTPUT_HANDLER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_HELLO_WORLD_OUTPUT_HANDLER_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_HELLO_WORLD_OUTPUT_HANDLER_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
// Called by the main loop to produce some output based on the x and y values // Called by the main loop to produce some output based on the x and y values

View File

@ -68,7 +68,7 @@ cc_library(
"accelerometer_handler.h", "accelerometer_handler.h",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
], ],
) )
@ -80,7 +80,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":accelerometer_handler", ":accelerometer_handler",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -121,7 +121,7 @@ cc_library(
"output_handler.h", "output_handler.h",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
], ],
) )
@ -133,7 +133,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":output_handler", ":output_handler",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],

View File

@ -18,7 +18,7 @@ limitations under the License.
#define kChannelNumber 3 #define kChannelNumber 3
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
extern int begin_index; extern int begin_index;

View File

@ -17,7 +17,7 @@ limitations under the License.
#include <string.h> #include <string.h>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MAGIC_WAND_OUTPUT_HANDLER_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MAGIC_WAND_OUTPUT_HANDLER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MAGIC_WAND_OUTPUT_HANDLER_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MAGIC_WAND_OUTPUT_HANDLER_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
void HandleOutput(tflite::ErrorReporter* error_reporter, int kind); void HandleOutput(tflite::ErrorReporter* error_reporter, int kind);

View File

@ -106,7 +106,7 @@ cc_library(
], ],
deps = [ deps = [
":simple_model_settings", ":simple_model_settings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
], ],
) )
@ -121,7 +121,7 @@ tflite_micro_cc_test(
":simple_features_generator_reference", ":simple_features_generator_reference",
":simple_features_generator_test_data", ":simple_features_generator_test_data",
":simple_model_settings", ":simple_model_settings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -137,7 +137,7 @@ cc_library(
], ],
deps = [ deps = [
":simple_model_settings", ":simple_model_settings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
], ],
) )
@ -152,7 +152,7 @@ tflite_micro_cc_test(
":simple_features_generator_fixed", ":simple_features_generator_fixed",
":simple_features_generator_test_data", ":simple_features_generator_test_data",
":simple_model_settings", ":simple_model_settings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -167,7 +167,7 @@ cc_library(
"audio_provider.h", "audio_provider.h",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
], ],
@ -183,7 +183,7 @@ cc_library(
], ],
deps = [ deps = [
":audio_large_sample_test_data", ":audio_large_sample_test_data",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
], ],
@ -196,7 +196,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":audio_provider", ":audio_provider",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
@ -211,7 +211,7 @@ tflite_micro_cc_test(
deps = [ deps = [
":audio_large_sample_test_data", ":audio_large_sample_test_data",
":audio_provider_mock", ":audio_provider_mock",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
@ -228,7 +228,7 @@ cc_library(
], ],
deps = [ deps = [
":audio_provider", ":audio_provider",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_features_generator", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_features_generator",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
@ -243,7 +243,7 @@ tflite_micro_cc_test(
deps = [ deps = [
":audio_provider", ":audio_provider",
":feature_provider", ":feature_provider",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
@ -260,7 +260,7 @@ cc_library(
], ],
deps = [ deps = [
":audio_provider_mock", ":audio_provider_mock",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_features_generator", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_features_generator",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
@ -274,7 +274,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":feature_provider_mock", ":feature_provider_mock",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_features_test_data", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_features_test_data",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
@ -291,7 +291,7 @@ cc_library(
"recognize_commands.h", "recognize_commands.h",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings", "//tensorflow/lite/experimental/micro/examples/micro_speech/micro_features:micro_model_settings",
], ],
@ -307,7 +307,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":recognize_commands", ":recognize_commands",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -322,7 +322,7 @@ cc_library(
"command_responder.h", "command_responder.h",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
], ],
) )
@ -334,7 +334,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":command_responder", ":command_responder",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],

View File

@ -16,7 +16,7 @@ limitations under the License.
/* This file is a modification of the Tensorflow Micro Lite file preprocessor.cc /* This file is a modification of the Tensorflow Micro Lite file preprocessor.cc
*/ */
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/sin_1k.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/CMSIS/sin_1k.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
/* This file is a modification of the Tensorflow Micro Lite file /* This file is a modification of the Tensorflow Micro Lite file
* micro_speech_test.cc */ * micro_speech_test.cc */
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/simple_features_generator.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/simple_features_generator.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/tiny_conv_simple_features_model_data.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/tiny_conv_simple_features_model_data.h"
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" #include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_AUDIO_PROVIDER_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_AUDIO_PROVIDER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_AUDIO_PROVIDER_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_AUDIO_PROVIDER_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
// This is an abstraction around an audio source like a microphone, and is // This is an abstraction around an audio source like a microphone, and is

View File

@ -13,17 +13,15 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/experimental/micro/examples/micro_speech/audio_provider.h"
#include <limits> #include <limits>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/audio_provider.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_1000ms_sample_data.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/no_1000ms_sample_data.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/yes_1000ms_sample_data.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/yes_1000ms_sample_data.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h"
TF_LITE_MICRO_TESTS_BEGIN TF_LITE_MICRO_TESTS_BEGIN

View File

@ -17,7 +17,7 @@ limitations under the License.
#include <limits> #include <limits>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"

View File

@ -18,7 +18,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_COMMAND_RESPONDER_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_COMMAND_RESPONDER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_COMMAND_RESPONDER_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_COMMAND_RESPONDER_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
// Called every time the results of an audio recognition run are available. The // Called every time the results of an audio recognition run are available. The

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_FEATURE_PROVIDER_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_FEATURE_PROVIDER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_FEATURE_PROVIDER_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_FEATURE_PROVIDER_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
// Binds itself to an area of memory intended to hold the input features for an // Binds itself to an area of memory intended to hold the input features for an

View File

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/feature_provider.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/feature_provider.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/no_micro_features_data.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/no_micro_features_data.h"

View File

@ -14,7 +14,8 @@ limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/experimental/micro/examples/micro_speech/feature_provider.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/feature_provider.h"
#include "tensorflow/lite/c/c_api_internal.h"
#include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"

View File

@ -57,7 +57,7 @@ cc_library(
], ],
deps = [ deps = [
":micro_model_settings", ":micro_model_settings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/microfrontend/lib:frontend", "//tensorflow/lite/experimental/microfrontend/lib:frontend",
], ],
@ -84,7 +84,7 @@ tflite_micro_cc_test(
":micro_features_generator", ":micro_features_generator",
":micro_features_generator_test_data", ":micro_features_generator_test_data",
":micro_model_settings", ":micro_model_settings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/examples/micro_speech:audio_sample_test_data", "//tensorflow/lite/experimental/micro/examples/micro_speech:audio_sample_test_data",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_MICRO_FEATURES_MICRO_FEATURES_GENERATOR_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_MICRO_FEATURES_MICRO_FEATURES_GENERATOR_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_MICRO_FEATURES_MICRO_FEATURES_GENERATOR_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_MICRO_FEATURES_MICRO_FEATURES_GENERATOR_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
// Sets up any resources needed for the feature generation pipeline. // Sets up any resources needed for the feature generation pipeline.

View File

@ -14,7 +14,8 @@ limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_features_generator.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_features_generator.h"
#include "tensorflow/lite/c/c_api_internal.h"
#include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/no_feature_data_slice.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/no_feature_data_slice.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/yes_feature_data_slice.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/yes_feature_data_slice.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h"

View File

@ -18,7 +18,7 @@ limitations under the License.
#include <cstdint> #include <cstdint>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro_model_settings.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_SIMPLE_FEATURES_SIMPLE_FEATURES_GENERATOR_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_SIMPLE_FEATURES_SIMPLE_FEATURES_GENERATOR_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_SIMPLE_FEATURES_SIMPLE_FEATURES_GENERATOR_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_SIMPLE_FEATURES_SIMPLE_FEATURES_GENERATOR_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
// Converts audio sample data into a more compact form that's appropriate for // Converts audio sample data into a more compact form that's appropriate for

View File

@ -14,7 +14,8 @@ limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/simple_features_generator.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/simple_features_generator.h"
#include "tensorflow/lite/c/c_api_internal.h"
#include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/no_power_spectrum_data.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/no_power_spectrum_data.h"
#include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/yes_power_spectrum_data.h" #include "tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/yes_power_spectrum_data.h"

View File

@ -55,7 +55,7 @@ cc_library(
], ],
deps = [ deps = [
":model_settings", ":model_settings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
], ],
) )
@ -68,7 +68,7 @@ tflite_micro_cc_test(
deps = [ deps = [
":image_provider", ":image_provider",
":model_settings", ":model_settings",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -83,7 +83,7 @@ cc_library(
"detection_responder.h", "detection_responder.h",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
], ],
) )

View File

@ -19,7 +19,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_PERSON_DETECTION_DETECTION_RESPONDER_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_PERSON_DETECTION_DETECTION_RESPONDER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_PERSON_DETECTION_DETECTION_RESPONDER_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_PERSON_DETECTION_DETECTION_RESPONDER_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
// Called every time the results of a person detection run are available. The // Called every time the results of a person detection run are available. The

View File

@ -16,7 +16,7 @@ limitations under the License.
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_PERSON_DETECTION_IMAGE_PROVIDER_H_ #ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_PERSON_DETECTION_IMAGE_PROVIDER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_PERSON_DETECTION_IMAGE_PROVIDER_H_ #define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_PERSON_DETECTION_IMAGE_PROVIDER_H_
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
// This is an abstraction around an image source like a camera, and is // This is an abstraction around an image source like a camera, and is

View File

@ -17,7 +17,7 @@ limitations under the License.
#include <limits> #include <limits>
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/person_detection/model_settings.h" #include "tensorflow/lite/experimental/micro/examples/person_detection/model_settings.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"

View File

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/examples/person_detection/model_settings.h" #include "tensorflow/lite/experimental/micro/examples/person_detection/model_settings.h"
#include "tensorflow/lite/experimental/micro/examples/person_detection/no_person_image_data.h" #include "tensorflow/lite/experimental/micro/examples/person_detection/no_person_image_data.h"
#include "tensorflow/lite/experimental/micro/examples/person_detection/person_detect_model_data.h" #include "tensorflow/lite/experimental/micro/examples/person_detection/person_detect_model_data.h"

View File

@ -47,7 +47,7 @@ cc_library(
deps = [ deps = [
":activation_utils", ":activation_utils",
":micro_utils", ":micro_utils",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_utils", "//tensorflow/lite/experimental/micro:micro_utils",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/kernels:op_macros", "//tensorflow/lite/kernels:op_macros",
@ -110,7 +110,7 @@ cc_library(
deps = [ deps = [
":activation_utils", ":activation_utils",
":micro_utils", ":micro_utils",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_utils", "//tensorflow/lite/experimental/micro:micro_utils",
"//tensorflow/lite/kernels:kernel_util", "//tensorflow/lite/kernels:kernel_util",
"//tensorflow/lite/kernels:op_macros", "//tensorflow/lite/kernels:op_macros",
@ -147,7 +147,7 @@ tflite_micro_cc_test(
srcs = ["elementwise_test.cc"], srcs = ["elementwise_test.cc"],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -160,7 +160,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -173,7 +173,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -186,7 +186,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":portable_optimized_ops_resolver", ":portable_optimized_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -199,7 +199,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -212,7 +212,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -225,7 +225,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -238,7 +238,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -251,7 +251,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro:micro_utils", "//tensorflow/lite/experimental/micro:micro_utils",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
@ -265,7 +265,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -278,7 +278,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -291,7 +291,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -304,7 +304,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -317,7 +317,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -330,7 +330,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -344,7 +344,7 @@ tflite_micro_cc_test(
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
":micro_utils", ":micro_utils",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -357,7 +357,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/kernels:micro_utils", "//tensorflow/lite/experimental/micro/kernels:micro_utils",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
@ -371,7 +371,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -384,7 +384,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -397,7 +397,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -410,7 +410,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -423,7 +423,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -436,7 +436,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
@ -449,7 +449,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],
) )
@ -460,7 +460,7 @@ tflite_micro_cc_test(
"quantization_util_test.cc", "quantization_util_test.cc",
], ],
deps = [ deps = [
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
"//tensorflow/lite/kernels/internal:quantization_util", "//tensorflow/lite/kernels/internal:quantization_util",
], ],
@ -469,7 +469,7 @@ tflite_micro_cc_test(
cc_library( cc_library(
name = "activation_utils", name = "activation_utils",
hdrs = ["activation_utils.h"], hdrs = ["activation_utils.h"],
deps = ["//tensorflow/lite/c:c_api_internal"], deps = ["//tensorflow/lite/c:common"],
) )
tflite_micro_cc_test( tflite_micro_cc_test(
@ -479,7 +479,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/kernels:micro_utils", "//tensorflow/lite/experimental/micro/kernels:micro_utils",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
@ -493,7 +493,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/kernels:micro_utils", "//tensorflow/lite/experimental/micro/kernels:micro_utils",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
@ -512,7 +512,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro:micro_utils", "//tensorflow/lite/experimental/micro:micro_utils",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
@ -527,7 +527,7 @@ tflite_micro_cc_test(
], ],
deps = [ deps = [
":all_ops_resolver", ":all_ops_resolver",
"//tensorflow/lite/c:c_api_internal", "//tensorflow/lite/c:common",
"//tensorflow/lite/experimental/micro:micro_framework", "//tensorflow/lite/experimental/micro:micro_framework",
"//tensorflow/lite/experimental/micro/testing:micro_test", "//tensorflow/lite/experimental/micro/testing:micro_test",
], ],

View File

@ -14,7 +14,7 @@ limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/micro_utils.h" #include "tensorflow/lite/experimental/micro/micro_utils.h"
#include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/internal/common.h"
#include "tensorflow/lite/kernels/internal/quantization_util.h" #include "tensorflow/lite/kernels/internal/quantization_util.h"

View File

@ -14,7 +14,7 @@ limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" #include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"
#include "tensorflow/lite/experimental/micro/testing/test_utils.h" #include "tensorflow/lite/experimental/micro/testing/test_utils.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#include "tensorflow/lite/kernels/internal/reference/add.h" #include "tensorflow/lite/kernels/internal/reference/add.h"
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/kernels/internal/quantization_util.h" #include "tensorflow/lite/kernels/internal/quantization_util.h"
#include "tensorflow/lite/kernels/internal/reference/integer_ops/add.h" #include "tensorflow/lite/kernels/internal/reference/integer_ops/add.h"
#include "tensorflow/lite/kernels/internal/reference/process_broadcast_shapes.h" #include "tensorflow/lite/kernels/internal/reference/process_broadcast_shapes.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#include <cstdint> #include <cstdint>
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" #include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"
#include "tensorflow/lite/experimental/micro/testing/test_utils.h" #include "tensorflow/lite/experimental/micro/testing/test_utils.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#include "tensorflow/lite/kernels/internal/reference/arg_min_max.h" #include "tensorflow/lite/kernels/internal/reference/arg_min_max.h"
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/micro_utils.h" #include "tensorflow/lite/experimental/micro/kernels/micro_utils.h"
#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" #include "tensorflow/lite/kernels/internal/tensor_ctypes.h"
#include "tensorflow/lite/kernels/kernel_util.h" #include "tensorflow/lite/kernels/kernel_util.h"

View File

@ -14,7 +14,7 @@ limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" #include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"
#include "tensorflow/lite/experimental/micro/testing/test_utils.h" #include "tensorflow/lite/experimental/micro/testing/test_utils.h"

View File

@ -15,7 +15,7 @@ limitations under the License.
#include "tensorflow/lite/kernels/internal/reference/ceil.h" #include "tensorflow/lite/kernels/internal/reference/ceil.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" #include "tensorflow/lite/kernels/internal/tensor_ctypes.h"
#include "tensorflow/lite/kernels/kernel_util.h" #include "tensorflow/lite/kernels/kernel_util.h"

View File

@ -14,7 +14,7 @@ limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" #include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"
#include "tensorflow/lite/experimental/micro/testing/test_utils.h" #include "tensorflow/lite/experimental/micro/testing/test_utils.h"

View File

@ -17,7 +17,7 @@ limitations under the License.
#include "arm_nnfunctions.h" #include "arm_nnfunctions.h"
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/cmsis-nn/scratch_buffer.h" #include "tensorflow/lite/experimental/micro/kernels/cmsis-nn/scratch_buffer.h"
#include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/internal/common.h"
#include "tensorflow/lite/kernels/internal/quantization_util.h" #include "tensorflow/lite/kernels/internal/quantization_util.h"

View File

@ -17,7 +17,7 @@ limitations under the License.
#include "arm_nnfunctions.h" #include "arm_nnfunctions.h"
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/cmsis-nn/scratch_buffer.h" #include "tensorflow/lite/experimental/micro/kernels/cmsis-nn/scratch_buffer.h"
#include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/internal/common.h"
#include "tensorflow/lite/kernels/internal/quantization_util.h" #include "tensorflow/lite/kernels/internal/quantization_util.h"

View File

@ -17,7 +17,7 @@ limitations under the License.
#include "arm_nnfunctions.h" #include "arm_nnfunctions.h"
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/cmsis-nn/scratch_buffer.h" #include "tensorflow/lite/experimental/micro/kernels/cmsis-nn/scratch_buffer.h"
#include "tensorflow/lite/kernels/internal/common.h" #include "tensorflow/lite/kernels/internal/common.h"
#include "tensorflow/lite/kernels/internal/quantization_util.h" #include "tensorflow/lite/kernels/internal/quantization_util.h"

View File

@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
// todo: remove this function once context->AllocateTemporaryTensor() is // todo: remove this function once context->AllocateTemporaryTensor() is
// implemented. // implemented.

View File

@ -14,7 +14,7 @@ limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/kernels/internal/reference/comparisons.h" #include "tensorflow/lite/kernels/internal/reference/comparisons.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/kernels/internal/quantization_util.h" #include "tensorflow/lite/kernels/internal/quantization_util.h"
#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" #include "tensorflow/lite/kernels/internal/tensor_ctypes.h"
#include "tensorflow/lite/kernels/kernel_util.h" #include "tensorflow/lite/kernels/kernel_util.h"

View File

@ -16,7 +16,7 @@ limitations under the License.
#include <initializer_list> #include <initializer_list>
#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/builtin_op_data.h"
#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" #include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"
#include "tensorflow/lite/experimental/micro/testing/micro_test.h" #include "tensorflow/lite/experimental/micro/testing/micro_test.h"
#include "tensorflow/lite/experimental/micro/testing/test_utils.h" #include "tensorflow/lite/experimental/micro/testing/test_utils.h"

Some files were not shown because too many files have changed in this diff Show More