Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 651292266
  • Loading branch information
tensorflower-gardener committed Jul 11, 2024
1 parent c61b863 commit 19ad21f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
12 changes: 9 additions & 3 deletions tensorflow/lite/tools/signature/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ cc_library(
"//tensorflow/lite/core/c:common",
"//tensorflow/lite/schema:schema_fbs",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/status",
"@com_google_protobuf//:protobuf",
"@flatbuffers",
"@local_tsl//tsl/platform:status",
],
)

Expand All @@ -50,16 +52,18 @@ cc_test(
deps = [
":signature_def_util",
"//tensorflow/cc/saved_model:signature_constants",
"//tensorflow/core:tflite_portable_logging",
"//tensorflow/core/platform:errors",
"//tensorflow/core/protobuf:for_core_protos_cc",
"//tensorflow/lite:framework",
"//tensorflow/lite:string",
"//tensorflow/lite/c:c_api",
"//tensorflow/lite/core:framework",
"//tensorflow/lite/core/c:c_api",
"//tensorflow/lite/core/c:common",
"//tensorflow/lite/schema:schema_fbs",
"//tensorflow/lite/testing:util",
"@com_google_absl//absl/status",
"@com_google_googletest//:gtest_main",
"@flatbuffers//:runtime_cc",
"@local_tsl//tsl/platform:status",
],
)

Expand All @@ -74,9 +78,11 @@ pybind_extension(
enable_stub_generation = True,
deps = [
":signature_def_util",
"//tensorflow/core/protobuf:for_core_protos_cc",
"//tensorflow/lite:framework",
"//tensorflow/lite/core:framework",
"//tensorflow/python/lib/core:pybind11_lib",
"@com_google_absl//absl/status",
"@pybind11",
],
)
Expand Down
7 changes: 4 additions & 3 deletions tensorflow/lite/tools/signature/signature_def_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ limitations under the License.
#include <string>
#include <utility>

#include "absl/memory/memory.h"
#include "flatbuffers/flatbuffers.h" // from @flatbuffers
#include "absl/status/status.h"
#include "flatbuffers/flatbuffer_builder.h" // from @flatbuffers
#include "flatbuffers/flexbuffers.h" // from @flatbuffers
#include "flatbuffers/vector.h" // from @flatbuffers
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/platform/errors.h"
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tensorflow/lite/core/model_builder.h"
#include "tensorflow/lite/schema/schema_generated.h"
#include "tsl/platform/status.h"

namespace tflite {
namespace {
Expand Down
9 changes: 5 additions & 4 deletions tensorflow/lite/tools/signature/signature_def_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ limitations under the License.
#include <string>

#include <gtest/gtest.h>
#include "absl/status/status.h"
#include "flatbuffers/buffer.h" // from @flatbuffers
#include "tensorflow/cc/saved_model/signature_constants.h"
#include "tensorflow/core/platform/errors.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/lite/core/c/c_api.h"
#include "tensorflow/lite/core/c/common.h"
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tensorflow/lite/core/model_builder.h"
#include "tensorflow/lite/schema/schema_generated.h"
#include "tensorflow/lite/testing/util.h"
#include "tensorflow/lite/string_type.h"
#include "tsl/platform/status.h"

namespace tflite {
namespace {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ limitations under the License.
==============================================================================*/
#include <string>

#include "absl/status/status.h"
#include "pybind11/pybind11.h" // from @pybind11
#include "pybind11/pytypes.h" // from @pybind11
#include "pybind11/stl.h" // from @pybind11
#include "tensorflow/core/protobuf/meta_graph.pb.h"
#include "tensorflow/lite/core/model_builder.h"
#include "tensorflow/lite/tools/signature/signature_def_util.h"
#include "tensorflow/python/lib/core/pybind11_lib.h"
Expand Down

0 comments on commit 19ad21f

Please sign in to comment.