diff --git a/.gitignore b/.gitignore index 1ef4c297ee4f369775c13b32a46a55887de719e7..57d84228cfd037325716b5faa56c17f7424fe713 100644 --- a/.gitignore +++ b/.gitignore @@ -24,10 +24,10 @@ Pods Podfile.lock *.pbxproj *.xcworkspacedata -/tensorflow/contrib/lite/downloads/** -/tensorflow/contrib/lite/gen/** -/tensorflow/contrib/lite/examples/ios/simple/data/*.txt -/tensorflow/contrib/lite/examples/ios/simple/data/*.tflite +/tensorflow/lite/downloads/** +/tensorflow/lite/gen/** +/tensorflow/lite/examples/ios/simple/data/*.txt +/tensorflow/lite/examples/ios/simple/data/*.tflite xcuserdata/** /api_init_files_list.txt /estimator_api_init_files_list.txt diff --git a/RELEASE.md b/RELEASE.md index 2b00d06580d925a4afed5753afb8f51f0ebac99f..b13b071bd6cf4d3a260c8e248a67d23e1a688498 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -258,8 +258,8 @@ Ag Ramesh, Alex Wiltschko, Alexander Pantyukhin, Amogh Mannekote, An Jiaoyang, A * Update `tf.keras` to the Keras 2.1.6 API. * Added [`tf.keras.layers.CuDNNGRU`](https://www.tensorflow.org/versions/r1.9/api_docs/python/tf/keras/layers/CuDNNGRU) and [`tf.keras.layers.CuDNNLSTM`](https://www.tensorflow.org/versions/r1.9/api_docs/python/tf/keras/layers/CuDNNLSTM) layers. [Try it](https://colab.sandbox.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/contrib/eager/python/examples/nmt_with_attention/nmt_with_attention.ipynb?linkId=53292082). * Adding support of core [feature columns](https://www.tensorflow.org/get_started/feature_columns) and [losses](https://www.tensorflow.org/api_docs/python/tf/losses) to [gradient boosted trees estimators](https://github.com/tensorflow/models/tree/master/official/boosted_trees). -* The [python interface](https://www.tensorflow.org/versions/r1.9/api_docs/python/tf/contrib/lite) - for the [TFLite Optimizing Converter](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/toco/README.md) +* The [python interface](https://www.tensorflow.org/versions/r1.9/api_docs/python/tf/lite) + for the [TFLite Optimizing Converter](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/toco/README.md) has been expanded, and the command line interface (AKA: `toco`, `tflite_convert`) is once again included in the standard `pip` installation. * Improved data-loading and text processing with: @@ -562,7 +562,7 @@ Yoni Tsafir, yordun, Yuan (Terry) Tang, Yuxin Wu, zhengdi, Zhengsheng Wei, 田 ## Major Features And Improvements * [Eager execution](https://github.com/tensorflow/tensorflow/tree/r1.5/tensorflow/contrib/eager) preview version is now available. -* [TensorFlow Lite](https://github.com/tensorflow/tensorflow/tree/r1.5/tensorflow/contrib/lite) +* [TensorFlow Lite](https://github.com/tensorflow/tensorflow/tree/r1.5/tensorflow/lite) dev preview is now available. * CUDA 9.0 and cuDNN 7 support. * Accelerated Linear Algebra (XLA): @@ -909,7 +909,7 @@ See also [TensorBoard 0.1.4](https://github.com/tensorflow/tensorboard/releases/ * Adds tf.contrib.nn.rank_sampled_softmax_loss, a sampled-softmax variant that can improve rank loss. * `tf.contrib.metrics`.{streaming_covariance,streaming_pearson_correlation} modified to return nan when they have seen less or equal to 1 unit of weight. * Adds time series models to contrib. See contrib/timeseries/README.md for details. -* Adds FULLY_CONNECTED Op to tensorflow/contrib/lite/schema.fbs +* Adds FULLY_CONNECTED Op to tensorflow/lite/schema.fbs ## Known Issues * Tensorflow_gpu compilation fails with Bazel 0.5.3. diff --git a/tensorflow/contrib/cmake/python_modules.txt b/tensorflow/contrib/cmake/python_modules.txt index dea5a6f9662f6944c8366eea3e6c9958da2f838f..d94b703700cfcd9ecae7f1d2718ba33ffd82c176 100644 --- a/tensorflow/contrib/cmake/python_modules.txt +++ b/tensorflow/contrib/cmake/python_modules.txt @@ -279,10 +279,10 @@ tensorflow/contrib/linear_optimizer/kernels/g3doc tensorflow/contrib/linear_optimizer/python tensorflow/contrib/linear_optimizer/python/ops # TODO(drpngx): Fix failing imports -# tensorflow/contrib/lite -# tensorflow/contrib/lite/python -# tensorflow/contrib/lite/toco -# tensorflow/contrib/lite/toco/python +# tensorflow/lite +# tensorflow/lite/python +# tensorflow/lite/toco +# tensorflow/lite/toco/python tensorflow/contrib/lookup tensorflow/contrib/losses tensorflow/contrib/losses/python diff --git a/tensorflow/contrib/cmake/python_protos.txt b/tensorflow/contrib/cmake/python_protos.txt index 42afbd9105ef3789430606d909979ca308e2eaa8..013180c89083748b240ad061b342300e886d3568 100644 --- a/tensorflow/contrib/cmake/python_protos.txt +++ b/tensorflow/contrib/cmake/python_protos.txt @@ -6,7 +6,7 @@ tensorflow/contrib/boosted_trees/proto tensorflow/contrib/cloud/kernels tensorflow/contrib/decision_trees/proto tensorflow/contrib/gdr -tensorflow/contrib/lite/toco +tensorflow/lite/toco tensorflow/contrib/mpi tensorflow/contrib/mpi_collectives tensorflow/contrib/session_bundle diff --git a/tensorflow/contrib/cmake/tf_python.cmake b/tensorflow/contrib/cmake/tf_python.cmake index 6d86daf5f174a3238ab92e5bba6085c904766766..ef487d3509bf3c9bfaf0b117998e6b121543c1c6 100755 --- a/tensorflow/contrib/cmake/tf_python.cmake +++ b/tensorflow/contrib/cmake/tf_python.cmake @@ -222,17 +222,17 @@ endforeach(python_module) add_custom_command(TARGET tf_python_touchup_modules PRE_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory - "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/contrib/lite") + "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/lite") add_custom_command(TARGET tf_python_touchup_modules PRE_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory - "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/contrib/lite/python") + "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/lite/python") add_custom_command(TARGET tf_python_touchup_modules PRE_BUILD COMMAND ${CMAKE_COMMAND} -E touch - "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/contrib/lite/python/__init__.py") + "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/lite/python/__init__.py") add_custom_command( TARGET tf_python_copy_scripts_to_destination PRE_BUILD COMMAND ${CMAKE_COMMAND} -E touch - ${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/contrib/lite/python/lite.py) + ${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/lite/python/lite.py) # Generate the tensorflow.python.platform.build_info module. set(BUILD_INFO_PY "${CMAKE_CURRENT_BINARY_DIR}/tf_python/tensorflow/python/platform/build_info.py") diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/BUILD b/tensorflow/contrib/lite/experimental/micro/kernels/BUILD deleted file mode 100644 index a012f950e6f58f082d0a7c9ac0b4cd9018bcf40b..0000000000000000000000000000000000000000 --- a/tensorflow/contrib/lite/experimental/micro/kernels/BUILD +++ /dev/null @@ -1,107 +0,0 @@ -package(default_visibility = [ - "//visibility:public", -]) - -licenses(["notice"]) # Apache 2.0 - -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") -load( - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test.bzl", - "tflite_micro_cc_test", -) - -cc_library( - name = "micro_ops", - srcs = [ - "depthwise_conv.cc", - "fully_connected.cc", - "softmax.cc", - ], - hdrs = [ - ], - copts = tflite_copts(), - deps = [ - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/experimental/micro:micro_framework", - "//tensorflow/contrib/lite/kernels:kernel_util", - "//tensorflow/contrib/lite/kernels:op_macros", - "//tensorflow/contrib/lite/kernels:padding", - "//tensorflow/contrib/lite/kernels/internal:quantization_util", - "//tensorflow/contrib/lite/kernels/internal:reference_base", - "//tensorflow/contrib/lite/kernels/internal:tensor", - ], -) - -cc_library( - name = "all_ops_resolver", - srcs = [ - "all_ops_resolver.cc", - ], - hdrs = [ - "all_ops_resolver.h", - ], - copts = tflite_copts(), - deps = [ - ":micro_ops", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/experimental/micro:micro_framework", - ], -) - -cc_library( - name = "test_utils", - srcs = [ - ], - hdrs = [ - "test_utils.h", - ], - copts = tflite_copts(), - deps = [ - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/core/api", - "//tensorflow/contrib/lite/experimental/micro:micro_framework", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", - ], -) - -tflite_micro_cc_test( - name = "depthwise_conv_test", - srcs = [ - "depthwise_conv_test.cc", - ], - deps = [ - ":all_ops_resolver", - ":test_utils", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/experimental/micro:micro_framework", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", - ], -) - -tflite_micro_cc_test( - name = "fully_connected_test", - srcs = [ - "fully_connected_test.cc", - ], - deps = [ - ":all_ops_resolver", - ":test_utils", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/experimental/micro:micro_framework", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", - ], -) - -tflite_micro_cc_test( - name = "softmax_test", - srcs = [ - "softmax_test.cc", - ], - deps = [ - ":all_ops_resolver", - ":test_utils", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/experimental/micro:micro_framework", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", - ], -) diff --git a/tensorflow/contrib/lite/python/BUILD b/tensorflow/contrib/lite/python/BUILD index 87d090e31a268acee2e7b323527937374369b1a0..893ddd78231c8a0d819cbe5776e6873bdab57355 100644 --- a/tensorflow/contrib/lite/python/BUILD +++ b/tensorflow/contrib/lite/python/BUILD @@ -1,186 +1,12 @@ -licenses(["notice"]) # Apache 2.0 - -package(default_visibility = ["//tensorflow:internal"]) - -load("//tensorflow:tensorflow.bzl", "py_test") - -filegroup( - name = "interpreter_test_data", - srcs = glob(["**/testdata/*"]), - visibility = ["//tensorflow:__subpackages__"], -) - -py_library( - name = "interpreter", - srcs = [ - "interpreter.py", - ], - srcs_version = "PY2AND3", - visibility = ["//visibility:public"], - deps = [ - "//tensorflow/contrib/lite/python/interpreter_wrapper:tensorflow_wrap_interpreter_wrapper", - "//tensorflow/python:util", - "//third_party/py/numpy", - ], -) - -py_test( - name = "interpreter_test", - srcs = ["interpreter_test.py"], - data = [":interpreter_test_data"], - srcs_version = "PY2AND3", - tags = ["no_oss"], - deps = [ - ":interpreter", - "//tensorflow/python:client_testlib", - "//tensorflow/python:framework_test_lib", - "//tensorflow/python:platform", - "//third_party/py/numpy", - ], -) - -py_binary( - name = "tflite_convert", - srcs = ["tflite_convert.py"], - srcs_version = "PY2AND3", - visibility = ["//visibility:public"], - deps = [ - ":lite", - ], -) +licenses(["notice"]) +# DO NOT USE THIS TARGET. TensorFlow Lite has moved to tensorflow/lite. py_library( name = "lite", - srcs = ["lite.py"], - srcs_version = "PY2AND3", - visibility = ["//visibility:public"], - deps = [ - ":convert", - ":convert_saved_model", - ":interpreter", - ":lite_constants", - ":op_hint", - "//tensorflow/python:graph_util", - "//tensorflow/python/keras", - "//tensorflow/python/saved_model:constants", - "//tensorflow/python/saved_model:loader", - ], -) - -py_test( - name = "lite_test", - srcs = ["lite_test.py"], - data = ["@tflite_mobilenet_ssd_quant_protobuf//:tflite_graph.pb"], + srcs = ["__init__.py"], srcs_version = "PY2AND3", - tags = [ - "no_oss", - "no_windows", - ], - deps = [ - ":lite", - "//tensorflow/python:client_testlib", - "//tensorflow/python:framework_test_lib", - ], -) - -py_library( - name = "lite_constants", - srcs = ["lite_constants.py"], - srcs_version = "PY2AND3", - deps = [ - "//tensorflow/contrib/lite/toco:toco_flags_proto_py", - ], -) - -py_library( - name = "convert", - srcs = ["convert.py"], - srcs_version = "PY2AND3", - visibility = ["//visibility:public"], - deps = [ - ":lite_constants", - "//tensorflow/contrib/lite/toco:model_flags_proto_py", - "//tensorflow/contrib/lite/toco:toco_flags_proto_py", - "//tensorflow/contrib/lite/toco/python:tensorflow_wrap_toco", - "//tensorflow/contrib/lite/toco/python:toco_from_protos", - "//tensorflow/python:platform", - ], -) - -py_library( - name = "op_hint", - srcs = ["op_hint.py"], - srcs_version = "PY2AND3", - visibility = ["//visibility:public"], - deps = [ - "//tensorflow/contrib/framework:framework_py", - "//tensorflow/contrib/graph_editor:graph_editor_py", - "//tensorflow/core:protos_all_py", - "//tensorflow/python:framework", - "//tensorflow/python:platform", - "//tensorflow/python:util", - ], -) - -py_test( - name = "convert_test", - srcs = ["convert_test.py"], - srcs_version = "PY2AND3", - deps = [ - ":convert", - ":interpreter", - ":op_hint", - "//tensorflow/python:array_ops", - "//tensorflow/python:client_testlib", - "//tensorflow/python:dtypes", - "//tensorflow/python:platform_test", - "//tensorflow/python:session", - ], -) - -py_library( - name = "convert_saved_model", - srcs = ["convert_saved_model.py"], - srcs_version = "PY2AND3", - visibility = ["//tensorflow/contrib/lite:__subpackages__"], - deps = [ - ":convert", - "//tensorflow/python:graph_util", - "//tensorflow/python:platform", - "//tensorflow/python/saved_model", - ], -) - -py_binary( - name = "create_custom_op", - srcs = ["create_custom_op.py"], - srcs_version = "PY2AND3", - visibility = ["//visibility:public"], - deps = [ - "//tensorflow/contrib/framework:framework_py", - "//tensorflow/core:protos_all_py", - "//tensorflow/python:platform", - "@absl_py//absl/flags", - ], -) - -py_test( - name = "convert_saved_model_test", - srcs = ["convert_saved_model_test.py"], - srcs_version = "PY2AND3", - tags = [ - "no_windows", - ], visibility = ["//visibility:public"], deps = [ - ":convert_saved_model", - "//tensorflow/python:client_testlib", - "//tensorflow/python:layers", - "//tensorflow/python:nn", - "//tensorflow/python:platform_test", - "//tensorflow/python:session", - "//tensorflow/python/keras", - "//tensorflow/python/ops/losses", - "//tensorflow/python/saved_model", + "//tensorflow/lite/python:lite", ], ) diff --git a/tensorflow/contrib/lite/python/__init__.py b/tensorflow/contrib/lite/python/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..27b1ffb251e76469092eb613d3c381718d8dc4fd --- /dev/null +++ b/tensorflow/contrib/lite/python/__init__.py @@ -0,0 +1,26 @@ +# Copyright 2018 The TensorFlow Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================== +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function + +from tensorflow import lite + +import warnings as _warnings + +WARNING = ("WARNING: TF Lite has moved from tf.contrib.lite to tf.lite. Please " + "update your imports. This will be a breaking error in TensorFlow " + "version 2.0.") +_warnings.warn(WARNING, PendingDeprecationWarning) diff --git a/tensorflow/contrib/makefile/Makefile b/tensorflow/contrib/makefile/Makefile index 5b29f0185f275b79eed58ecf7e1c91760da77afb..7ea6e34cf50ed8e292f11314550d992c3dde34c0 100644 --- a/tensorflow/contrib/makefile/Makefile +++ b/tensorflow/contrib/makefile/Makefile @@ -740,22 +740,22 @@ ifeq ($(WITH_TFLITE_FLEX), true) TF_CC_SRCS += $(EAGER_CC_SRCS) TF_LITE_CORE_CC_ALL_SRCS := \ - $(wildcard tensorflow/contrib/lite/*.cc) \ - $(wildcard tensorflow/contrib/lite/*.c) \ - $(wildcard tensorflow/contrib/lite/c/*.c) \ - $(wildcard tensorflow/contrib/lite/core/api/*.cc) + $(wildcard tensorflow/lite/*.cc) \ + $(wildcard tensorflow/lite/*.c) \ + $(wildcard tensorflow/lite/c/*.c) \ + $(wildcard tensorflow/lite/core/api/*.cc) TF_LITE_CORE_CC_ALL_SRCS += \ - $(wildcard tensorflow/contrib/lite/kernels/*.cc) \ - $(wildcard tensorflow/contrib/lite/kernels/internal/*.cc) \ - $(wildcard tensorflow/contrib/lite/kernels/internal/optimized/*.cc) \ - $(wildcard tensorflow/contrib/lite/kernels/internal/reference/*.cc) \ + $(wildcard tensorflow/lite/kernels/*.cc) \ + $(wildcard tensorflow/lite/kernels/internal/*.cc) \ + $(wildcard tensorflow/lite/kernels/internal/optimized/*.cc) \ + $(wildcard tensorflow/lite/kernels/internal/reference/*.cc) \ $(PROFILER_SRCS) \ - $(wildcard tensorflow/contrib/lite/kernels/*.c) \ - $(wildcard tensorflow/contrib/lite/kernels/internal/*.c) \ - $(wildcard tensorflow/contrib/lite/kernels/internal/optimized/*.c) \ - $(wildcard tensorflow/contrib/lite/kernels/internal/reference/*.c) \ - $(wildcard tensorflow/contrib/lite/delegates/flex/*.cc) + $(wildcard tensorflow/lite/kernels/*.c) \ + $(wildcard tensorflow/lite/kernels/internal/*.c) \ + $(wildcard tensorflow/lite/kernels/internal/optimized/*.c) \ + $(wildcard tensorflow/lite/kernels/internal/reference/*.c) \ + $(wildcard tensorflow/lite/delegates/flex/*.cc) # Hack. This shouldn't be here? TF_LITE_CORE_CC_ALL_SRCS += \ @@ -764,14 +764,14 @@ ifeq ($(WITH_TFLITE_FLEX), true) # Remove any duplicates. TF_LITE_CORE_CC_ALL_SRCS := $(sort $(TF_LITE_CORE_CC_ALL_SRCS)) TF_LITE_CORE_CC_EXCLUDE_SRCS := \ - $(wildcard tensorflow/contrib/lite/*test.cc) \ - $(wildcard tensorflow/contrib/lite/*/*test.cc) \ - $(wildcard tensorflow/contrib/lite/*/*/*test.cc) \ - $(wildcard tensorflow/contrib/lite/*/*/*/*test.cc) \ - $(wildcard tensorflow/contrib/lite/kernels/test_util.cc) \ - $(wildcard tensorflow/contrib/lite/delegates/flex/test_util.cc) \ - $(wildcard tensorflow/contrib/lite/nnapi_delegate.cc) \ - $(wildcard tensorflow/contrib/lite/mmap_allocation_disabled.cc) + $(wildcard tensorflow/lite/*test.cc) \ + $(wildcard tensorflow/lite/*/*test.cc) \ + $(wildcard tensorflow/lite/*/*/*test.cc) \ + $(wildcard tensorflow/lite/*/*/*/*test.cc) \ + $(wildcard tensorflow/lite/kernels/test_util.cc) \ + $(wildcard tensorflow/lite/delegates/flex/test_util.cc) \ + $(wildcard tensorflow/lite/nnapi_delegate.cc) \ + $(wildcard tensorflow/lite/mmap_allocation_disabled.cc) # Filter out all the excluded files. TF_LITE_CC_SRCS := $(filter-out $(TF_LITE_CORE_CC_EXCLUDE_SRCS), $(TF_LITE_CORE_CC_ALL_SRCS)) diff --git a/tensorflow/contrib/makefile/build_all_android.sh b/tensorflow/contrib/makefile/build_all_android.sh index fb9e77ae1bcfc3404f1fdf90ab2697a4e79a9836..dc29694449729fe80d072aa06118ba0a8e64ca54 100755 --- a/tensorflow/contrib/makefile/build_all_android.sh +++ b/tensorflow/contrib/makefile/build_all_android.sh @@ -34,7 +34,7 @@ echo "********************************************************************" echo "TensorFlow Lite is the recommended library for mobile and embedded machine learning inference." echo "You are currently using an older version. Please switch over to TensorFlow Lite." echo "" -echo "Link to the code: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite" +echo "Link to the code: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite" echo "********************************************************************" echo "" diff --git a/tensorflow/contrib/makefile/build_all_ios.sh b/tensorflow/contrib/makefile/build_all_ios.sh index 9cee4f5916d3b45cd453b377fd46f1451c5056fd..9a8059ce50041f21d00884896783a02e6285d55c 100755 --- a/tensorflow/contrib/makefile/build_all_ios.sh +++ b/tensorflow/contrib/makefile/build_all_ios.sh @@ -35,7 +35,7 @@ echo "********************************************************************" echo "TensorFlow Lite is the recommended library for mobile and embedded machine learning inference." echo "You are currently using an older version. Please switch over to TensorFlow Lite." echo "" -echo "Link to the code: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite" +echo "Link to the code: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite" echo "********************************************************************" echo "" diff --git a/tensorflow/contrib/quantize/README.md b/tensorflow/contrib/quantize/README.md index 0ab19c91bb036ad24beee3d99624e788d086a9a5..a1f2b5902663e96bca8e13998869f4a0e9ae584b 100644 --- a/tensorflow/contrib/quantize/README.md +++ b/tensorflow/contrib/quantize/README.md @@ -145,7 +145,7 @@ Mobilenet-v2, and Inception-v3) using this tool: Our pre-trained models are available in the -TensorFlow Lite model repository. The code used to generate +TensorFlow Lite model repository. The code used to generate these models is available. diff --git a/tensorflow/core/util/ctc/ctc_beam_entry.h b/tensorflow/core/util/ctc/ctc_beam_entry.h index 24002e72a0920fc7a12203e8b843ae96626b4660..7382b8e6849b8884f31a89fd4924704fd7dfe7f0 100644 --- a/tensorflow/core/util/ctc/ctc_beam_entry.h +++ b/tensorflow/core/util/ctc/ctc_beam_entry.h @@ -146,4 +146,4 @@ class BeamComparer { } // namespace tensorflow #endif // TENSORFLOW_CORE_UTIL_CTC_CTC_BEAM_ENTRY_H_ -// LINT.ThenChange(//tensorflow/contrib/lite/experimental/kernels/ctc_beam_entry.h) +// LINT.ThenChange(//tensorflow/lite/experimental/kernels/ctc_beam_entry.h) diff --git a/tensorflow/core/util/ctc/ctc_beam_scorer.h b/tensorflow/core/util/ctc/ctc_beam_scorer.h index 1e45a8abd39a757f4a68d546a8326464f5afcace..fc63dfb0fd29010741d96ca5c010499c06b5da74 100644 --- a/tensorflow/core/util/ctc/ctc_beam_scorer.h +++ b/tensorflow/core/util/ctc/ctc_beam_scorer.h @@ -74,4 +74,4 @@ class BaseBeamScorer { } // namespace tensorflow #endif // TENSORFLOW_CORE_UTIL_CTC_CTC_BEAM_SCORER_H_ -// LINT.ThenChange(//tensorflow/contrib/lite/experimental/kernels/ctc_beam_scorer.h) +// LINT.ThenChange(//tensorflow/lite/experimental/kernels/ctc_beam_scorer.h) diff --git a/tensorflow/core/util/ctc/ctc_beam_search.h b/tensorflow/core/util/ctc/ctc_beam_search.h index 6fbb1ed0dae179f6abb4d5146169b464c7959a76..f2022d486c76e28fdd656483416c585546c2a211 100644 --- a/tensorflow/core/util/ctc/ctc_beam_search.h +++ b/tensorflow/core/util/ctc/ctc_beam_search.h @@ -431,4 +431,4 @@ Status CTCBeamSearchDecoder::TopPaths( } // namespace tensorflow #endif // TENSORFLOW_CORE_UTIL_CTC_CTC_BEAM_SEARCH_H_ -// LINT.ThenChange(//tensorflow/contrib/lite/experimental/kernels/ctc_beam_search.h) +// LINT.ThenChange(//tensorflow/lite/experimental/kernels/ctc_beam_search.h) diff --git a/tensorflow/core/util/ctc/ctc_decoder.h b/tensorflow/core/util/ctc/ctc_decoder.h index b55d7d77ac0f070c4ff616558793c8be34c12556..f5c9e4bb596dac8c64750bcfc482ee47322de983 100644 --- a/tensorflow/core/util/ctc/ctc_decoder.h +++ b/tensorflow/core/util/ctc/ctc_decoder.h @@ -113,4 +113,4 @@ class CTCGreedyDecoder : public CTCDecoder { } // namespace tensorflow #endif // TENSORFLOW_CORE_UTIL_CTC_CTC_DECODER_H_ -// LINT.ThenChange(//tensorflow/contrib/lite/experimental/kernels/ctc_decoder.h) +// LINT.ThenChange(//tensorflow/lite/experimental/kernels/ctc_decoder.h) diff --git a/tensorflow/core/util/ctc/ctc_loss_util.h b/tensorflow/core/util/ctc/ctc_loss_util.h index 054412d388dd53874f3b1b282dc8d2854fe97b27..df0de926d9a8b630dcd08cd6428dd6f3454548a5 100644 --- a/tensorflow/core/util/ctc/ctc_loss_util.h +++ b/tensorflow/core/util/ctc/ctc_loss_util.h @@ -47,4 +47,4 @@ inline float LogSumExp(float log_prob_1, float log_prob_2) { } // namespace tensorflow #endif // TENSORFLOW_CORE_UTIL_CTC_CTC_LOSS_UTIL_H_ -// LINT.ThenChange(//tensorflow/contrib/lite/experimental/kernels/ctc_loss_util.h) +// LINT.ThenChange(//tensorflow/lite/experimental/kernels/ctc_loss_util.h) diff --git a/tensorflow/contrib/lite/BUILD b/tensorflow/lite/BUILD similarity index 76% rename from tensorflow/contrib/lite/BUILD rename to tensorflow/lite/BUILD index 787a85644c35c807df84f74cbce06f80fd0b004d..f8bb7191c4eb8f93f6062384874ac3f5c00f7f26 100644 --- a/tensorflow/contrib/lite/BUILD +++ b/tensorflow/lite/BUILD @@ -5,7 +5,7 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 load("//tensorflow:tensorflow.bzl", "tf_cc_test") -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts", "gen_selected_ops") +load("//tensorflow/lite:build_def.bzl", "tflite_copts", "gen_selected_ops") exports_files(glob([ "testdata/*.bin", @@ -48,7 +48,7 @@ cc_library( ":graph_info", ":memory_planner", ":simple_memory_arena", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ], ) @@ -62,9 +62,9 @@ cc_test( ], deps = [ ":arena_planner", - "//tensorflow/contrib/lite/testing:util", "//tensorflow/core:framework", "//tensorflow/core:lib", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -74,26 +74,26 @@ cc_test( cc_library( name = "context", hdrs = ["context.h"], - deps = ["//tensorflow/contrib/lite/c:c_api_internal"], + deps = ["//tensorflow/lite/c:c_api_internal"], ) cc_library( name = "graph_info", hdrs = ["graph_info.h"], - deps = ["//tensorflow/contrib/lite/c:c_api_internal"], + deps = ["//tensorflow/lite/c:c_api_internal"], ) cc_library( name = "memory_planner", hdrs = ["memory_planner.h"], - deps = ["//tensorflow/contrib/lite/c:c_api_internal"], + deps = ["//tensorflow/lite/c:c_api_internal"], ) cc_library( name = "simple_memory_arena", srcs = ["simple_memory_arena.cc"], hdrs = ["simple_memory_arena.h"], - deps = ["//tensorflow/contrib/lite/c:c_api_internal"], + deps = ["//tensorflow/lite/c:c_api_internal"], ) cc_library( @@ -101,7 +101,7 @@ cc_library( hdrs = [ "builtin_op_data.h", ], - deps = ["//tensorflow/contrib/lite/c:c_api_internal"], + deps = ["//tensorflow/lite/c:c_api_internal"], ) cc_library( @@ -182,16 +182,16 @@ cc_library( ":simple_memory_arena", ":string", ":util", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/core/api", - "//tensorflow/contrib/lite/kernels:eigen_support", - "//tensorflow/contrib/lite/kernels:gemm_support", - "//tensorflow/contrib/lite/nnapi:nnapi_lib", - "//tensorflow/contrib/lite/profiling:profiler", - "//tensorflow/contrib/lite/schema:schema_fbs", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/core/api", + "//tensorflow/lite/kernels:eigen_support", + "//tensorflow/lite/kernels:gemm_support", + "//tensorflow/lite/nnapi:nnapi_lib", + "//tensorflow/lite/profiling:profiler", + "//tensorflow/lite/schema:schema_fbs", ] + select({ ":with_tflite_flex": [ - "//tensorflow/contrib/lite/delegates/flex:delegate", + "//tensorflow/lite/delegates/flex:delegate", ], "//conditions:default": [], }), @@ -214,7 +214,7 @@ cc_test( deps = [ ":framework", ":string_util", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -227,13 +227,13 @@ cc_test( deps = [ ":framework", ":string_util", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/core/api", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/kernels:kernel_util", - "//tensorflow/contrib/lite/kernels/internal:tensor_utils", - "//tensorflow/contrib/lite/schema:schema_fbs", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/core/api", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/kernels:kernel_util", + "//tensorflow/lite/kernels/internal:tensor_utils", + "//tensorflow/lite/schema:schema_fbs", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -247,7 +247,7 @@ cc_test( deps = [ ":framework", ":string_util", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -259,7 +259,7 @@ cc_test( srcs = ["simple_memory_arena_test.cc"], deps = [ ":simple_memory_arena", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -279,10 +279,10 @@ cc_test( ], deps = [ ":framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/core/api", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/core/api", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -298,10 +298,10 @@ tf_cc_test( tags = ["no_windows"], # TODO(b/116667551): No weak symbols with MSVC. deps = [ ":framework", - "//tensorflow/contrib/lite/core/api", - "//tensorflow/contrib/lite/delegates/flex:delegate", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/core/api", + "//tensorflow/lite/delegates/flex:delegate", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -314,7 +314,7 @@ cc_test( tags = ["no_oss"], deps = [ ":framework", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -324,7 +324,7 @@ cc_library( srcs = ["util.cc"], hdrs = ["util.h"], deps = [ - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ], ) @@ -335,7 +335,7 @@ cc_test( tags = ["no_oss"], deps = [ ":util", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/README.md b/tensorflow/lite/README.md similarity index 79% rename from tensorflow/contrib/lite/README.md rename to tensorflow/lite/README.md index a4b3d83efe09358cb8e7a5f673a96f28faa84d08..589d4f93481e501485de3bf3f0c21129299d8471 100644 --- a/tensorflow/contrib/lite/README.md +++ b/tensorflow/lite/README.md @@ -5,4 +5,4 @@ devices. It enables low-latency inference of on-device machine learning models with a small binary size and fast performance supporting hardware acceleration. See the documentation: https://www.tensorflow.org/lite/ -Documentation edits can be made here: [tensorflow/contrib/lite/g3doc](./g3doc/) +Documentation edits can be made here: [tensorflow/lite/g3doc](./g3doc/) diff --git a/tensorflow/contrib/lite/allocation.cc b/tensorflow/lite/allocation.cc similarity index 94% rename from tensorflow/contrib/lite/allocation.cc rename to tensorflow/lite/allocation.cc index 21cb1832a7af49fd8441d3b6104b46489bef9237..f9a34322f0cbf51780b6cebbc4a94219ef47087e 100644 --- a/tensorflow/contrib/lite/allocation.cc +++ b/tensorflow/lite/allocation.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/allocation.h" +#include "tensorflow/lite/allocation.h" #include #include @@ -23,8 +23,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" namespace tflite { diff --git a/tensorflow/contrib/lite/allocation.h b/tensorflow/lite/allocation.h similarity index 88% rename from tensorflow/contrib/lite/allocation.h rename to tensorflow/lite/allocation.h index 182bc0977f62f17baa6b24106a19447ebb4b4805..f25d7fa232a7407b8f4d95b084472e136080c815 100644 --- a/tensorflow/contrib/lite/allocation.h +++ b/tensorflow/lite/allocation.h @@ -14,16 +14,16 @@ limitations under the License. ==============================================================================*/ // Main abstraction controlling the tflite interpreter. // See context.h for the API for defining operations (TfLiteRegistration). -#ifndef TENSORFLOW_CONTRIB_LITE_ALLOCATION_H_ -#define TENSORFLOW_CONTRIB_LITE_ALLOCATION_H_ +#ifndef TENSORFLOW_LITE_ALLOCATION_H_ +#define TENSORFLOW_LITE_ALLOCATION_H_ #include #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/simple_memory_arena.h" -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/simple_memory_arena.h" +#include "tensorflow/lite/string.h" namespace tflite { @@ -94,4 +94,4 @@ class MemoryAllocation : public Allocation { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_ALLOCATION_H_ +#endif // TENSORFLOW_LITE_ALLOCATION_H_ diff --git a/tensorflow/contrib/lite/arena_planner.cc b/tensorflow/lite/arena_planner.cc similarity index 99% rename from tensorflow/contrib/lite/arena_planner.cc rename to tensorflow/lite/arena_planner.cc index 02442575b3aeed04ac6569440dd52a4d5ddd4d98..8200b6adaa1c6eed64ca8963c7d0d422e573ffb8 100644 --- a/tensorflow/contrib/lite/arena_planner.cc +++ b/tensorflow/lite/arena_planner.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/arena_planner.h" +#include "tensorflow/lite/arena_planner.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/arena_planner.h b/tensorflow/lite/arena_planner.h similarity index 92% rename from tensorflow/contrib/lite/arena_planner.h rename to tensorflow/lite/arena_planner.h index 382577045b6d54c65e08028ac8cdc27c2bb1265a..beaadaf4eff7582be1c78ca4fa3ea620a93f1a2d 100644 --- a/tensorflow/contrib/lite/arena_planner.h +++ b/tensorflow/lite/arena_planner.h @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_ARENA_PLANNER_H_ -#define TENSORFLOW_CONTRIB_LITE_ARENA_PLANNER_H_ +#ifndef TENSORFLOW_LITE_ARENA_PLANNER_H_ +#define TENSORFLOW_LITE_ARENA_PLANNER_H_ #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/graph_info.h" -#include "tensorflow/contrib/lite/memory_planner.h" -#include "tensorflow/contrib/lite/simple_memory_arena.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/graph_info.h" +#include "tensorflow/lite/memory_planner.h" +#include "tensorflow/lite/simple_memory_arena.h" namespace tflite { @@ -124,4 +124,4 @@ class ArenaPlanner : public MemoryPlanner { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_ARENA_PLANNER_H_ +#endif // TENSORFLOW_LITE_ARENA_PLANNER_H_ diff --git a/tensorflow/contrib/lite/arena_planner_test.cc b/tensorflow/lite/arena_planner_test.cc similarity index 99% rename from tensorflow/contrib/lite/arena_planner_test.cc rename to tensorflow/lite/arena_planner_test.cc index 7d7c41289cad95b73423a7218bf1e0516b2e87a2..479f25cafef5c47eed3226717eae2af7918549c6 100644 --- a/tensorflow/contrib/lite/arena_planner_test.cc +++ b/tensorflow/lite/arena_planner_test.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/arena_planner.h" +#include "tensorflow/lite/arena_planner.h" #include #include #include -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/testing/util.h" #include "tensorflow/core/platform/logging.h" namespace tflite { diff --git a/tensorflow/contrib/lite/build_def.bzl b/tensorflow/lite/build_def.bzl similarity index 95% rename from tensorflow/contrib/lite/build_def.bzl rename to tensorflow/lite/build_def.bzl index a5d69372c1bd26065e7205b366653bd5ef5d5a8b..3b0af52fb93690e7b2623bb39ef5bb6639cc030c 100644 --- a/tensorflow/contrib/lite/build_def.bzl +++ b/tensorflow/lite/build_def.bzl @@ -38,7 +38,7 @@ def tflite_copts(): return copts -LINKER_SCRIPT = "//tensorflow/contrib/lite/java/src/main/native:version_script.lds" +LINKER_SCRIPT = "//tensorflow/lite/java/src/main/native:version_script.lds" def tflite_linkopts_unstripped(): """Defines linker flags to reduce size of TFLite binary. @@ -152,7 +152,7 @@ def tf_to_tflite(name, src, options, out): """ toco_cmdline = " ".join([ - "//tensorflow/contrib/lite/toco:toco", + "//tensorflow/lite/toco:toco", "--input_format=TENSORFLOW_GRAPHDEF", "--output_format=TFLITE", ("--input_file=$(location %s)" % src), @@ -163,7 +163,7 @@ def tf_to_tflite(name, src, options, out): srcs = [src], outs = [out], cmd = toco_cmdline, - tools = ["//tensorflow/contrib/lite/toco:toco"], + tools = ["//tensorflow/lite/toco:toco"], ) def tflite_to_json(name, src, out): @@ -176,7 +176,7 @@ def tflite_to_json(name, src, out): """ flatc = "@flatbuffers//:flatc" - schema = "//tensorflow/contrib/lite/schema:schema.fbs" + schema = "//tensorflow/lite/schema:schema.fbs" native.genrule( name = name, srcs = [schema, src], @@ -199,7 +199,7 @@ def json_to_tflite(name, src, out): """ flatc = "@flatbuffers//:flatc" - schema = "//tensorflow/contrib/lite/schema:schema_fbs" + schema = "//tensorflow/lite/schema:schema_fbs" native.genrule( name = name, srcs = [schema, src], @@ -357,12 +357,12 @@ def gen_zip_test(name, test_name, conversion_mode, **kwargs): list above. **kwargs: tf_cc_test kwargs """ - toco = "//tensorflow/contrib/lite/toco:toco" + toco = "//tensorflow/lite/toco:toco" flags = "" if conversion_mode: # TODO(nupurgarg): Comment in when pb2lite is in open source. b/113614050. # if conversion_mode == "pb2lite": - # toco = "//tensorflow/contrib/lite/experimental/pb2lite:pb2lite" + # toco = "//tensorflow/lite/experimental/pb2lite:pb2lite" flags = "--ignore_toco_errors --run_with_flex" gen_zipped_test_file( @@ -406,8 +406,8 @@ def gen_selected_ops(name, model): model: TFLite model to interpret. """ out = name + "_registration.cc" - tool = "//tensorflow/contrib/lite/tools:generate_op_registrations" - tflite_path = "//tensorflow/contrib/lite" + tool = "//tensorflow/lite/tools:generate_op_registrations" + tflite_path = "//tensorflow/lite" native.genrule( name = name, srcs = [model], @@ -450,8 +450,8 @@ def gen_model_coverage_test(model_name, data, failure_type): "notap", ], deps = [ - "//tensorflow/contrib/lite/testing/model_coverage:model_coverage_lib", - "//tensorflow/contrib/lite/python:lite", + "//tensorflow/lite/testing/model_coverage:model_coverage_lib", + "//tensorflow/lite/python:lite", "//tensorflow/python:client_testlib", ], ) diff --git a/tensorflow/contrib/lite/builtin_op_data.h b/tensorflow/lite/builtin_op_data.h similarity index 77% rename from tensorflow/contrib/lite/builtin_op_data.h rename to tensorflow/lite/builtin_op_data.h index 30901bd0fae9510ebea288288941218d6994d888..b9d4284513de944ccbae16cb9ad57bca05103438 100644 --- a/tensorflow/contrib/lite/builtin_op_data.h +++ b/tensorflow/lite/builtin_op_data.h @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ // Compatibility shim for new location of interface definitions. -#ifndef TENSORFLOW_CONTRIB_LITE_BUILTIN_OP_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_BUILTIN_OP_DATA_H_ +#ifndef TENSORFLOW_LITE_BUILTIN_OP_DATA_H_ +#define TENSORFLOW_LITE_BUILTIN_OP_DATA_H_ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" -#endif // TENSORFLOW_CONTRIB_LITE_BUILTIN_OP_DATA_H_ +#endif // TENSORFLOW_LITE_BUILTIN_OP_DATA_H_ diff --git a/tensorflow/contrib/lite/builtin_ops.h b/tensorflow/lite/builtin_ops.h similarity index 96% rename from tensorflow/contrib/lite/builtin_ops.h rename to tensorflow/lite/builtin_ops.h index 1b115291b338ea926f6efee53792b4939d84986e..b8c05f57bb59b5770ec2dca00d41e1ebd8ca23c4 100644 --- a/tensorflow/contrib/lite/builtin_ops.h +++ b/tensorflow/lite/builtin_ops.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_BUILTIN_OPS_H_ -#define TENSORFLOW_CONTRIB_LITE_BUILTIN_OPS_H_ +#ifndef TENSORFLOW_LITE_BUILTIN_OPS_H_ +#define TENSORFLOW_LITE_BUILTIN_OPS_H_ // DO NOT EDIT MANUALLY: This file is automatically generated by // `schema/builtin_ops_header/generator.cc`. @@ -128,4 +128,4 @@ typedef enum { #ifdef __cplusplus } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_BUILTIN_OPS_H_ +#endif // TENSORFLOW_LITE_BUILTIN_OPS_H_ diff --git a/tensorflow/contrib/lite/c/BUILD b/tensorflow/lite/c/BUILD similarity index 94% rename from tensorflow/contrib/lite/c/BUILD rename to tensorflow/lite/c/BUILD index 663eb63cad0da0781cc2d07d1b78242bea2ee3c8..91c04a5f1fb5bb1a15bd1da074a1276a3d8e7793 100644 --- a/tensorflow/contrib/lite/c/BUILD +++ b/tensorflow/lite/c/BUILD @@ -13,6 +13,7 @@ cc_library( ], visibility = [ "//tensorflow/contrib/lite:__subpackages__", + "//tensorflow/lite:__subpackages__", ], ) diff --git a/tensorflow/contrib/lite/c/builtin_op_data.h b/tensorflow/lite/c/builtin_op_data.h similarity index 97% rename from tensorflow/contrib/lite/c/builtin_op_data.h rename to tensorflow/lite/c/builtin_op_data.h index c0513df9f64c94d4d95a31c8702cdea97850898d..855983d60dfd18d3b35ced7fed93f8fa3dfca80a 100644 --- a/tensorflow/contrib/lite/c/builtin_op_data.h +++ b/tensorflow/lite/c/builtin_op_data.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_C_BUILTIN_OP_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_C_BUILTIN_OP_DATA_H_ +#ifndef TENSORFLOW_LITE_C_BUILTIN_OP_DATA_H_ +#define TENSORFLOW_LITE_C_BUILTIN_OP_DATA_H_ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" #ifdef __cplusplus extern "C" { @@ -332,4 +332,4 @@ typedef struct { } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_C_BUILTIN_OP_DATA_H_ +#endif // TENSORFLOW_LITE_C_BUILTIN_OP_DATA_H_ diff --git a/tensorflow/contrib/lite/c/builtin_op_data_test.cc b/tensorflow/lite/c/builtin_op_data_test.cc similarity index 98% rename from tensorflow/contrib/lite/c/builtin_op_data_test.cc rename to tensorflow/lite/c/builtin_op_data_test.cc index ba458b4252c53ebc91adcd0afbd16f783037dd42..0e33dcd8c8447df76ebb91aa6bad7d2a2035e2a6 100644 --- a/tensorflow/contrib/lite/c/builtin_op_data_test.cc +++ b/tensorflow/lite/c/builtin_op_data_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/c/c_api_internal.c b/tensorflow/lite/c/c_api_internal.c similarity index 98% rename from tensorflow/contrib/lite/c/c_api_internal.c rename to tensorflow/lite/c/c_api_internal.c index 0a88b5ef7bcbe0498bbd12ac3a5107aab27ac2c7..b131f0677467b3504bda84d96a95707cb1587884 100644 --- a/tensorflow/contrib/lite/c/c_api_internal.c +++ b/tensorflow/lite/c/c_api_internal.c @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" #ifndef TF_LITE_STATIC_MEMORY #include #include diff --git a/tensorflow/contrib/lite/c/c_api_internal.h b/tensorflow/lite/c/c_api_internal.h similarity index 99% rename from tensorflow/contrib/lite/c/c_api_internal.h rename to tensorflow/lite/c/c_api_internal.h index f6aee92f2abeb4863e600fac1ff6414811a7e356..e76971f57df5ed22830af73b9ea0e46d8a060799 100644 --- a/tensorflow/contrib/lite/c/c_api_internal.h +++ b/tensorflow/lite/c/c_api_internal.h @@ -26,8 +26,8 @@ limitations under the License. // TfLiteRegistration - the implementation of a conceptual operation. // // Some abstractions in this file are created and managed by Interpreter. -#ifndef TENSORFLOW_CONTRIB_LITE_C_C_API_INTERNAL_H_ -#define TENSORFLOW_CONTRIB_LITE_C_C_API_INTERNAL_H_ +#ifndef TENSORFLOW_LITE_C_C_API_INTERNAL_H_ +#define TENSORFLOW_LITE_C_C_API_INTERNAL_H_ #include #include @@ -509,4 +509,4 @@ typedef struct { #ifdef __cplusplus } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_C_C_API_INTERNAL_H_ +#endif // TENSORFLOW_LITE_C_C_API_INTERNAL_H_ diff --git a/tensorflow/contrib/lite/c/c_api_internal_test.cc b/tensorflow/lite/c/c_api_internal_test.cc similarity index 98% rename from tensorflow/contrib/lite/c/c_api_internal_test.cc rename to tensorflow/lite/c/c_api_internal_test.cc index 0292fb2f05d201abdc9d0f8456d7144485d59687..e21823c41f0b43e7395b19f241d6a628b8a78f41 100644 --- a/tensorflow/contrib/lite/c/c_api_internal_test.cc +++ b/tensorflow/lite/c/c_api_internal_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/context.h b/tensorflow/lite/context.h similarity index 79% rename from tensorflow/contrib/lite/context.h rename to tensorflow/lite/context.h index b86c2819b821d7ce3d9da2073998301b9d29adda..3d3c8c08b24e697d39d642af4e0f7451b02d70ae 100644 --- a/tensorflow/contrib/lite/context.h +++ b/tensorflow/lite/context.h @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ // Compatibility shim for moved header location. -#ifndef TENSORFLOW_CONTRIB_LITE_CONTEXT_H_ -#define TENSORFLOW_CONTRIB_LITE_CONTEXT_H_ +#ifndef TENSORFLOW_LITE_CONTEXT_H_ +#define TENSORFLOW_LITE_CONTEXT_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" -#endif // TENSORFLOW_CONTRIB_LITE_CONTEXT_H_ +#endif // TENSORFLOW_LITE_CONTEXT_H_ diff --git a/tensorflow/contrib/lite/context_util.h b/tensorflow/lite/context_util.h similarity index 89% rename from tensorflow/contrib/lite/context_util.h rename to tensorflow/lite/context_util.h index ccda4c7393dd169a67d9e9400cf8ab57dda049e7..68b91ea0b93e602c20d1db3284a523e9f55dfd5b 100644 --- a/tensorflow/contrib/lite/context_util.h +++ b/tensorflow/lite/context_util.h @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ // This provides a few C++ helpers that are useful for manipulating C structures // in C++. -#ifndef TENSORFLOW_CONTRIB_LITE_CONTEXT_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_CONTEXT_UTIL_H_ +#ifndef TENSORFLOW_LITE_CONTEXT_UTIL_H_ +#define TENSORFLOW_LITE_CONTEXT_UTIL_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { @@ -45,4 +45,4 @@ class TfLiteIntArrayView { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_CONTEXT_UTIL_H_ +#endif // TENSORFLOW_LITE_CONTEXT_UTIL_H_ diff --git a/tensorflow/contrib/lite/core/api/BUILD b/tensorflow/lite/core/api/BUILD similarity index 80% rename from tensorflow/contrib/lite/core/api/BUILD rename to tensorflow/lite/core/api/BUILD index e4500534f348f15b47d3c3868461237e68fc3ac3..6a43b0322d17041a5ae4a0527376d1465a539b1d 100644 --- a/tensorflow/contrib/lite/core/api/BUILD +++ b/tensorflow/lite/core/api/BUILD @@ -4,7 +4,7 @@ package( licenses(["notice"]) # Apache 2.0 -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") cc_library( name = "api", @@ -20,8 +20,8 @@ cc_library( ], copts = tflite_copts(), deps = [ - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/schema:schema_fbs", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/schema:schema_fbs", ], ) @@ -51,7 +51,7 @@ cc_test( srcs = ["flatbuffer_conversions_test.cc"], deps = [ ":api", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/core/api/error_reporter.cc b/tensorflow/lite/core/api/error_reporter.cc similarity index 95% rename from tensorflow/contrib/lite/core/api/error_reporter.cc rename to tensorflow/lite/core/api/error_reporter.cc index 423f83b1a9f4c90b3c3e286061ec03262890af03..7070eaa57c589a6f1481517936ca6b795ce9e9e9 100644 --- a/tensorflow/contrib/lite/core/api/error_reporter.cc +++ b/tensorflow/lite/core/api/error_reporter.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/core/api/error_reporter.h" +#include "tensorflow/lite/core/api/error_reporter.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/core/api/error_reporter.h b/tensorflow/lite/core/api/error_reporter.h similarity index 88% rename from tensorflow/contrib/lite/core/api/error_reporter.h rename to tensorflow/lite/core/api/error_reporter.h index a2f780b003fc213d28ba29d7783dbfe99088cccc..357722cc45911f435e8678e6eb24effc44e56644 100644 --- a/tensorflow/contrib/lite/core/api/error_reporter.h +++ b/tensorflow/lite/core/api/error_reporter.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_CORE_API_ERROR_REPORTER_H_ -#define TENSORFLOW_CONTRIB_LITE_CORE_API_ERROR_REPORTER_H_ +#ifndef TENSORFLOW_LITE_CORE_API_ERROR_REPORTER_H_ +#define TENSORFLOW_LITE_CORE_API_ERROR_REPORTER_H_ #include @@ -42,4 +42,4 @@ class ErrorReporter { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_CORE_API_ERROR_REPORTER_H_ +#endif // TENSORFLOW_LITE_CORE_API_ERROR_REPORTER_H_ diff --git a/tensorflow/contrib/lite/core/api/error_reporter_test.cc b/tensorflow/lite/core/api/error_reporter_test.cc similarity index 95% rename from tensorflow/contrib/lite/core/api/error_reporter_test.cc rename to tensorflow/lite/core/api/error_reporter_test.cc index 0463eee6be554ea25469a221b614f87f0331bf55..4e44a6465d1ed9cdf866c96e0d6af52a4ef95910 100644 --- a/tensorflow/contrib/lite/core/api/error_reporter_test.cc +++ b/tensorflow/lite/core/api/error_reporter_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/core/api/error_reporter.h" +#include "tensorflow/lite/core/api/error_reporter.h" #include diff --git a/tensorflow/contrib/lite/core/api/flatbuffer_conversions.cc b/tensorflow/lite/core/api/flatbuffer_conversions.cc similarity index 99% rename from tensorflow/contrib/lite/core/api/flatbuffer_conversions.cc rename to tensorflow/lite/core/api/flatbuffer_conversions.cc index 5afde439156e70350b6222e9ba7b599ebef8ebb7..8cd3faabb728097832796bb7c9d56e5f2e9632b0 100644 --- a/tensorflow/contrib/lite/core/api/flatbuffer_conversions.cc +++ b/tensorflow/lite/core/api/flatbuffer_conversions.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/core/api/flatbuffer_conversions.h" +#include "tensorflow/lite/core/api/flatbuffer_conversions.h" #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" namespace tflite { diff --git a/tensorflow/contrib/lite/core/api/flatbuffer_conversions.h b/tensorflow/lite/core/api/flatbuffer_conversions.h similarity index 85% rename from tensorflow/contrib/lite/core/api/flatbuffer_conversions.h rename to tensorflow/lite/core/api/flatbuffer_conversions.h index c770e627fd572dc252c6261bd3713d3105d225f1..0132a431c5daad3dc21516de5455c4693a9f10cf 100644 --- a/tensorflow/contrib/lite/core/api/flatbuffer_conversions.h +++ b/tensorflow/lite/core/api/flatbuffer_conversions.h @@ -12,17 +12,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_CORE_API_FLATBUFFER_CONVERSIONS_H_ -#define TENSORFLOW_CONTRIB_LITE_CORE_API_FLATBUFFER_CONVERSIONS_H_ +#ifndef TENSORFLOW_LITE_CORE_API_FLATBUFFER_CONVERSIONS_H_ +#define TENSORFLOW_LITE_CORE_API_FLATBUFFER_CONVERSIONS_H_ // These functions transform codes and data structures that are defined in the // flatbuffer serialization format into in-memory values that are used by the // runtime API and interpreter. -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/core/api/op_resolver.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/core/api/op_resolver.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { @@ -65,4 +65,4 @@ TfLiteStatus ConvertTensorType(TensorType tensor_type, TfLiteType* type, } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_CORE_API_FLATBUFFER_CONVERSIONS_H_ +#endif // TENSORFLOW_LITE_CORE_API_FLATBUFFER_CONVERSIONS_H_ diff --git a/tensorflow/contrib/lite/core/api/flatbuffer_conversions_test.cc b/tensorflow/lite/core/api/flatbuffer_conversions_test.cc similarity index 97% rename from tensorflow/contrib/lite/core/api/flatbuffer_conversions_test.cc rename to tensorflow/lite/core/api/flatbuffer_conversions_test.cc index 8ae94e1d330c1958b857cff0b44c38108f153550..4d1d1b21fda106b3196ff43421996f45ab83af4f 100644 --- a/tensorflow/contrib/lite/core/api/flatbuffer_conversions_test.cc +++ b/tensorflow/lite/core/api/flatbuffer_conversions_test.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/core/api/flatbuffer_conversions.h" +#include "tensorflow/lite/core/api/flatbuffer_conversions.h" #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/core/api/op_resolver.cc b/tensorflow/lite/core/api/op_resolver.cc similarity index 97% rename from tensorflow/contrib/lite/core/api/op_resolver.cc rename to tensorflow/lite/core/api/op_resolver.cc index 55ee92484305c353a1cfffc5011fbb1d01bf3109..94d76889d07903da2d548568d9702af65f984aa0 100644 --- a/tensorflow/contrib/lite/core/api/op_resolver.cc +++ b/tensorflow/lite/core/api/op_resolver.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/core/api/op_resolver.h" +#include "tensorflow/lite/core/api/op_resolver.h" namespace tflite { diff --git a/tensorflow/contrib/lite/core/api/op_resolver.h b/tensorflow/lite/core/api/op_resolver.h similarity index 84% rename from tensorflow/contrib/lite/core/api/op_resolver.h rename to tensorflow/lite/core/api/op_resolver.h index 5f5e6b27363b525094659719da9decf49dbeac45..c8c7479f334c7c68c3effdb548ccc48c760a666e 100644 --- a/tensorflow/contrib/lite/core/api/op_resolver.h +++ b/tensorflow/lite/core/api/op_resolver.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_CORE_API_OP_RESOLVER_H_ -#define TENSORFLOW_CONTRIB_LITE_CORE_API_OP_RESOLVER_H_ +#ifndef TENSORFLOW_LITE_CORE_API_OP_RESOLVER_H_ +#define TENSORFLOW_LITE_CORE_API_OP_RESOLVER_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { @@ -44,4 +44,4 @@ TfLiteStatus GetRegistrationFromOpCode(const OperatorCode* opcode, } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_CORE_API_OP_RESOLVER_H_ +#endif // TENSORFLOW_LITE_CORE_API_OP_RESOLVER_H_ diff --git a/tensorflow/contrib/lite/core/api/op_resolver_test.cc b/tensorflow/lite/core/api/op_resolver_test.cc similarity index 99% rename from tensorflow/contrib/lite/core/api/op_resolver_test.cc rename to tensorflow/lite/core/api/op_resolver_test.cc index 167463110ed8ec6d59479cc9e7cd6f9845eaa897..cd8d0929b6449597c94442d2889c0e5e8afb9a8e 100644 --- a/tensorflow/contrib/lite/core/api/op_resolver_test.cc +++ b/tensorflow/lite/core/api/op_resolver_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/core/api/op_resolver.h" +#include "tensorflow/lite/core/api/op_resolver.h" #include diff --git a/tensorflow/contrib/lite/delegates/flex/BUILD b/tensorflow/lite/delegates/flex/BUILD similarity index 80% rename from tensorflow/contrib/lite/delegates/flex/BUILD rename to tensorflow/lite/delegates/flex/BUILD index ec8ab22e96cac6ee4497d6e0822d21c51ff2e81d..f9850112abd2fd3189187ebe0fb948007bc41166 100644 --- a/tensorflow/contrib/lite/delegates/flex/BUILD +++ b/tensorflow/lite/delegates/flex/BUILD @@ -16,9 +16,9 @@ cc_library( deps = [ ":util", "//tensorflow/c:c_api_internal", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite:string", - "//tensorflow/contrib/lite:string_util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite:string", + "//tensorflow/lite:string_util", ] + select({ "//tensorflow:android": [ "//tensorflow/core:android_tensorflow_lib_lite", @@ -36,10 +36,10 @@ tf_cc_test( srcs = ["buffer_map_test.cc"], deps = [ ":buffer_map", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite:util", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -81,9 +81,9 @@ cc_library( ":delegate_data", ":kernel", ":util", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite:kernel_api", - "//tensorflow/contrib/lite:util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite:kernel_api", + "//tensorflow/lite:util", ] + select({ "//tensorflow:android": [ "//tensorflow/core:android_tensorflow_lib_lite", @@ -103,7 +103,7 @@ tf_cc_test( deps = [ ":delegate", ":test_util", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -132,10 +132,10 @@ tf_cc_test( srcs = ["delegate_data_test.cc"], deps = [ ":delegate_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:util", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite:framework", + "//tensorflow/lite:util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -148,10 +148,10 @@ cc_library( ":delegate_data", ":util", "@flatbuffers", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite:kernel_api", - "//tensorflow/contrib/lite:string", - "//tensorflow/contrib/lite/kernels:kernel_util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite:kernel_api", + "//tensorflow/lite:string", + "//tensorflow/lite/kernels:kernel_util", "//tensorflow/core/common_runtime/eager:context", "//tensorflow/core/common_runtime/eager:execute", "//tensorflow/core/common_runtime/eager:tensor_handle", @@ -197,8 +197,8 @@ cc_library( hdrs = ["test_util.h"], deps = [ "//tensorflow/c:c_api_internal", - "//tensorflow/contrib/lite:string", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:string", + "//tensorflow/lite/kernels:test_util", "@com_google_absl//absl/memory", "@flatbuffers", ], @@ -210,8 +210,8 @@ cc_library( hdrs = ["util.h"], deps = [ "//tensorflow/c:c_api_internal", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite:kernel_api", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite:kernel_api", ] + select({ "//tensorflow:android": [ "//tensorflow/core:android_tensorflow_lib_lite", @@ -229,8 +229,8 @@ tf_cc_test( srcs = ["util_test.cc"], deps = [ ":util", - "//tensorflow/contrib/lite:string", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite:string", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/delegates/flex/buffer_map.cc b/tensorflow/lite/delegates/flex/buffer_map.cc similarity index 96% rename from tensorflow/contrib/lite/delegates/flex/buffer_map.cc rename to tensorflow/lite/delegates/flex/buffer_map.cc index 0d4c40d86e87db1aa2c697e735016a77c975ce7c..2c4aa7075db3c3a76e48353e34e56809acfc57ff 100644 --- a/tensorflow/contrib/lite/delegates/flex/buffer_map.cc +++ b/tensorflow/lite/delegates/flex/buffer_map.cc @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/buffer_map.h" +#include "tensorflow/lite/delegates/flex/buffer_map.h" #include "tensorflow/c/c_api_internal.h" -#include "tensorflow/contrib/lite/delegates/flex/util.h" -#include "tensorflow/contrib/lite/string.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/delegates/flex/util.h" +#include "tensorflow/lite/string.h" +#include "tensorflow/lite/string_util.h" #include "tensorflow/core/framework/allocation_description.pb.h" #include "tensorflow/core/framework/log_memory.h" diff --git a/tensorflow/contrib/lite/delegates/flex/buffer_map.h b/tensorflow/lite/delegates/flex/buffer_map.h similarity index 89% rename from tensorflow/contrib/lite/delegates/flex/buffer_map.h rename to tensorflow/lite/delegates/flex/buffer_map.h index 4ce886568a55773971bc0543ec973ec84c0aac1b..269a0a2a27659d18fe21238fea3bcbdeb442031b 100644 --- a/tensorflow/contrib/lite/delegates/flex/buffer_map.h +++ b/tensorflow/lite/delegates/flex/buffer_map.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_BUFFER_MAP_H_ -#define TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_BUFFER_MAP_H_ +#ifndef TENSORFLOW_LITE_DELEGATES_FLEX_BUFFER_MAP_H_ +#define TENSORFLOW_LITE_DELEGATES_FLEX_BUFFER_MAP_H_ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/core/framework/tensor.h" namespace tflite { @@ -58,4 +58,4 @@ class BufferMap { } // namespace flex } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_BUFFER_MAP_H_ +#endif // TENSORFLOW_LITE_DELEGATES_FLEX_BUFFER_MAP_H_ diff --git a/tensorflow/contrib/lite/delegates/flex/buffer_map_test.cc b/tensorflow/lite/delegates/flex/buffer_map_test.cc similarity index 96% rename from tensorflow/contrib/lite/delegates/flex/buffer_map_test.cc rename to tensorflow/lite/delegates/flex/buffer_map_test.cc index cc2959bc3555d6905512e8dd15edafe54a19cf28..46cfed46771a1513051599390658e34a443d9626 100644 --- a/tensorflow/contrib/lite/delegates/flex/buffer_map_test.cc +++ b/tensorflow/lite/delegates/flex/buffer_map_test.cc @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/buffer_map.h" +#include "tensorflow/lite/delegates/flex/buffer_map.h" #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/string_util.h" -#include "tensorflow/contrib/lite/testing/util.h" -#include "tensorflow/contrib/lite/util.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/string_util.h" +#include "tensorflow/lite/testing/util.h" +#include "tensorflow/lite/util.h" namespace tflite { namespace flex { diff --git a/tensorflow/contrib/lite/delegates/flex/delegate.cc b/tensorflow/lite/delegates/flex/delegate.cc similarity index 92% rename from tensorflow/contrib/lite/delegates/flex/delegate.cc rename to tensorflow/lite/delegates/flex/delegate.cc index c72b0cf51383897ce3afec0c39ed6bfe178d88c1..c31d48539bb7c844f16e9c8a987d5f1224c2fb2f 100644 --- a/tensorflow/contrib/lite/delegates/flex/delegate.cc +++ b/tensorflow/lite/delegates/flex/delegate.cc @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/delegate.h" +#include "tensorflow/lite/delegates/flex/delegate.h" #include -#include "tensorflow/contrib/lite/context_util.h" -#include "tensorflow/contrib/lite/delegates/flex/buffer_map.h" -#include "tensorflow/contrib/lite/delegates/flex/kernel.h" -#include "tensorflow/contrib/lite/delegates/flex/util.h" -#include "tensorflow/contrib/lite/util.h" +#include "tensorflow/lite/context_util.h" +#include "tensorflow/lite/delegates/flex/buffer_map.h" +#include "tensorflow/lite/delegates/flex/kernel.h" +#include "tensorflow/lite/delegates/flex/util.h" +#include "tensorflow/lite/util.h" #include "tensorflow/core/lib/core/status.h" namespace tflite { diff --git a/tensorflow/contrib/lite/delegates/flex/delegate.h b/tensorflow/lite/delegates/flex/delegate.h similarity index 85% rename from tensorflow/contrib/lite/delegates/flex/delegate.h rename to tensorflow/lite/delegates/flex/delegate.h index 1017780dc75de1cd334e0cca901bbe20ddf0bf41..018ff3e0b0e1fe7a842154581e2201b82412f885 100644 --- a/tensorflow/contrib/lite/delegates/flex/delegate.h +++ b/tensorflow/lite/delegates/flex/delegate.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_DELEGATE_H_ -#define TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_DELEGATE_H_ +#ifndef TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_H_ +#define TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/delegates/flex/delegate_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/delegates/flex/delegate_data.h" namespace tflite { @@ -56,4 +56,4 @@ class FlexDelegate : public TfLiteDelegate { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_DELEGATE_H_ +#endif // TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_H_ diff --git a/tensorflow/contrib/lite/delegates/flex/delegate_data.cc b/tensorflow/lite/delegates/flex/delegate_data.cc similarity index 96% rename from tensorflow/contrib/lite/delegates/flex/delegate_data.cc rename to tensorflow/lite/delegates/flex/delegate_data.cc index 8f985f770cfba9fc6a7184cfdb0a35e9e6c754af..b62479a448073d4cd522464d0f86f8cf9db8eada 100644 --- a/tensorflow/contrib/lite/delegates/flex/delegate_data.cc +++ b/tensorflow/lite/delegates/flex/delegate_data.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/delegate_data.h" +#include "tensorflow/lite/delegates/flex/delegate_data.h" #include "tensorflow/core/common_runtime/device_factory.h" #include "tensorflow/core/lib/core/status.h" diff --git a/tensorflow/contrib/lite/delegates/flex/delegate_data.h b/tensorflow/lite/delegates/flex/delegate_data.h similarity index 87% rename from tensorflow/contrib/lite/delegates/flex/delegate_data.h rename to tensorflow/lite/delegates/flex/delegate_data.h index 8d75f0b0efe758074d035f0ebcf0f5f12602323b..a88cc98d03cd40d33ab9f5eaf312086dc2b2a7cc 100644 --- a/tensorflow/contrib/lite/delegates/flex/delegate_data.h +++ b/tensorflow/lite/delegates/flex/delegate_data.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_DELEGATE_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_DELEGATE_DATA_H_ +#ifndef TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_DATA_H_ +#define TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_DATA_H_ -#include "tensorflow/contrib/lite/delegates/flex/buffer_map.h" +#include "tensorflow/lite/delegates/flex/buffer_map.h" #include "tensorflow/core/common_runtime/eager/context.h" namespace tflite { @@ -49,4 +49,4 @@ class DelegateData { } // namespace flex } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_DELEGATE_DATA_H_ +#endif // TENSORFLOW_LITE_DELEGATES_FLEX_DELEGATE_DATA_H_ diff --git a/tensorflow/contrib/lite/delegates/flex/delegate_data_test.cc b/tensorflow/lite/delegates/flex/delegate_data_test.cc similarity index 90% rename from tensorflow/contrib/lite/delegates/flex/delegate_data_test.cc rename to tensorflow/lite/delegates/flex/delegate_data_test.cc index 30b10f435a23785f88e2645714a414501bc2fab9..cd274e7cb1ccb51d9b5e7ece845f2120e7c5a79e 100644 --- a/tensorflow/contrib/lite/delegates/flex/delegate_data_test.cc +++ b/tensorflow/lite/delegates/flex/delegate_data_test.cc @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/delegate_data.h" +#include "tensorflow/lite/delegates/flex/delegate_data.h" #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace flex { diff --git a/tensorflow/contrib/lite/delegates/flex/delegate_test.cc b/tensorflow/lite/delegates/flex/delegate_test.cc similarity index 98% rename from tensorflow/contrib/lite/delegates/flex/delegate_test.cc rename to tensorflow/lite/delegates/flex/delegate_test.cc index 1813952cef99ef10b638ade7bcfcca486b2b3b76..f9087d5d857f0d433946397f3ccaa972c1f7d7ba 100644 --- a/tensorflow/contrib/lite/delegates/flex/delegate_test.cc +++ b/tensorflow/lite/delegates/flex/delegate_test.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/delegate.h" +#include "tensorflow/lite/delegates/flex/delegate.h" #include #include -#include "tensorflow/contrib/lite/delegates/flex/test_util.h" +#include "tensorflow/lite/delegates/flex/test_util.h" namespace tflite { namespace flex { diff --git a/tensorflow/contrib/lite/delegates/flex/kernel.cc b/tensorflow/lite/delegates/flex/kernel.cc similarity index 96% rename from tensorflow/contrib/lite/delegates/flex/kernel.cc rename to tensorflow/lite/delegates/flex/kernel.cc index e4f1aea990da97da08a3e5adf2dd70307b20fe88..2c19580235fedbf3b4bf2a65b453c766a0235723 100644 --- a/tensorflow/contrib/lite/delegates/flex/kernel.cc +++ b/tensorflow/lite/delegates/flex/kernel.cc @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/kernel.h" +#include "tensorflow/lite/delegates/flex/kernel.h" #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/builtin_ops.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/context_util.h" -#include "tensorflow/contrib/lite/delegates/flex/delegate_data.h" -#include "tensorflow/contrib/lite/delegates/flex/util.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/builtin_ops.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/context_util.h" +#include "tensorflow/lite/delegates/flex/delegate_data.h" +#include "tensorflow/lite/delegates/flex/util.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/string.h" #include "tensorflow/core/common_runtime/eager/context.h" #include "tensorflow/core/common_runtime/eager/execute.h" #include "tensorflow/core/common_runtime/eager/tensor_handle.h" diff --git a/tensorflow/contrib/lite/delegates/flex/kernel.h b/tensorflow/lite/delegates/flex/kernel.h similarity index 83% rename from tensorflow/contrib/lite/delegates/flex/kernel.h rename to tensorflow/lite/delegates/flex/kernel.h index ac9313a37bd5a3f5e23057512f07674c44801989..ca74c28570f6aa11e42162fa8dde1fb2ab411437 100644 --- a/tensorflow/contrib/lite/delegates/flex/kernel.h +++ b/tensorflow/lite/delegates/flex/kernel.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_KERNEL_H_ -#define TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_KERNEL_H_ +#ifndef TENSORFLOW_LITE_DELEGATES_FLEX_KERNEL_H_ +#define TENSORFLOW_LITE_DELEGATES_FLEX_KERNEL_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { namespace flex { @@ -31,4 +31,4 @@ TfLiteRegistration GetKernel(); } // namespace flex } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_KERNEL_H_ +#endif // TENSORFLOW_LITE_DELEGATES_FLEX_KERNEL_H_ diff --git a/tensorflow/contrib/lite/delegates/flex/kernel_test.cc b/tensorflow/lite/delegates/flex/kernel_test.cc similarity index 97% rename from tensorflow/contrib/lite/delegates/flex/kernel_test.cc rename to tensorflow/lite/delegates/flex/kernel_test.cc index 94a6f8b61ad28144f6b8d0d462338ab4176af168..93d472d3f4b93a2c421fd667fd0f02333fad4948 100644 --- a/tensorflow/contrib/lite/delegates/flex/kernel_test.cc +++ b/tensorflow/lite/delegates/flex/kernel_test.cc @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/kernel.h" +#include "tensorflow/lite/delegates/flex/kernel.h" #include #include -#include "tensorflow/contrib/lite/delegates/flex/delegate_data.h" -#include "tensorflow/contrib/lite/delegates/flex/test_util.h" +#include "tensorflow/lite/delegates/flex/delegate_data.h" +#include "tensorflow/lite/delegates/flex/test_util.h" namespace tflite { namespace flex { diff --git a/tensorflow/contrib/lite/delegates/flex/test_util.cc b/tensorflow/lite/delegates/flex/test_util.cc similarity index 98% rename from tensorflow/contrib/lite/delegates/flex/test_util.cc rename to tensorflow/lite/delegates/flex/test_util.cc index 69c336a01a57416bb331a897faba03ad75a38f95..08feb349e6dbf15dc908c7c4d4fd5694814c8594 100644 --- a/tensorflow/contrib/lite/delegates/flex/test_util.cc +++ b/tensorflow/lite/delegates/flex/test_util.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/test_util.h" +#include "tensorflow/lite/delegates/flex/test_util.h" #include "absl/memory/memory.h" #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace flex { diff --git a/tensorflow/contrib/lite/delegates/flex/test_util.h b/tensorflow/lite/delegates/flex/test_util.h similarity index 94% rename from tensorflow/contrib/lite/delegates/flex/test_util.h rename to tensorflow/lite/delegates/flex/test_util.h index a8c81b90a3b8dc49ae058adb172456fe4d6e7172..4d3f5ad0968ad34ef9ee673ffacd7d9b2c83cb7f 100644 --- a/tensorflow/contrib/lite/delegates/flex/test_util.h +++ b/tensorflow/lite/delegates/flex/test_util.h @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_TEST_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_TEST_UTIL_H_ +#ifndef TENSORFLOW_LITE_DELEGATES_FLEX_TEST_UTIL_H_ +#define TENSORFLOW_LITE_DELEGATES_FLEX_TEST_UTIL_H_ #include "tensorflow/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" +#include "tensorflow/lite/kernels/test_util.h" namespace tflite { namespace flex { @@ -116,4 +116,4 @@ class FlexModelTest : public ::testing::Test { } // namespace flex } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_TEST_UTIL_H_ +#endif // TENSORFLOW_LITE_DELEGATES_FLEX_TEST_UTIL_H_ diff --git a/tensorflow/contrib/lite/delegates/flex/util.cc b/tensorflow/lite/delegates/flex/util.cc similarity index 98% rename from tensorflow/contrib/lite/delegates/flex/util.cc rename to tensorflow/lite/delegates/flex/util.cc index 829bc388bf4f613e82600edfc7363d0774d49878..c786ffa1a2150b24ec9b283f5fb254813d1d4ba2 100644 --- a/tensorflow/contrib/lite/delegates/flex/util.cc +++ b/tensorflow/lite/delegates/flex/util.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/util.h" +#include "tensorflow/lite/delegates/flex/util.h" namespace tflite { namespace flex { diff --git a/tensorflow/contrib/lite/delegates/flex/util.h b/tensorflow/lite/delegates/flex/util.h similarity index 88% rename from tensorflow/contrib/lite/delegates/flex/util.h rename to tensorflow/lite/delegates/flex/util.h index 7f910e7316e67363a6e54389f1d0cc94b3e009a0..8aaa73d1b3e3708ec819bb6e9b97c0a5951097da 100644 --- a/tensorflow/contrib/lite/delegates/flex/util.h +++ b/tensorflow/lite/delegates/flex/util.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_UTIL_H_ +#ifndef TENSORFLOW_LITE_DELEGATES_FLEX_UTIL_H_ +#define TENSORFLOW_LITE_DELEGATES_FLEX_UTIL_H_ #include "tensorflow/c/c_api_internal.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/lib/core/status.h" @@ -44,4 +44,4 @@ TfLiteType GetTensorFlowLiteType(TF_DataType); } // namespace flex } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_DELEGATES_FLEX_UTIL_H_ +#endif // TENSORFLOW_LITE_DELEGATES_FLEX_UTIL_H_ diff --git a/tensorflow/contrib/lite/delegates/flex/util_test.cc b/tensorflow/lite/delegates/flex/util_test.cc similarity index 96% rename from tensorflow/contrib/lite/delegates/flex/util_test.cc rename to tensorflow/lite/delegates/flex/util_test.cc index 5f049e7b0a0c1f7be28d33b532157c6f9211c7c1..87104751b81b6af71ac6d7b2a0a22615c1005255 100644 --- a/tensorflow/contrib/lite/delegates/flex/util_test.cc +++ b/tensorflow/lite/delegates/flex/util_test.cc @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/flex/util.h" +#include "tensorflow/lite/delegates/flex/util.h" #include #include #include -#include "tensorflow/contrib/lite/string.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/string.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace flex { diff --git a/tensorflow/contrib/lite/delegates/nnapi/BUILD b/tensorflow/lite/delegates/nnapi/BUILD similarity index 58% rename from tensorflow/contrib/lite/delegates/nnapi/BUILD rename to tensorflow/lite/delegates/nnapi/BUILD index 4e7b2948fb920c3aaf9a6f4a9cdff7c476911e7a..c24f0f71ac4edde456fc67a926ef120da6a50931 100644 --- a/tensorflow/contrib/lite/delegates/nnapi/BUILD +++ b/tensorflow/lite/delegates/nnapi/BUILD @@ -11,11 +11,11 @@ cc_library( srcs = ["nnapi_delegate.cc"], hdrs = ["nnapi_delegate.h"], deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:kernel_api", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:kernel_util", - "//tensorflow/contrib/lite/nnapi:nnapi_lib", + "//tensorflow/lite:framework", + "//tensorflow/lite:kernel_api", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:kernel_util", + "//tensorflow/lite/nnapi:nnapi_lib", ], ) @@ -29,9 +29,9 @@ tf_cc_test( ], deps = [ ":nnapi_delegate", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate.cc b/tensorflow/lite/delegates/nnapi/nnapi_delegate.cc similarity index 99% rename from tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate.cc rename to tensorflow/lite/delegates/nnapi/nnapi_delegate.cc index d85e576284fac87519d7f4bb4bd76fe2619b59d5..5f17e113751026ed8f14523e960b490fac74e985 100644 --- a/tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate.cc +++ b/tensorflow/lite/delegates/nnapi/nnapi_delegate.cc @@ -17,14 +17,14 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/allocation.h" -#include "tensorflow/contrib/lite/builtin_op_data.h" -#include "tensorflow/contrib/lite/builtin_ops.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/context_util.h" -#include "tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/nnapi/NeuralNetworksShim.h" +#include "tensorflow/lite/allocation.h" +#include "tensorflow/lite/builtin_op_data.h" +#include "tensorflow/lite/builtin_ops.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/context_util.h" +#include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/nnapi/NeuralNetworksShim.h" #ifdef __ANDROID__ #include diff --git a/tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate.h b/tensorflow/lite/delegates/nnapi/nnapi_delegate.h similarity index 80% rename from tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate.h rename to tensorflow/lite/delegates/nnapi/nnapi_delegate.h index 4852b7697432c30c1258e790b97ce2563e7f9711..099fb724292d795a5a3297df801fbbf52c96193b 100644 --- a/tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate.h +++ b/tensorflow/lite/delegates/nnapi/nnapi_delegate.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_DELEGATES_NNAPI_NNAPI_DELEGATE_H_ -#define TENSORFLOW_CONTRIB_LITE_DELEGATES_NNAPI_NNAPI_DELEGATE_H_ +#ifndef TENSORFLOW_LITE_DELEGATES_NNAPI_NNAPI_DELEGATE_H_ +#define TENSORFLOW_LITE_DELEGATES_NNAPI_NNAPI_DELEGATE_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { @@ -28,4 +28,4 @@ namespace tflite { TfLiteDelegate* NnApiDelegate(); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_DELEGATES_NNAPI_NNAPI_DELEGATE_H_ +#endif // TENSORFLOW_LITE_DELEGATES_NNAPI_NNAPI_DELEGATE_H_ diff --git a/tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate_test.cc b/tensorflow/lite/delegates/nnapi/nnapi_delegate_test.cc similarity index 99% rename from tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate_test.cc rename to tensorflow/lite/delegates/nnapi/nnapi_delegate_test.cc index 9626c54c7473bfcb1547e04d1629ebbb17879597..75399fd5e46e9f616cc566cccf02af3ec592d4b0 100644 --- a/tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate_test.cc +++ b/tensorflow/lite/delegates/nnapi/nnapi_delegate_test.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/delegates/nnapi/nnapi_delegate.h" +#include "tensorflow/lite/delegates/nnapi/nnapi_delegate.h" #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/error_reporter.h b/tensorflow/lite/error_reporter.h similarity index 72% rename from tensorflow/contrib/lite/error_reporter.h rename to tensorflow/lite/error_reporter.h index 5c20eedc255ca6f7578873593aa86759fbeb490b..38518d63321edacf06c8f096d0b2198065f18aff 100644 --- a/tensorflow/contrib/lite/error_reporter.h +++ b/tensorflow/lite/error_reporter.h @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ // Compatibility shim for moved header location. -#ifndef TENSORFLOW_CONTRIB_LITE_ERROR_REPORTER_H_ -#define TENSORFLOW_CONTRIB_LITE_ERROR_REPORTER_H_ +#ifndef TENSORFLOW_LITE_ERROR_REPORTER_H_ +#define TENSORFLOW_LITE_ERROR_REPORTER_H_ -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/stderr_reporter.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/stderr_reporter.h" -#endif // TENSORFLOW_CONTRIB_LITE_ERROR_REPORTER_H_ +#endif // TENSORFLOW_LITE_ERROR_REPORTER_H_ diff --git a/tensorflow/contrib/lite/examples/android/BUILD b/tensorflow/lite/examples/android/BUILD similarity index 77% rename from tensorflow/contrib/lite/examples/android/BUILD rename to tensorflow/lite/examples/android/BUILD index d180cb478566a9e5df24b2e67445f24a2f623215..761a60314e8fb663d9a60af4116bd96a7e5839e2 100644 --- a/tensorflow/contrib/lite/examples/android/BUILD +++ b/tensorflow/lite/examples/android/BUILD @@ -33,14 +33,14 @@ android_binary( # Remove undesired models (and corresponding Activities in source) # to reduce APK size. assets = [ - "//tensorflow/contrib/lite/examples/android/app/src/main/assets:labels_mobilenet_quant_v1_224.txt", + "//tensorflow/lite/examples/android/app/src/main/assets:labels_mobilenet_quant_v1_224.txt", "@tflite_mobilenet//:mobilenet_quant_v1_224.tflite", "@tflite_conv_actions_frozen//:conv_actions_frozen.tflite", - "//tensorflow/contrib/lite/examples/android/app/src/main/assets:conv_actions_labels.txt", + "//tensorflow/lite/examples/android/app/src/main/assets:conv_actions_labels.txt", "@tflite_mobilenet_ssd//:mobilenet_ssd.tflite", "@tflite_mobilenet_ssd_quant//:detect.tflite", - "//tensorflow/contrib/lite/examples/android/app/src/main/assets:box_priors.txt", - "//tensorflow/contrib/lite/examples/android/app/src/main/assets:coco_labels_list.txt", + "//tensorflow/lite/examples/android/app/src/main/assets:box_priors.txt", + "//tensorflow/lite/examples/android/app/src/main/assets:coco_labels_list.txt", ], assets_dir = "", custom_package = "org.tensorflow.lite.demo", @@ -56,6 +56,6 @@ android_binary( ], deps = [ ":tensorflow_native_libs", - "//tensorflow/contrib/lite/java:tensorflowlite", + "//tensorflow/lite/java:tensorflowlite", ], ) diff --git a/tensorflow/contrib/lite/examples/android/android.iml b/tensorflow/lite/examples/android/android.iml similarity index 100% rename from tensorflow/contrib/lite/examples/android/android.iml rename to tensorflow/lite/examples/android/android.iml diff --git a/tensorflow/contrib/lite/examples/android/app/README.md b/tensorflow/lite/examples/android/app/README.md similarity index 94% rename from tensorflow/contrib/lite/examples/android/app/README.md rename to tensorflow/lite/examples/android/app/README.md index 7347147f997540e67c2c713b597dc90d933c5cb8..e2b1b2691bb926e9dbdcb73a246d31cc51ac78c6 100644 --- a/tensorflow/contrib/lite/examples/android/app/README.md +++ b/tensorflow/lite/examples/android/app/README.md @@ -43,12 +43,12 @@ for our external and internal code to merge. ```shell bazel build -c opt --cxxopt='--std=c++11' --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a \ - //tensorflow/contrib/lite/examples/android:tflite_demo + //tensorflow/lite/examples/android:tflite_demo ``` 3. Install the demo on a [debug-enabled device](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install): ```shell - adb install bazel-bin/tensorflow/contrib/lite/examples/android/tflite_demo.apk + adb install bazel-bin/tensorflow/lite/examples/android/tflite_demo.apk ``` diff --git a/tensorflow/contrib/lite/examples/android/app/build.gradle b/tensorflow/lite/examples/android/app/build.gradle similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/build.gradle rename to tensorflow/lite/examples/android/app/build.gradle diff --git a/tensorflow/contrib/lite/examples/android/app/download-models.gradle b/tensorflow/lite/examples/android/app/download-models.gradle similarity index 96% rename from tensorflow/contrib/lite/examples/android/app/download-models.gradle rename to tensorflow/lite/examples/android/app/download-models.gradle index c100e37c16f38a65f7b1f64a3f6e3eaa1477e8eb..d2f03db5f6373b8f679d55464dbfbf01ab8bd0c0 100644 --- a/tensorflow/contrib/lite/examples/android/app/download-models.gradle +++ b/tensorflow/lite/examples/android/app/download-models.gradle @@ -14,7 +14,7 @@ def models = ['conv_actions_tflite.zip', 'mobilenet_ssd_tflite_v1.zip', 'mobilenet_v1_224_android_quant_2017_11_08.zip', 'coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip'] -// LINT.ThenChange(//tensorflow/contrib/lite/examples/android/BUILD) +// LINT.ThenChange(//tensorflow/lite/examples/android/BUILD) // Root URL for model archives def MODEL_URL = 'https://storage.googleapis.com/download.tensorflow.org/models/tflite' diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/AndroidManifest.xml b/tensorflow/lite/examples/android/app/src/main/AndroidManifest.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/AndroidManifest.xml rename to tensorflow/lite/examples/android/app/src/main/AndroidManifest.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/assets/BUILD b/tensorflow/lite/examples/android/app/src/main/assets/BUILD similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/assets/BUILD rename to tensorflow/lite/examples/android/app/src/main/assets/BUILD diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/assets/box_priors.txt b/tensorflow/lite/examples/android/app/src/main/assets/box_priors.txt similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/assets/box_priors.txt rename to tensorflow/lite/examples/android/app/src/main/assets/box_priors.txt diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/assets/coco_labels_list.txt b/tensorflow/lite/examples/android/app/src/main/assets/coco_labels_list.txt similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/assets/coco_labels_list.txt rename to tensorflow/lite/examples/android/app/src/main/assets/coco_labels_list.txt diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/assets/conv_actions_labels.txt b/tensorflow/lite/examples/android/app/src/main/assets/conv_actions_labels.txt similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/assets/conv_actions_labels.txt rename to tensorflow/lite/examples/android/app/src/main/assets/conv_actions_labels.txt diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/assets/labels_mobilenet_quant_v1_224.txt b/tensorflow/lite/examples/android/app/src/main/assets/labels_mobilenet_quant_v1_224.txt similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/assets/labels_mobilenet_quant_v1_224.txt rename to tensorflow/lite/examples/android/app/src/main/assets/labels_mobilenet_quant_v1_224.txt diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/assets/pets_labels_list.txt b/tensorflow/lite/examples/android/app/src/main/assets/pets_labels_list.txt similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/assets/pets_labels_list.txt rename to tensorflow/lite/examples/android/app/src/main/assets/pets_labels_list.txt diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/AutoFitTextureView.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/AutoFitTextureView.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/AutoFitTextureView.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/AutoFitTextureView.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/CameraActivity.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/CameraActivity.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/CameraActivity.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/CameraActivity.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/CameraConnectionFragment.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/CameraConnectionFragment.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/CameraConnectionFragment.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/CameraConnectionFragment.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/Classifier.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/Classifier.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/Classifier.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/Classifier.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/ClassifierActivity.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/ClassifierActivity.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/ClassifierActivity.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/ClassifierActivity.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/DetectorActivity.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/DetectorActivity.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/DetectorActivity.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/DetectorActivity.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/LegacyCameraConnectionFragment.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/LegacyCameraConnectionFragment.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/LegacyCameraConnectionFragment.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/LegacyCameraConnectionFragment.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/OverlayView.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/OverlayView.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/OverlayView.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/OverlayView.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/RecognitionScoreView.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/RecognitionScoreView.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/RecognitionScoreView.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/RecognitionScoreView.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/RecognizeCommands.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/RecognizeCommands.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/RecognizeCommands.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/RecognizeCommands.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/ResultsView.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/ResultsView.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/ResultsView.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/ResultsView.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/SpeechActivity.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/SpeechActivity.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/SpeechActivity.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/SpeechActivity.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/TFLiteImageClassifier.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/TFLiteImageClassifier.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/TFLiteImageClassifier.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/TFLiteImageClassifier.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/TFLiteObjectDetectionAPIModel.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/TFLiteObjectDetectionAPIModel.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/TFLiteObjectDetectionAPIModel.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/TFLiteObjectDetectionAPIModel.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/AssetUtils.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/AssetUtils.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/AssetUtils.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/AssetUtils.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/BorderedText.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/BorderedText.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/BorderedText.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/BorderedText.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/ImageUtils.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/ImageUtils.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/ImageUtils.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/ImageUtils.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/Logger.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/Logger.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/Logger.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/Logger.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/Size.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/Size.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/Size.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/Size.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/SplitTimer.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/SplitTimer.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/SplitTimer.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/env/SplitTimer.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/MultiBoxTracker.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/MultiBoxTracker.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/MultiBoxTracker.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/MultiBoxTracker.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/ObjectTracker.java b/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/ObjectTracker.java similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/ObjectTracker.java rename to tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/tracking/ObjectTracker.java diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/animator/color_animation.xml b/tensorflow/lite/examples/android/app/src/main/res/animator/color_animation.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/animator/color_animation.xml rename to tensorflow/lite/examples/android/app/src/main/res/animator/color_animation.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-hdpi/ic_action_info.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-hdpi/ic_action_info.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-hdpi/ic_action_info.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-hdpi/ic_action_info.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-hdpi/ic_launcher.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-hdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-hdpi/ic_launcher.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-hdpi/tile.9.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-hdpi/tile.9.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-hdpi/tile.9.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-hdpi/tile.9.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-mdpi/ic_action_info.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-mdpi/ic_action_info.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-mdpi/ic_action_info.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-mdpi/ic_action_info.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-mdpi/ic_launcher.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-mdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-mdpi/ic_launcher.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-mdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-xhdpi/ic_action_info.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-xhdpi/ic_action_info.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-xhdpi/ic_action_info.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-xhdpi/ic_action_info.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-xhdpi/ic_launcher.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-xhdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-xhdpi/ic_launcher.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-xhdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-xxhdpi/ic_action_info.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-xxhdpi/ic_action_info.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-xxhdpi/ic_action_info.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-xxhdpi/ic_action_info.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/tensorflow/lite/examples/android/app/src/main/res/drawable-xxhdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable-xxhdpi/ic_launcher.png rename to tensorflow/lite/examples/android/app/src/main/res/drawable-xxhdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/drawable/border.xml b/tensorflow/lite/examples/android/app/src/main/res/drawable/border.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/drawable/border.xml rename to tensorflow/lite/examples/android/app/src/main/res/drawable/border.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/layout/activity_camera.xml b/tensorflow/lite/examples/android/app/src/main/res/layout/activity_camera.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/layout/activity_camera.xml rename to tensorflow/lite/examples/android/app/src/main/res/layout/activity_camera.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/layout/activity_speech.xml b/tensorflow/lite/examples/android/app/src/main/res/layout/activity_speech.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/layout/activity_speech.xml rename to tensorflow/lite/examples/android/app/src/main/res/layout/activity_speech.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/layout/camera_connection_fragment.xml b/tensorflow/lite/examples/android/app/src/main/res/layout/camera_connection_fragment.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/layout/camera_connection_fragment.xml rename to tensorflow/lite/examples/android/app/src/main/res/layout/camera_connection_fragment.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/layout/camera_connection_fragment_stylize.xml b/tensorflow/lite/examples/android/app/src/main/res/layout/camera_connection_fragment_stylize.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/layout/camera_connection_fragment_stylize.xml rename to tensorflow/lite/examples/android/app/src/main/res/layout/camera_connection_fragment_stylize.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/layout/camera_connection_fragment_tracking.xml b/tensorflow/lite/examples/android/app/src/main/res/layout/camera_connection_fragment_tracking.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/layout/camera_connection_fragment_tracking.xml rename to tensorflow/lite/examples/android/app/src/main/res/layout/camera_connection_fragment_tracking.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/layout/list_text_item.xml b/tensorflow/lite/examples/android/app/src/main/res/layout/list_text_item.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/layout/list_text_item.xml rename to tensorflow/lite/examples/android/app/src/main/res/layout/list_text_item.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values-sw600dp/template-dimens.xml b/tensorflow/lite/examples/android/app/src/main/res/values-sw600dp/template-dimens.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values-sw600dp/template-dimens.xml rename to tensorflow/lite/examples/android/app/src/main/res/values-sw600dp/template-dimens.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values-sw600dp/template-styles.xml b/tensorflow/lite/examples/android/app/src/main/res/values-sw600dp/template-styles.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values-sw600dp/template-styles.xml rename to tensorflow/lite/examples/android/app/src/main/res/values-sw600dp/template-styles.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values-v11/styles.xml b/tensorflow/lite/examples/android/app/src/main/res/values-v11/styles.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values-v11/styles.xml rename to tensorflow/lite/examples/android/app/src/main/res/values-v11/styles.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values-v11/template-styles.xml b/tensorflow/lite/examples/android/app/src/main/res/values-v11/template-styles.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values-v11/template-styles.xml rename to tensorflow/lite/examples/android/app/src/main/res/values-v11/template-styles.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values-v14/styles.xml b/tensorflow/lite/examples/android/app/src/main/res/values-v14/styles.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values-v14/styles.xml rename to tensorflow/lite/examples/android/app/src/main/res/values-v14/styles.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values-v21/base-colors.xml b/tensorflow/lite/examples/android/app/src/main/res/values-v21/base-colors.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values-v21/base-colors.xml rename to tensorflow/lite/examples/android/app/src/main/res/values-v21/base-colors.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values-v21/base-template-styles.xml b/tensorflow/lite/examples/android/app/src/main/res/values-v21/base-template-styles.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values-v21/base-template-styles.xml rename to tensorflow/lite/examples/android/app/src/main/res/values-v21/base-template-styles.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values/attrs.xml b/tensorflow/lite/examples/android/app/src/main/res/values/attrs.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values/attrs.xml rename to tensorflow/lite/examples/android/app/src/main/res/values/attrs.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values/base-strings.xml b/tensorflow/lite/examples/android/app/src/main/res/values/base-strings.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values/base-strings.xml rename to tensorflow/lite/examples/android/app/src/main/res/values/base-strings.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values/colors.xml b/tensorflow/lite/examples/android/app/src/main/res/values/colors.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values/colors.xml rename to tensorflow/lite/examples/android/app/src/main/res/values/colors.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values/strings.xml b/tensorflow/lite/examples/android/app/src/main/res/values/strings.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values/strings.xml rename to tensorflow/lite/examples/android/app/src/main/res/values/strings.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values/styles.xml b/tensorflow/lite/examples/android/app/src/main/res/values/styles.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values/styles.xml rename to tensorflow/lite/examples/android/app/src/main/res/values/styles.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values/template-dimens.xml b/tensorflow/lite/examples/android/app/src/main/res/values/template-dimens.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values/template-dimens.xml rename to tensorflow/lite/examples/android/app/src/main/res/values/template-dimens.xml diff --git a/tensorflow/contrib/lite/examples/android/app/src/main/res/values/template-styles.xml b/tensorflow/lite/examples/android/app/src/main/res/values/template-styles.xml similarity index 100% rename from tensorflow/contrib/lite/examples/android/app/src/main/res/values/template-styles.xml rename to tensorflow/lite/examples/android/app/src/main/res/values/template-styles.xml diff --git a/tensorflow/contrib/lite/examples/android/build.gradle b/tensorflow/lite/examples/android/build.gradle similarity index 100% rename from tensorflow/contrib/lite/examples/android/build.gradle rename to tensorflow/lite/examples/android/build.gradle diff --git a/tensorflow/contrib/lite/examples/android/settings.gradle b/tensorflow/lite/examples/android/settings.gradle similarity index 100% rename from tensorflow/contrib/lite/examples/android/settings.gradle rename to tensorflow/lite/examples/android/settings.gradle diff --git a/tensorflow/contrib/lite/examples/ios/camera/.gitignore b/tensorflow/lite/examples/ios/camera/.gitignore similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/.gitignore rename to tensorflow/lite/examples/ios/camera/.gitignore diff --git a/tensorflow/contrib/lite/examples/ios/camera/CameraExampleAppDelegate.h b/tensorflow/lite/examples/ios/camera/CameraExampleAppDelegate.h similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/CameraExampleAppDelegate.h rename to tensorflow/lite/examples/ios/camera/CameraExampleAppDelegate.h diff --git a/tensorflow/contrib/lite/examples/ios/camera/CameraExampleAppDelegate.m b/tensorflow/lite/examples/ios/camera/CameraExampleAppDelegate.m similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/CameraExampleAppDelegate.m rename to tensorflow/lite/examples/ios/camera/CameraExampleAppDelegate.m diff --git a/tensorflow/contrib/lite/examples/ios/camera/CameraExampleViewController.h b/tensorflow/lite/examples/ios/camera/CameraExampleViewController.h similarity index 94% rename from tensorflow/contrib/lite/examples/ios/camera/CameraExampleViewController.h rename to tensorflow/lite/examples/ios/camera/CameraExampleViewController.h index fb5800e86d365b56f1b52147c3f9cc8d7211f8c3..6bc94e950220b952c5763df8cfda1610a67f89f8 100644 --- a/tensorflow/contrib/lite/examples/ios/camera/CameraExampleViewController.h +++ b/tensorflow/lite/examples/ios/camera/CameraExampleViewController.h @@ -17,8 +17,8 @@ #include -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" @interface CameraExampleViewController : UIViewController { diff --git a/tensorflow/contrib/lite/examples/ios/camera/CameraExampleViewController.mm b/tensorflow/lite/examples/ios/camera/CameraExampleViewController.mm similarity index 99% rename from tensorflow/contrib/lite/examples/ios/camera/CameraExampleViewController.mm rename to tensorflow/lite/examples/ios/camera/CameraExampleViewController.mm index 996cff26162021f1ab8d3f8253c3a12333ef3a1f..1e6725592b0c6b7a9f2883fb51d50d3ad9f6292d 100644 --- a/tensorflow/contrib/lite/examples/ios/camera/CameraExampleViewController.mm +++ b/tensorflow/lite/examples/ios/camera/CameraExampleViewController.mm @@ -23,10 +23,10 @@ #include #include -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/string_util.h" -#include "tensorflow/contrib/lite/op_resolver.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/string_util.h" +#include "tensorflow/lite/op_resolver.h" #define LOG(x) std::cerr diff --git a/tensorflow/contrib/lite/examples/ios/camera/Info.plist b/tensorflow/lite/examples/ios/camera/Info.plist similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/Info.plist rename to tensorflow/lite/examples/ios/camera/Info.plist diff --git a/tensorflow/contrib/lite/examples/ios/camera/MainStoryboard_iPhone.storyboard b/tensorflow/lite/examples/ios/camera/MainStoryboard_iPhone.storyboard similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/MainStoryboard_iPhone.storyboard rename to tensorflow/lite/examples/ios/camera/MainStoryboard_iPhone.storyboard diff --git a/tensorflow/contrib/lite/examples/ios/camera/Podfile b/tensorflow/lite/examples/ios/camera/Podfile similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/Podfile rename to tensorflow/lite/examples/ios/camera/Podfile diff --git a/tensorflow/contrib/lite/examples/ios/camera/README.md b/tensorflow/lite/examples/ios/camera/README.md similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/README.md rename to tensorflow/lite/examples/ios/camera/README.md diff --git a/tensorflow/contrib/lite/examples/ios/camera/data/.gitignore b/tensorflow/lite/examples/ios/camera/data/.gitignore similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/data/.gitignore rename to tensorflow/lite/examples/ios/camera/data/.gitignore diff --git a/tensorflow/contrib/lite/examples/ios/camera/main.mm b/tensorflow/lite/examples/ios/camera/main.mm similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/main.mm rename to tensorflow/lite/examples/ios/camera/main.mm diff --git a/tensorflow/contrib/lite/examples/ios/camera/tflite_camera_example.xcodeproj/project.pbxproj b/tensorflow/lite/examples/ios/camera/tflite_camera_example.xcodeproj/project.pbxproj similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/tflite_camera_example.xcodeproj/project.pbxproj rename to tensorflow/lite/examples/ios/camera/tflite_camera_example.xcodeproj/project.pbxproj diff --git a/tensorflow/contrib/lite/examples/ios/camera/tflite_camera_example_with_select_tf_ops.xcodeproj/project.pbxproj b/tensorflow/lite/examples/ios/camera/tflite_camera_example_with_select_tf_ops.xcodeproj/project.pbxproj similarity index 100% rename from tensorflow/contrib/lite/examples/ios/camera/tflite_camera_example_with_select_tf_ops.xcodeproj/project.pbxproj rename to tensorflow/lite/examples/ios/camera/tflite_camera_example_with_select_tf_ops.xcodeproj/project.pbxproj diff --git a/tensorflow/contrib/lite/examples/ios/download_models.sh b/tensorflow/lite/examples/ios/download_models.sh similarity index 100% rename from tensorflow/contrib/lite/examples/ios/download_models.sh rename to tensorflow/lite/examples/ios/download_models.sh diff --git a/tensorflow/contrib/lite/examples/ios/simple/AppDelegate.h b/tensorflow/lite/examples/ios/simple/AppDelegate.h similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/AppDelegate.h rename to tensorflow/lite/examples/ios/simple/AppDelegate.h diff --git a/tensorflow/contrib/lite/examples/ios/simple/AppDelegate.mm b/tensorflow/lite/examples/ios/simple/AppDelegate.mm similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/AppDelegate.mm rename to tensorflow/lite/examples/ios/simple/AppDelegate.mm diff --git a/tensorflow/contrib/lite/examples/ios/simple/Podfile b/tensorflow/lite/examples/ios/simple/Podfile similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/Podfile rename to tensorflow/lite/examples/ios/simple/Podfile diff --git a/tensorflow/contrib/lite/examples/ios/simple/RunModel-Info.plist b/tensorflow/lite/examples/ios/simple/RunModel-Info.plist similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/RunModel-Info.plist rename to tensorflow/lite/examples/ios/simple/RunModel-Info.plist diff --git a/tensorflow/contrib/lite/examples/ios/simple/RunModelViewController.h b/tensorflow/lite/examples/ios/simple/RunModelViewController.h similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/RunModelViewController.h rename to tensorflow/lite/examples/ios/simple/RunModelViewController.h diff --git a/tensorflow/contrib/lite/examples/ios/simple/RunModelViewController.mm b/tensorflow/lite/examples/ios/simple/RunModelViewController.mm similarity index 97% rename from tensorflow/contrib/lite/examples/ios/simple/RunModelViewController.mm rename to tensorflow/lite/examples/ios/simple/RunModelViewController.mm index 650c73f7322c3169e60231ce52e86d2cdc86d0a4..e5764944f665077f8f97362888b34070de36c0ec 100644 --- a/tensorflow/contrib/lite/examples/ios/simple/RunModelViewController.mm +++ b/tensorflow/lite/examples/ios/simple/RunModelViewController.mm @@ -22,10 +22,10 @@ #include #include -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/string_util.h" -#include "tensorflow/contrib/lite/op_resolver.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/string_util.h" +#include "tensorflow/lite/op_resolver.h" #include "ios_image_load.h" diff --git a/tensorflow/contrib/lite/examples/ios/simple/RunModelViewController.xib b/tensorflow/lite/examples/ios/simple/RunModelViewController.xib similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/RunModelViewController.xib rename to tensorflow/lite/examples/ios/simple/RunModelViewController.xib diff --git a/tensorflow/contrib/lite/examples/ios/simple/data/grace_hopper.jpg b/tensorflow/lite/examples/ios/simple/data/grace_hopper.jpg similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/data/grace_hopper.jpg rename to tensorflow/lite/examples/ios/simple/data/grace_hopper.jpg diff --git a/tensorflow/contrib/lite/examples/ios/simple/ios_image_load.h b/tensorflow/lite/examples/ios/simple/ios_image_load.h similarity index 78% rename from tensorflow/contrib/lite/examples/ios/simple/ios_image_load.h rename to tensorflow/lite/examples/ios/simple/ios_image_load.h index 96d28109375a71de87dcc0b7957ed557ee30be99..74c6cf3c7b1ac60f7743ce042fdbdf629d2c75da 100644 --- a/tensorflow/contrib/lite/examples/ios/simple/ios_image_load.h +++ b/tensorflow/lite/examples/ios/simple/ios_image_load.h @@ -12,12 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#ifndef TENSORFLOW_CONTRIB_LITE_EXAMPLES_IOS_SIMPLE_IOS_IMAGE_LOAD_H_ -#define TENSORFLOW_CONTRIB_LITE_EXAMPLES_IOS_SIMPLE_IOS_IMAGE_LOAD_H_ +#ifndef TENSORFLOW_LITE_EXAMPLES_IOS_SIMPLE_IOS_IMAGE_LOAD_H_ +#define TENSORFLOW_LITE_EXAMPLES_IOS_SIMPLE_IOS_IMAGE_LOAD_H_ #include std::vector LoadImageFromFile(const char* file_name, int* out_width, int* out_height, int* out_channels); -#endif // TENSORFLOW_CONTRIB_LITE_EXAMPLES_IOS_SIMPLE_IOS_IMAGE_LOAD_H_ +#endif // TENSORFLOW_LITE_EXAMPLES_IOS_SIMPLE_IOS_IMAGE_LOAD_H_ diff --git a/tensorflow/contrib/lite/examples/ios/simple/ios_image_load.mm b/tensorflow/lite/examples/ios/simple/ios_image_load.mm similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/ios_image_load.mm rename to tensorflow/lite/examples/ios/simple/ios_image_load.mm diff --git a/tensorflow/contrib/lite/examples/ios/simple/main.mm b/tensorflow/lite/examples/ios/simple/main.mm similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/main.mm rename to tensorflow/lite/examples/ios/simple/main.mm diff --git a/tensorflow/contrib/lite/examples/ios/simple/simple.xcodeproj/project.pbxproj b/tensorflow/lite/examples/ios/simple/simple.xcodeproj/project.pbxproj similarity index 100% rename from tensorflow/contrib/lite/examples/ios/simple/simple.xcodeproj/project.pbxproj rename to tensorflow/lite/examples/ios/simple/simple.xcodeproj/project.pbxproj diff --git a/tensorflow/contrib/lite/examples/label_image/BUILD b/tensorflow/lite/examples/label_image/BUILD similarity index 67% rename from tensorflow/contrib/lite/examples/label_image/BUILD rename to tensorflow/lite/examples/label_image/BUILD index fc55a78019b4a12b24231034a7e4b912869389f2..de1bfd7053256538e4516b681d78b040bf9aec0d 100644 --- a/tensorflow/contrib/lite/examples/label_image/BUILD +++ b/tensorflow/lite/examples/label_image/BUILD @@ -6,7 +6,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Apache 2.0 load("//tensorflow:tensorflow.bzl", "tf_cc_binary") -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_linkopts") +load("//tensorflow/lite:build_def.bzl", "tflite_linkopts") exports_files(glob([ "testdata/*.bmp", @@ -28,9 +28,9 @@ tf_cc_binary( }), deps = [ ":bitmap_helpers", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:builtin_ops", ], ) @@ -43,13 +43,13 @@ cc_library( "label_image.h", ], deps = [ - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite:string", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/schema:schema_fbs", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite:string", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/schema:schema_fbs", ], ) diff --git a/tensorflow/contrib/lite/examples/label_image/bitmap_helpers.cc b/tensorflow/lite/examples/label_image/bitmap_helpers.cc similarity index 98% rename from tensorflow/contrib/lite/examples/label_image/bitmap_helpers.cc rename to tensorflow/lite/examples/label_image/bitmap_helpers.cc index 2735d1f5ea4e2a104f71a3a6f874d9acb2f48142..0adad68ddca8927835fbe4101f58ae093db6d469 100644 --- a/tensorflow/contrib/lite/examples/label_image/bitmap_helpers.cc +++ b/tensorflow/lite/examples/label_image/bitmap_helpers.cc @@ -21,7 +21,7 @@ limitations under the License. #include // NOLINT(build/include_order) -#include "tensorflow/contrib/lite/examples/label_image/bitmap_helpers.h" +#include "tensorflow/lite/examples/label_image/bitmap_helpers.h" #define LOG(x) std::cerr diff --git a/tensorflow/contrib/lite/examples/label_image/bitmap_helpers.h b/tensorflow/lite/examples/label_image/bitmap_helpers.h similarity index 79% rename from tensorflow/contrib/lite/examples/label_image/bitmap_helpers.h rename to tensorflow/lite/examples/label_image/bitmap_helpers.h index 7881ee80cad4327e5f498ecb089358ea0dd6f121..05209963a16c1280a7d77718b8badbd699e07a6c 100644 --- a/tensorflow/contrib/lite/examples/label_image/bitmap_helpers.h +++ b/tensorflow/lite/examples/label_image/bitmap_helpers.h @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_H_ -#define TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_H_ +#ifndef TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_H_ +#define TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_H_ -#include "tensorflow/contrib/lite/examples/label_image/bitmap_helpers_impl.h" -#include "tensorflow/contrib/lite/examples/label_image/label_image.h" +#include "tensorflow/lite/examples/label_image/bitmap_helpers_impl.h" +#include "tensorflow/lite/examples/label_image/label_image.h" namespace tflite { namespace label_image { @@ -39,4 +39,4 @@ template void resize(float*, unsigned char*, int, int, int, int, int, } // namespace label_image } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_H_ +#endif // TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_H_ diff --git a/tensorflow/contrib/lite/examples/label_image/bitmap_helpers_impl.h b/tensorflow/lite/examples/label_image/bitmap_helpers_impl.h similarity index 84% rename from tensorflow/contrib/lite/examples/label_image/bitmap_helpers_impl.h rename to tensorflow/lite/examples/label_image/bitmap_helpers_impl.h index 21ad39a6bf75e536ed099cb6120407be880404f0..b581d8077342138a0591f7c49073d468b2c6fbbf 100644 --- a/tensorflow/contrib/lite/examples/label_image/bitmap_helpers_impl.h +++ b/tensorflow/lite/examples/label_image/bitmap_helpers_impl.h @@ -13,16 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_IMPL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_IMPL_H_ +#ifndef TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_IMPL_H_ +#define TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_IMPL_H_ -#include "tensorflow/contrib/lite/examples/label_image/label_image.h" +#include "tensorflow/lite/examples/label_image/label_image.h" -#include "tensorflow/contrib/lite/builtin_op_data.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/string_util.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/builtin_op_data.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/string_util.h" +#include "tensorflow/lite/version.h" namespace tflite { namespace label_image { @@ -93,4 +93,4 @@ void resize(T* out, uint8_t* in, int image_height, int image_width, } // namespace label_image } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_IMPL_H_ +#endif // TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_BITMAP_HELPERS_IMPL_H_ diff --git a/tensorflow/contrib/lite/examples/label_image/get_top_n.h b/tensorflow/lite/examples/label_image/get_top_n.h similarity index 82% rename from tensorflow/contrib/lite/examples/label_image/get_top_n.h rename to tensorflow/lite/examples/label_image/get_top_n.h index adef434c00a6808786557e30f8f9b09364968707..47fea2f775826d7545dbb5f66a7b897c6a250a9c 100644 --- a/tensorflow/contrib/lite/examples/label_image/get_top_n.h +++ b/tensorflow/lite/examples/label_image/get_top_n.h @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_H_ -#define TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_H_ +#ifndef TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_H_ +#define TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_H_ -#include "tensorflow/contrib/lite/examples/label_image/get_top_n_impl.h" +#include "tensorflow/lite/examples/label_image/get_top_n_impl.h" namespace tflite { namespace label_image { @@ -35,4 +35,4 @@ template void get_top_n(float*, int, size_t, float, } // namespace label_image } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_H_ +#endif // TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_H_ diff --git a/tensorflow/contrib/lite/examples/label_image/get_top_n_impl.h b/tensorflow/lite/examples/label_image/get_top_n_impl.h similarity index 90% rename from tensorflow/contrib/lite/examples/label_image/get_top_n_impl.h rename to tensorflow/lite/examples/label_image/get_top_n_impl.h index 708cf2f2b1cab96f76520321b49382dd2276ec8a..563ac09114c2343233878befc15d8772f5de9fe1 100644 --- a/tensorflow/contrib/lite/examples/label_image/get_top_n_impl.h +++ b/tensorflow/lite/examples/label_image/get_top_n_impl.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_IMPL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_IMPL_H_ +#ifndef TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_IMPL_H_ +#define TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_IMPL_H_ #include #include @@ -67,4 +67,4 @@ void get_top_n(T* prediction, int prediction_size, size_t num_results, } // namespace label_image } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_IMPL_H_ +#endif // TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_GET_TOP_N_IMPL_H_ diff --git a/tensorflow/contrib/lite/examples/label_image/label_image.cc b/tensorflow/lite/examples/label_image/label_image.cc similarity index 97% rename from tensorflow/contrib/lite/examples/label_image/label_image.cc rename to tensorflow/lite/examples/label_image/label_image.cc index 7c6f523041ad5a516f348c1b4f66683128838228..b8dc2840dfb49f8c067fbd2bf09432f7b06d6265 100644 --- a/tensorflow/contrib/lite/examples/label_image/label_image.cc +++ b/tensorflow/lite/examples/label_image/label_image.cc @@ -32,13 +32,13 @@ limitations under the License. #include // NOLINT(build/include_order) #include // NOLINT(build/include_order) -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/optional_debug_tools.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/optional_debug_tools.h" +#include "tensorflow/lite/string_util.h" -#include "tensorflow/contrib/lite/examples/label_image/bitmap_helpers.h" -#include "tensorflow/contrib/lite/examples/label_image/get_top_n.h" +#include "tensorflow/lite/examples/label_image/bitmap_helpers.h" +#include "tensorflow/lite/examples/label_image/get_top_n.h" #define LOG(x) std::cerr diff --git a/tensorflow/contrib/lite/examples/label_image/label_image.h b/tensorflow/lite/examples/label_image/label_image.h similarity index 82% rename from tensorflow/contrib/lite/examples/label_image/label_image.h rename to tensorflow/lite/examples/label_image/label_image.h index f0be881b58573a84c34c362c827845a723c23c4d..88b047fecc4b3efd10ef025193a79516516c03f1 100644 --- a/tensorflow/contrib/lite/examples/label_image/label_image.h +++ b/tensorflow/lite/examples/label_image/label_image.h @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H_ -#define TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H_ +#ifndef TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H_ +#define TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H_ -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace label_image { @@ -40,4 +40,4 @@ struct Settings { } // namespace label_image } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H_ +#endif // TENSORFLOW_LITE_EXAMPLES_LABEL_IMAGE_LABEL_IMAGE_H_ diff --git a/tensorflow/contrib/lite/examples/label_image/label_image.md b/tensorflow/lite/examples/label_image/label_image.md similarity index 84% rename from tensorflow/contrib/lite/examples/label_image/label_image.md rename to tensorflow/lite/examples/label_image/label_image.md index 9ce32cf101897f2d41cd14a485aeb432344928a0..fd9f49918b4494eab845da7716a350ad6246f532 100644 --- a/tensorflow/contrib/lite/examples/label_image/label_image.md +++ b/tensorflow/lite/examples/label_image/label_image.md @@ -10,12 +10,12 @@ To build it for android ARMv8: --crosstool_top=//external:android/crosstool \ --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \ --cpu=arm64-v8a \ - //tensorflow/contrib/lite/examples/label_image:label_image + //tensorflow/lite/examples/label_image:label_image ``` or ``` > bazel build --config android_arm64 --config monolithic --cxxopt=-std=c++11 \ - //tensorflow/contrib/lite/examples/label_image:label_image + //tensorflow/lite/examples/label_image:label_image ``` To build it for android arm-v7a: @@ -24,17 +24,17 @@ To build it for android arm-v7a: --crosstool_top=//external:android/crosstool \ --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \ --cpu=armeabi-v7a \ - //tensorflow/contrib/lite/examples/label_image:label_image + //tensorflow/lite/examples/label_image:label_image ``` or ``` > bazel build --config android_arm --config monolithic --cxxopt=-std=c++11 \ - //tensorflow/contrib/lite/examples/label_image:label_image + //tensorflow/lite/examples/label_image:label_image ``` Build it for desktop machines (tested on Ubuntu and OS X) ``` -> bazel build --config opt --cxxopt=-std=c++11 //tensorflow/contrib/lite/examples/label_image:label_image +> bazel build --config opt --cxxopt=-std=c++11 //tensorflow/lite/examples/label_image:label_image ``` To run it. Prepare `./mobilenet_quant_v1_224.tflite`, `./grace_hopper.bmp`, and `./labels.txt`. diff --git a/tensorflow/contrib/lite/examples/label_image/label_image_test.cc b/tensorflow/lite/examples/label_image/label_image_test.cc similarity index 86% rename from tensorflow/contrib/lite/examples/label_image/label_image_test.cc rename to tensorflow/lite/examples/label_image/label_image_test.cc index de7de21f7741d3d46cb96e793e8bc4bfb21384fe..6b4ec2a9374ca58a227506ec312c9374c1a7fee3 100644 --- a/tensorflow/contrib/lite/examples/label_image/label_image_test.cc +++ b/tensorflow/lite/examples/label_image/label_image_test.cc @@ -16,9 +16,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/examples/label_image/bitmap_helpers.h" -#include "tensorflow/contrib/lite/examples/label_image/get_top_n.h" -#include "tensorflow/contrib/lite/examples/label_image/label_image.h" +#include "tensorflow/lite/examples/label_image/bitmap_helpers.h" +#include "tensorflow/lite/examples/label_image/get_top_n.h" +#include "tensorflow/lite/examples/label_image/label_image.h" using ::testing::ElementsAreArray; @@ -27,7 +27,7 @@ namespace label_image { TEST(LabelImageTest, GraceHopper) { std::string lena_file = - "tensorflow/contrib/lite/examples/label_image/testdata/" + "tensorflow/lite/examples/label_image/testdata/" "grace_hopper.bmp"; int height, width, channels; Settings s; diff --git a/tensorflow/contrib/lite/examples/label_image/testdata/grace_hopper.bmp b/tensorflow/lite/examples/label_image/testdata/grace_hopper.bmp similarity index 100% rename from tensorflow/contrib/lite/examples/label_image/testdata/grace_hopper.bmp rename to tensorflow/lite/examples/label_image/testdata/grace_hopper.bmp diff --git a/tensorflow/contrib/lite/examples/minimal/BUILD b/tensorflow/lite/examples/minimal/BUILD similarity index 76% rename from tensorflow/contrib/lite/examples/minimal/BUILD rename to tensorflow/lite/examples/minimal/BUILD index b403628d6c457ce3fb67eac3675fd7bb9187deab..cdd67af1e93661c1f65cc46d9b687acc1fa56fe8 100644 --- a/tensorflow/contrib/lite/examples/minimal/BUILD +++ b/tensorflow/lite/examples/minimal/BUILD @@ -6,7 +6,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Apache 2.0 load("//tensorflow:tensorflow.bzl", "tf_cc_binary") -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_linkopts") +load("//tensorflow/lite:build_def.bzl", "tflite_linkopts") tf_cc_binary( name = "minimal", @@ -21,7 +21,7 @@ tf_cc_binary( "//conditions:default": [], }), deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", ], ) diff --git a/tensorflow/contrib/lite/examples/minimal/minimal.cc b/tensorflow/lite/examples/minimal/minimal.cc similarity index 92% rename from tensorflow/contrib/lite/examples/minimal/minimal.cc rename to tensorflow/lite/examples/minimal/minimal.cc index 8b65cde7b79fde19280ad778ea874c64b01d169a..46f8b09df6cee12cfd7a3767be1e8f501cc5ee4f 100644 --- a/tensorflow/contrib/lite/examples/minimal/minimal.cc +++ b/tensorflow/lite/examples/minimal/minimal.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/optional_debug_tools.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/optional_debug_tools.h" // This is an example that is minimal to read a model // from disk and perform inference. There is no data being loaded diff --git a/tensorflow/contrib/lite/examples/python/BUILD b/tensorflow/lite/examples/python/BUILD similarity index 83% rename from tensorflow/contrib/lite/examples/python/BUILD rename to tensorflow/lite/examples/python/BUILD index d337c3ddc43a23e50a5afdab93b16c0f61ccd538..a606d1aa563261142ce155082ab92c14a5c34610 100644 --- a/tensorflow/contrib/lite/examples/python/BUILD +++ b/tensorflow/lite/examples/python/BUILD @@ -8,6 +8,6 @@ py_binary( main = "label_image.py", srcs_version = "PY2AND3", deps = [ - "//tensorflow/contrib/lite/python:lite", + "//tensorflow/lite/python:lite", ], ) diff --git a/tensorflow/contrib/lite/examples/python/label_image.md b/tensorflow/lite/examples/python/label_image.md similarity index 81% rename from tensorflow/contrib/lite/examples/python/label_image.md rename to tensorflow/lite/examples/python/label_image.md index e81192a96c142f2b3e7e85d160166fdd37ccdc53..b4ec42f52594cfc320bfc5b7d5b65bb83ef0665d 100644 --- a/tensorflow/contrib/lite/examples/python/label_image.md +++ b/tensorflow/lite/examples/python/label_image.md @@ -6,7 +6,7 @@ The example input image and labels file are from TensorFlow repo and MobileNet V1 model files. ``` -curl https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/contrib/lite/examples/label_image/testdata/grace_hopper.bmp > /tmp/grace_hopper.bmp +curl https://raw.githubusercontent.com/tensorflow/tensorflow/master/tensorflow/lite/examples/label_image/testdata/grace_hopper.bmp > /tmp/grace_hopper.bmp curl https://storage.googleapis.com/download.tensorflow.org/models/mobilenet_v1_1.0_224_frozen.tgz | tar xzv -C /tmp mobilenet_v1_1.0_224/labels.txt mv /tmp/mobilenet_v1_1.0_224/labels.txt /tmp/ @@ -17,7 +17,7 @@ Run ``` curl http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobilenet_v1_1.0_224_quant.tgz | tar xzv -C /tmp -bazel run --config opt //tensorflow/contrib/lite/examples/python:label_image +bazel run --config opt //tensorflow/lite/examples/python:label_image ``` We can get results like @@ -34,7 +34,7 @@ Run ``` curl http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobilenet_v1_1.0_224.tgz | tar xzv -C /tmp -bazel run --config opt //tensorflow/contrib/lite/examples/python:label_image \ +bazel run --config opt //tensorflow/lite/examples/python:label_image \ -- --model_file /tmp/mobilenet_v1_1.0_224.tflite ``` diff --git a/tensorflow/contrib/lite/examples/python/label_image.py b/tensorflow/lite/examples/python/label_image.py similarity index 97% rename from tensorflow/contrib/lite/examples/python/label_image.py rename to tensorflow/lite/examples/python/label_image.py index 282118a1d2b43a08930b24366110a021fc634b5e..0bc15d36a8ac2e25483271a78fbb90b31b709b97 100644 --- a/tensorflow/contrib/lite/examples/python/label_image.py +++ b/tensorflow/lite/examples/python/label_image.py @@ -23,7 +23,7 @@ import numpy as np from PIL import Image -from tensorflow.contrib.lite.python import interpreter as interpreter_wrapper +from tensorflow.lite.python import interpreter as interpreter_wrapper def load_labels(filename): my_labels = [] diff --git a/tensorflow/contrib/lite/experimental/c/BUILD b/tensorflow/lite/experimental/c/BUILD similarity index 63% rename from tensorflow/contrib/lite/experimental/c/BUILD rename to tensorflow/lite/experimental/c/BUILD index 8de063ff5279f2586155431698ff7bedd1a42d9a..5dd62194deac2e035bf9b1c1e46b4fbfbe93c66a 100644 --- a/tensorflow/contrib/lite/experimental/c/BUILD +++ b/tensorflow/lite/experimental/c/BUILD @@ -3,14 +3,14 @@ package(default_visibility = ["//visibility:private"]) package_group( name = "experimental", packages = [ - "//tensorflow/contrib/lite/experimental/...", + "//tensorflow/lite/experimental/...", ], ) licenses(["notice"]) # Apache 2.0 load( - "//tensorflow/contrib/lite:build_def.bzl", + "//tensorflow/lite:build_def.bzl", "tflite_cc_shared_object", "tflite_copts", "tflite_jni_binary", @@ -21,14 +21,14 @@ tflite_cc_shared_object( linkopts = select({ "//tensorflow:darwin": [ "-Wl,-exported_symbols_list", # This line must be directly followed by the exported_symbols.lds file - "$(location //tensorflow/contrib/lite/experimental/c:exported_symbols.lds)", + "$(location //tensorflow/lite/experimental/c:exported_symbols.lds)", "-Wl,-install_name,@rpath/libtensorflowlite_c.so", ], "//tensorflow:windows": [], "//conditions:default": [ "-z defs", "-Wl,--version-script", # This line must be directly followed by the version_script.lds file - "$(location //tensorflow/contrib/lite/experimental/c:version_script.lds)", + "$(location //tensorflow/lite/experimental/c:version_script.lds)", ], }), deps = [ @@ -45,11 +45,11 @@ cc_library( hdrs = ["c_api_internal.h"], copts = tflite_copts(), visibility = [ - "//tensorflow/contrib/lite/experimental/c:__subpackages__", + "//tensorflow/lite/experimental/c:__subpackages__", ], deps = [ - "//tensorflow/contrib/lite:context", - "//tensorflow/contrib/lite:framework", + "//tensorflow/lite:context", + "//tensorflow/lite:framework", ], ) @@ -63,10 +63,10 @@ cc_library( ], deps = [ ":c_api_internal", - "//tensorflow/contrib/lite:context", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:context", + "//tensorflow/lite:framework", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/kernels:builtin_ops", ], ) @@ -78,7 +78,7 @@ cc_library( deps = [ ":c_api", ":c_api_internal", - "//tensorflow/contrib/lite:kernel_api", + "//tensorflow/lite:kernel_api", ], ) @@ -87,14 +87,14 @@ cc_test( size = "small", srcs = ["c_api_test.cc"], data = [ - "//tensorflow/contrib/lite:testdata/add.bin", - "//tensorflow/contrib/lite:testdata/add_quantized.bin", + "//tensorflow/lite:testdata/add.bin", + "//tensorflow/lite:testdata/add_quantized.bin", ], deps = [ ":c_api", - "//tensorflow/contrib/lite:context", - "//tensorflow/contrib/lite:kernel_api", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite:context", + "//tensorflow/lite:kernel_api", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -103,12 +103,12 @@ cc_test( name = "c_api_experimental_test", size = "small", srcs = ["c_api_experimental_test.cc"], - data = ["//tensorflow/contrib/lite:testdata/add.bin"], + data = ["//tensorflow/lite:testdata/add.bin"], deps = [ ":c_api", ":c_api_experimental", - "//tensorflow/contrib/lite:kernel_api", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite:kernel_api", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/experimental/c/c_api.cc b/tensorflow/lite/experimental/c/c_api.cc similarity index 93% rename from tensorflow/contrib/lite/experimental/c/c_api.cc rename to tensorflow/lite/experimental/c/c_api.cc index 7123bec7fefb2327264dcf90e71000c86aa661bd..9caacfeb3614a9d2c0a2a17d799216e2e7e97fe0 100644 --- a/tensorflow/contrib/lite/experimental/c/c_api.cc +++ b/tensorflow/lite/experimental/c/c_api.cc @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/c/c_api.h" +#include "tensorflow/lite/experimental/c/c_api.h" #include -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/error_reporter.h" -#include "tensorflow/contrib/lite/experimental/c/c_api_internal.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/error_reporter.h" +#include "tensorflow/lite/experimental/c/c_api_internal.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" #ifdef __cplusplus extern "C" { @@ -203,7 +203,7 @@ TFL_Status TFL_TensorCopyToBuffer(const TFL_Tensor* tensor, void* output_data, return kTfLiteOk; } -// LINT.ThenChange(//tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs) +// LINT.ThenChange(//tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs) #ifdef __cplusplus } // extern "C" diff --git a/tensorflow/contrib/lite/experimental/c/c_api.h b/tensorflow/lite/experimental/c/c_api.h similarity index 97% rename from tensorflow/contrib/lite/experimental/c/c_api.h rename to tensorflow/lite/experimental/c/c_api.h index 6149af750fbf570151359ceb29021a092894a81e..49089011d1376b35d0a8948b45c77229b12d9802 100644 --- a/tensorflow/contrib/lite/experimental/c/c_api.h +++ b/tensorflow/lite/experimental/c/c_api.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_H_ #include #include @@ -21,7 +21,7 @@ limitations under the License. // Eventually the various C APIs defined in context.h will be migrated into // the appropriate /c/c_api*.h header. For now, we pull in existing definitions // for convenience. -#include "tensorflow/contrib/lite/context.h" +#include "tensorflow/lite/context.h" // -------------------------------------------------------------------------- // Experimental C API for TensorFlowLite. @@ -223,4 +223,4 @@ TFL_CAPI_EXPORT extern TFL_Status TFL_TensorCopyToBuffer( } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_H_ diff --git a/tensorflow/contrib/lite/experimental/c/c_api_experimental.cc b/tensorflow/lite/experimental/c/c_api_experimental.cc similarity index 92% rename from tensorflow/contrib/lite/experimental/c/c_api_experimental.cc rename to tensorflow/lite/experimental/c/c_api_experimental.cc index 29f8701f53407dc47adfaca8c85c86210e4cb09a..a246ed99cd37360b80b012ebe1f8a20b978efa80 100644 --- a/tensorflow/contrib/lite/experimental/c/c_api_experimental.cc +++ b/tensorflow/lite/experimental/c/c_api_experimental.cc @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/c/c_api_experimental.h" +#include "tensorflow/lite/experimental/c/c_api_experimental.h" -#include "tensorflow/contrib/lite/experimental/c/c_api_internal.h" +#include "tensorflow/lite/experimental/c/c_api_internal.h" #ifdef __cplusplus extern "C" { diff --git a/tensorflow/contrib/lite/experimental/c/c_api_experimental.h b/tensorflow/lite/experimental/c/c_api_experimental.h similarity index 87% rename from tensorflow/contrib/lite/experimental/c/c_api_experimental.h rename to tensorflow/lite/experimental/c/c_api_experimental.h index fca5d92f77caff987f6a70c3a8fd03849bce1165..e4cd084520e52cd92c4987153b2ead3805cc4de9 100644 --- a/tensorflow/contrib/lite/experimental/c/c_api_experimental.h +++ b/tensorflow/lite/experimental/c/c_api_experimental.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_EXPERIMENTAL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_EXPERIMENTAL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_EXPERIMENTAL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_EXPERIMENTAL_H_ -#include "tensorflow/contrib/lite/builtin_ops.h" -#include "tensorflow/contrib/lite/experimental/c/c_api.h" +#include "tensorflow/lite/builtin_ops.h" +#include "tensorflow/lite/experimental/c/c_api.h" #ifdef __cplusplus extern "C" { @@ -54,4 +54,4 @@ void TFL_InterpreterOptionsAddCustomOp(TFL_InterpreterOptions* options, } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_EXPERIMENTAL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_EXPERIMENTAL_H_ diff --git a/tensorflow/contrib/lite/experimental/c/c_api_experimental_test.cc b/tensorflow/lite/experimental/c/c_api_experimental_test.cc similarity index 86% rename from tensorflow/contrib/lite/experimental/c/c_api_experimental_test.cc rename to tensorflow/lite/experimental/c/c_api_experimental_test.cc index 1b1bedb75470638d4b3cfac92819e18b8fe6e65a..e79c7204c6e7b9f1dfa864d146e3c81ae01dc9bc 100644 --- a/tensorflow/contrib/lite/experimental/c/c_api_experimental_test.cc +++ b/tensorflow/lite/experimental/c/c_api_experimental_test.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/c/c_api_experimental.h" +#include "tensorflow/lite/experimental/c/c_api_experimental.h" #include -#include "tensorflow/contrib/lite/builtin_ops.h" -#include "tensorflow/contrib/lite/experimental/c/c_api.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/builtin_ops.h" +#include "tensorflow/lite/experimental/c/c_api.h" +#include "tensorflow/lite/testing/util.h" namespace { @@ -34,7 +34,7 @@ TfLiteRegistration* GetDummyRegistration() { TEST(CApiExperimentalSimple, Smoke) { TFL_Model* model = TFL_NewModelFromFile( - "tensorflow/contrib/lite/testdata/add.bin"); + "tensorflow/lite/testdata/add.bin"); ASSERT_NE(model, nullptr); TFL_InterpreterOptions* options = TFL_NewInterpreterOptions(); diff --git a/tensorflow/contrib/lite/experimental/c/c_api_internal.h b/tensorflow/lite/experimental/c/c_api_internal.h similarity index 82% rename from tensorflow/contrib/lite/experimental/c/c_api_internal.h rename to tensorflow/lite/experimental/c/c_api_internal.h index da3af3cad4c54865cfe778b79538e5800c284985..8a2987c8f1c88fc5fa78d1f7fe9a7ee716d6b086 100644 --- a/tensorflow/contrib/lite/experimental/c/c_api_internal.h +++ b/tensorflow/lite/experimental/c/c_api_internal.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_INTERNAL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_INTERNAL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_INTERNAL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_INTERNAL_H_ -#include "tensorflow/contrib/lite/experimental/c/c_api.h" +#include "tensorflow/lite/experimental/c/c_api.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/op_resolver.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/op_resolver.h" // Internal structures used by the C API. These are likely to change and should // not be depended on. @@ -58,4 +58,4 @@ struct TFL_Interpreter { std::unique_ptr impl; }; -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_C_C_API_INTERNAL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_C_C_API_INTERNAL_H_ diff --git a/tensorflow/contrib/lite/experimental/c/c_api_test.cc b/tensorflow/lite/experimental/c/c_api_test.cc similarity index 95% rename from tensorflow/contrib/lite/experimental/c/c_api_test.cc rename to tensorflow/lite/experimental/c/c_api_test.cc index 8382e9bbb1020b4688ef6b77f4ca94138d544e00..5fb14f342cba8908e1f6e7907123b696b4aea01d 100644 --- a/tensorflow/contrib/lite/experimental/c/c_api_test.cc +++ b/tensorflow/lite/experimental/c/c_api_test.cc @@ -15,17 +15,17 @@ limitations under the License. #include -#include "tensorflow/contrib/lite/experimental/c/c_api.h" +#include "tensorflow/lite/experimental/c/c_api.h" #include -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/testing/util.h" namespace { TEST(CApiSimple, Smoke) { TFL_Model* model = TFL_NewModelFromFile( - "tensorflow/contrib/lite/testdata/add.bin"); + "tensorflow/lite/testdata/add.bin"); ASSERT_NE(model, nullptr); TFL_InterpreterOptions* options = TFL_NewInterpreterOptions(); @@ -97,7 +97,7 @@ TEST(CApiSimple, Smoke) { TEST(CApiSimple, QuantizationParams) { TFL_Model* model = TFL_NewModelFromFile( - "tensorflow/contrib/lite/testdata/add_quantized.bin"); + "tensorflow/lite/testdata/add_quantized.bin"); ASSERT_NE(model, nullptr); TFL_Interpreter* interpreter = TFL_NewInterpreter(model, nullptr); @@ -157,7 +157,7 @@ TEST(CApiSimple, QuantizationParams) { TEST(CApiSimple, ErrorReporter) { TFL_Model* model = TFL_NewModelFromFile( - "tensorflow/contrib/lite/testdata/add.bin"); + "tensorflow/lite/testdata/add.bin"); TFL_InterpreterOptions* options = TFL_NewInterpreterOptions(); // Install a custom error reporter into the interpreter by way of options. diff --git a/tensorflow/contrib/lite/experimental/c/exported_symbols.lds b/tensorflow/lite/experimental/c/exported_symbols.lds similarity index 100% rename from tensorflow/contrib/lite/experimental/c/exported_symbols.lds rename to tensorflow/lite/experimental/c/exported_symbols.lds diff --git a/tensorflow/contrib/lite/experimental/c/version_script.lds b/tensorflow/lite/experimental/c/version_script.lds similarity index 100% rename from tensorflow/contrib/lite/experimental/c/version_script.lds rename to tensorflow/lite/experimental/c/version_script.lds diff --git a/tensorflow/contrib/lite/experimental/examples/lstm/BUILD b/tensorflow/lite/experimental/examples/lstm/BUILD similarity index 91% rename from tensorflow/contrib/lite/experimental/examples/lstm/BUILD rename to tensorflow/lite/experimental/examples/lstm/BUILD index 3c1fe5f8becc320082c38c4676bc3d09ae56a082..7a475a24d36b6afaab62cac943ebc960369bb4f2 100644 --- a/tensorflow/contrib/lite/experimental/examples/lstm/BUILD +++ b/tensorflow/lite/experimental/examples/lstm/BUILD @@ -11,7 +11,7 @@ py_library( visibility = ["//visibility:public"], deps = [ "//tensorflow:tensorflow_py", - "//tensorflow/contrib/lite/python:lite", + "//tensorflow/lite/python:lite", "//tensorflow/python:framework", "@six_archive//:six", ], @@ -31,8 +31,8 @@ py_test( deps = [ ":tflite_lstm", "//tensorflow:tensorflow_py", - "//tensorflow/contrib/lite/python:lite", "//tensorflow/examples/tutorials/mnist:input_data", + "//tensorflow/lite/python:lite", "//tensorflow/python:framework_test_lib", "//tensorflow/python:platform", "//tensorflow/python/tools:optimize_for_inference", diff --git a/tensorflow/contrib/lite/experimental/examples/lstm/tflite_lstm.py b/tensorflow/lite/experimental/examples/lstm/tflite_lstm.py similarity index 99% rename from tensorflow/contrib/lite/experimental/examples/lstm/tflite_lstm.py rename to tensorflow/lite/experimental/examples/lstm/tflite_lstm.py index 2357743266f7082a5a003153718de08c83174ea5..2fe8ebf9e99f8b0e592e83c2e473dd2f8395c6c0 100644 --- a/tensorflow/contrib/lite/experimental/examples/lstm/tflite_lstm.py +++ b/tensorflow/lite/experimental/examples/lstm/tflite_lstm.py @@ -21,7 +21,7 @@ from __future__ import division from __future__ import print_function import tensorflow as tf -from tensorflow.contrib.lite.python import lite +from tensorflow.lite.python import lite from tensorflow.python.keras import activations from tensorflow.python.keras import initializers from tensorflow.python.layers import base as base_layer diff --git a/tensorflow/contrib/lite/experimental/examples/lstm/unidirectional_sequence_lstm_test.py b/tensorflow/lite/experimental/examples/lstm/unidirectional_sequence_lstm_test.py similarity index 96% rename from tensorflow/contrib/lite/experimental/examples/lstm/unidirectional_sequence_lstm_test.py rename to tensorflow/lite/experimental/examples/lstm/unidirectional_sequence_lstm_test.py index 2ca977518cb11db5f7ed33afa25ead5c02221a95..81ab6691df7389de900ca34f69ae122648e56d42 100644 --- a/tensorflow/contrib/lite/experimental/examples/lstm/unidirectional_sequence_lstm_test.py +++ b/tensorflow/lite/experimental/examples/lstm/unidirectional_sequence_lstm_test.py @@ -19,7 +19,7 @@ import tempfile import numpy as np import tensorflow as tf -from tensorflow.contrib.lite.experimental.examples.lstm.tflite_lstm import TFLiteLSTMCell +from tensorflow.lite.experimental.examples.lstm.tflite_lstm import TFLiteLSTMCell from tensorflow.examples.tutorials.mnist import input_data from tensorflow.python.framework import test_util from tensorflow.python.platform import test @@ -150,15 +150,15 @@ class UnidirectionalSequenceLstmTest(test_util.TensorFlowTestCase): tf.import_graph_def(graph, name="", input_map={"INPUT_IMAGE": tflite_input}) with tf.Session() as sess: curr = sess.graph_def - curr = tf.contrib.lite.convert_op_hints_to_stubs(graph_def=curr) + curr = tf.lite.convert_op_hints_to_stubs(graph_def=curr) curr = optimize_for_inference_lib.optimize_for_inference( curr, ["INPUT_IMAGE_LITE"], ["OUTPUT_CLASS"], [tf.float32.as_datatype_enum]) - tflite = tf.contrib.lite.toco_convert( + tflite = tf.lite.toco_convert( curr, [tflite_input], [outputs], allow_custom_ops=False) - interpreter = tf.contrib.lite.Interpreter(model_content=tflite) + interpreter = tf.lite.Interpreter(model_content=tflite) try: interpreter.allocate_tensors() diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/.gitignore b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/.gitignore similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/.gitignore rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/.gitignore diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/HelloTFLite.unity b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/HelloTFLite.unity similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/HelloTFLite.unity rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/HelloTFLite.unity diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/HelloTFLite.unity.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/HelloTFLite.unity.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/HelloTFLite.unity.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/HelloTFLite.unity.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scenes/add.bytes.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts/HelloTFLite.cs b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts/HelloTFLite.cs similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts/HelloTFLite.cs rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts/HelloTFLite.cs diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts/HelloTFLite.cs.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts/HelloTFLite.cs.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts/HelloTFLite.cs.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/Examples/HelloTFLite/Scripts/HelloTFLite.cs.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs.meta b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs.meta similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs.meta rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/Assets/TensorFlowLite/SDK/Scripts/Interpreter.cs.meta diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/AudioManager.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/AudioManager.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/AudioManager.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/AudioManager.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ClusterInputManager.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ClusterInputManager.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ClusterInputManager.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ClusterInputManager.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/DynamicsManager.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/DynamicsManager.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/DynamicsManager.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/DynamicsManager.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/EditorBuildSettings.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/EditorBuildSettings.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/EditorBuildSettings.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/EditorBuildSettings.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/EditorSettings.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/EditorSettings.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/EditorSettings.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/EditorSettings.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/GraphicsSettings.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/GraphicsSettings.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/GraphicsSettings.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/GraphicsSettings.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/InputManager.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/InputManager.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/InputManager.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/InputManager.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/NavMeshAreas.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/NavMeshAreas.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/NavMeshAreas.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/NavMeshAreas.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/NetworkManager.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/NetworkManager.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/NetworkManager.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/NetworkManager.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/Physics2DSettings.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/Physics2DSettings.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/Physics2DSettings.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/Physics2DSettings.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ProjectSettings.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ProjectSettings.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ProjectSettings.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ProjectSettings.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ProjectVersion.txt b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ProjectVersion.txt similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ProjectVersion.txt rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ProjectVersion.txt diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/QualitySettings.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/QualitySettings.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/QualitySettings.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/QualitySettings.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/TagManager.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/TagManager.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/TagManager.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/TagManager.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/TimeManager.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/TimeManager.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/TimeManager.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/TimeManager.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/UnityConnectSettings.asset b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/UnityConnectSettings.asset similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/UnityConnectSettings.asset rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/UnityConnectSettings.asset diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/README.md b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/README.md similarity index 88% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/README.md rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/README.md index f480c49cd050de2192e9673f72c9e4d5c3c6ceff..8c85ebfb63885fae628b766ab919cdb9832903b0 100644 --- a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/README.md +++ b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/README.md @@ -10,7 +10,7 @@ that this has only been tested on Linux; the syntax may differ on Mac/Windows): ```sh bazel build -c opt --cxxopt=--std=c++11 \ - //tensorflow/contrib/lite/experimental/c:libtensorflowlite_c.so + //tensorflow/lite/experimental/c:libtensorflowlite_c.so ``` and for Android: @@ -20,7 +20,7 @@ bazel build -c opt --cxxopt=--std=c++11 \ --crosstool_top=//external:android/crosstool \ --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \ --cpu=armeabi-v7a \ - //tensorflow/contrib/lite/experimental/c:libtensorflowlite_c.so + //tensorflow/lite/experimental/c:libtensorflowlite_c.so ``` If you encounter issues with native plugin discovery on Mac ("Darwin") diff --git a/tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/UnityPackageManager/manifest.json b/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/UnityPackageManager/manifest.json similarity index 100% rename from tensorflow/contrib/lite/experimental/examples/unity/TensorFlowLitePlugin/UnityPackageManager/manifest.json rename to tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/UnityPackageManager/manifest.json diff --git a/tensorflow/contrib/lite/experimental/kernels/BUILD b/tensorflow/lite/experimental/kernels/BUILD similarity index 51% rename from tensorflow/contrib/lite/experimental/kernels/BUILD rename to tensorflow/lite/experimental/kernels/BUILD index 4786cc62f93dc0a27efa02c2b436820867ab95f5..dd314545cb6488ea2a76494df39b4b69e92eca33 100644 --- a/tensorflow/contrib/lite/experimental/kernels/BUILD +++ b/tensorflow/lite/experimental/kernels/BUILD @@ -4,7 +4,7 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") load("//tensorflow:tensorflow.bzl", "tf_cc_test") # ctc support classes imported directly from TensorFlow. @@ -19,7 +19,7 @@ cc_library( ], deps = [ ":top_n", - "//tensorflow/contrib/lite/kernels/internal:types", + "//tensorflow/lite/kernels/internal:types", "//third_party/eigen3", ], ) @@ -31,7 +31,7 @@ cc_library( "top_n.h", ], deps = [ - "//tensorflow/contrib/lite/kernels/internal:types", + "//tensorflow/lite/kernels/internal:types", ], ) @@ -50,21 +50,21 @@ cc_library( }), deps = [ ":ctc_utils", - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/kernels:gemm_support", - "//tensorflow/contrib/lite/kernels:kernel_util", - "//tensorflow/contrib/lite/kernels:op_macros", - "//tensorflow/contrib/lite/kernels/internal:kernel_utils", - "//tensorflow/contrib/lite/kernels/internal:optimized", - "//tensorflow/contrib/lite/kernels/internal:optimized_base", - "//tensorflow/contrib/lite/kernels/internal:quantization_util", - "//tensorflow/contrib/lite/kernels/internal:reference_base", - "//tensorflow/contrib/lite/kernels/internal:tensor", - "//tensorflow/contrib/lite/kernels/internal:tensor_utils", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/kernels:gemm_support", + "//tensorflow/lite/kernels:kernel_util", + "//tensorflow/lite/kernels:op_macros", + "//tensorflow/lite/kernels/internal:kernel_utils", + "//tensorflow/lite/kernels/internal:optimized", + "//tensorflow/lite/kernels/internal:optimized_base", + "//tensorflow/lite/kernels/internal:quantization_util", + "//tensorflow/lite/kernels/internal:reference_base", + "//tensorflow/lite/kernels/internal:tensor", + "//tensorflow/lite/kernels/internal:tensor_utils", "@flatbuffers", ], ) @@ -76,9 +76,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":experimental_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@flatbuffers", ], diff --git a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_entry.h b/tensorflow/lite/experimental/kernels/ctc_beam_entry.h similarity index 94% rename from tensorflow/contrib/lite/experimental/kernels/ctc_beam_entry.h rename to tensorflow/lite/experimental/kernels/ctc_beam_entry.h index a60ff2a1c53f1b3f9f490ab5cf2bc429ba09dff0..70fbefa2ba52c6dfc23987479b9e30b5a2ae7a57 100644 --- a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_entry.h +++ b/tensorflow/lite/experimental/kernels/ctc_beam_entry.h @@ -15,8 +15,8 @@ limitations under the License. // Copied from tensorflow/core/util/ctc/ctc_beam_entry.h // TODO(b/111524997): Remove this file. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_ENTRY_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_ENTRY_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_ENTRY_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_ENTRY_H_ #include #include @@ -24,7 +24,7 @@ limitations under the License. #include #include "third_party/eigen3/Eigen/Core" -#include "tensorflow/contrib/lite/experimental/kernels/ctc_loss_util.h" +#include "tensorflow/lite/experimental/kernels/ctc_loss_util.h" namespace tflite { namespace experimental { @@ -147,4 +147,4 @@ class BeamComparer { } // namespace experimental } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_ENTRY_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_ENTRY_H_ diff --git a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_scorer.h b/tensorflow/lite/experimental/kernels/ctc_beam_scorer.h similarity index 91% rename from tensorflow/contrib/lite/experimental/kernels/ctc_beam_scorer.h rename to tensorflow/lite/experimental/kernels/ctc_beam_scorer.h index ec60e26257b0f4126e7a7abed6a663abe277ef12..202b2af28ee14f00ca02a51387b78990157c88af 100644 --- a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_scorer.h +++ b/tensorflow/lite/experimental/kernels/ctc_beam_scorer.h @@ -23,10 +23,10 @@ limitations under the License. // Copied from tensorflow/core/util/ctc/ctc_beam_scorer.h // TODO(b/111524997): Remove this file. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SCORER_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SCORER_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SCORER_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SCORER_H_ -#include "tensorflow/contrib/lite/experimental/kernels/ctc_beam_entry.h" +#include "tensorflow/lite/experimental/kernels/ctc_beam_entry.h" namespace tflite { namespace experimental { @@ -76,4 +76,4 @@ class BaseBeamScorer { } // namespace experimental } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SCORER_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SCORER_H_ diff --git a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_search.h b/tensorflow/lite/experimental/kernels/ctc_beam_search.h similarity index 96% rename from tensorflow/contrib/lite/experimental/kernels/ctc_beam_search.h rename to tensorflow/lite/experimental/kernels/ctc_beam_search.h index 7c5099235a4e3263d206c091ff3a5335f5f1eb36..1cc3ab7605ec3b86227778afaf30e7d2a87c5844 100644 --- a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_search.h +++ b/tensorflow/lite/experimental/kernels/ctc_beam_search.h @@ -15,8 +15,8 @@ limitations under the License. // Copied from tensorflow/core/util/ctc/ctc_beam_search.h // TODO(b/111524997): Remove this file. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SEARCH_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SEARCH_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SEARCH_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SEARCH_H_ #include #include @@ -25,12 +25,12 @@ limitations under the License. #include #include "third_party/eigen3/Eigen/Core" -#include "tensorflow/contrib/lite/experimental/kernels/ctc_beam_entry.h" -#include "tensorflow/contrib/lite/experimental/kernels/ctc_beam_scorer.h" -#include "tensorflow/contrib/lite/experimental/kernels/ctc_decoder.h" -#include "tensorflow/contrib/lite/experimental/kernels/ctc_loss_util.h" -#include "tensorflow/contrib/lite/experimental/kernels/top_n.h" -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/experimental/kernels/ctc_beam_entry.h" +#include "tensorflow/lite/experimental/kernels/ctc_beam_scorer.h" +#include "tensorflow/lite/experimental/kernels/ctc_decoder.h" +#include "tensorflow/lite/experimental/kernels/ctc_loss_util.h" +#include "tensorflow/lite/experimental/kernels/top_n.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" namespace tflite { namespace experimental { @@ -429,4 +429,4 @@ bool CTCBeamSearchDecoder::TopPaths( } // namespace experimental } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SEARCH_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_BEAM_SEARCH_H_ diff --git a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_search_decoder.cc b/tensorflow/lite/experimental/kernels/ctc_beam_search_decoder.cc similarity index 96% rename from tensorflow/contrib/lite/experimental/kernels/ctc_beam_search_decoder.cc rename to tensorflow/lite/experimental/kernels/ctc_beam_search_decoder.cc index b1ebe4a804a971043d19b588f07ffc54b1d1aa38..9b1a05ee6e77c4886d6d7ac665294e6249b269a4 100644 --- a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_search_decoder.cc +++ b/tensorflow/lite/experimental/kernels/ctc_beam_search_decoder.cc @@ -14,12 +14,12 @@ limitations under the License. ==============================================================================*/ #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/experimental/kernels/ctc_beam_search.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/experimental/kernels/ctc_beam_search.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_search_decoder_test.cc b/tensorflow/lite/experimental/kernels/ctc_beam_search_decoder_test.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/kernels/ctc_beam_search_decoder_test.cc rename to tensorflow/lite/experimental/kernels/ctc_beam_search_decoder_test.cc index 942dbbbeae553ba55ea75b3257aca28b9b12eb77..572b56f1225ccc8c7da86fe51c549012a1c34770 100644 --- a/tensorflow/contrib/lite/experimental/kernels/ctc_beam_search_decoder_test.cc +++ b/tensorflow/lite/experimental/kernels/ctc_beam_search_decoder_test.cc @@ -19,10 +19,10 @@ limitations under the License. #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/experimental/kernels/ctc_decoder.h b/tensorflow/lite/experimental/kernels/ctc_decoder.h similarity index 94% rename from tensorflow/contrib/lite/experimental/kernels/ctc_decoder.h rename to tensorflow/lite/experimental/kernels/ctc_decoder.h index 596ad4a5f7264ae24caa5592d10c09c256629b06..1ceb3f7de47667a42975f24d805bcd8028c871de 100644 --- a/tensorflow/contrib/lite/experimental/kernels/ctc_decoder.h +++ b/tensorflow/lite/experimental/kernels/ctc_decoder.h @@ -15,8 +15,8 @@ limitations under the License. // Copied from tensorflow/core/util/ctc/ctc_decoder.h // TODO(b/111524997): Remove this file. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_DECODER_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_DECODER_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_DECODER_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_DECODER_H_ #include #include @@ -111,4 +111,4 @@ class CTCGreedyDecoder : public CTCDecoder { } // namespace experimental } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_DECODER_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_DECODER_H_ diff --git a/tensorflow/contrib/lite/experimental/kernels/ctc_loss_util.h b/tensorflow/lite/experimental/kernels/ctc_loss_util.h similarity index 88% rename from tensorflow/contrib/lite/experimental/kernels/ctc_loss_util.h rename to tensorflow/lite/experimental/kernels/ctc_loss_util.h index 0bae732533716ac047a55ea31633c8ed51253fe0..f2206dbcc07e75c985298f7d0139feafa06cfd01 100644 --- a/tensorflow/contrib/lite/experimental/kernels/ctc_loss_util.h +++ b/tensorflow/lite/experimental/kernels/ctc_loss_util.h @@ -15,8 +15,8 @@ limitations under the License. // Copied from tensorflow/core/util/ctc/ctc_loss_util.h // TODO(b/111524997): Remove this file. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_LOSS_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_LOSS_UTIL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_LOSS_UTIL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_LOSS_UTIL_H_ #include #include @@ -47,4 +47,4 @@ inline float LogSumExp(float log_prob_1, float log_prob_2) { } // namespace experimental } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_CTC_LOSS_UTIL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_CTC_LOSS_UTIL_H_ diff --git a/tensorflow/contrib/lite/experimental/kernels/top_n.h b/tensorflow/lite/experimental/kernels/top_n.h similarity index 98% rename from tensorflow/contrib/lite/experimental/kernels/top_n.h rename to tensorflow/lite/experimental/kernels/top_n.h index cd2a2f1c80276d4659ccd2f8f05af3af030acb90..4e2581cc71785c5acb4d43099cbcda66eeb8e66e 100644 --- a/tensorflow/contrib/lite/experimental/kernels/top_n.h +++ b/tensorflow/lite/experimental/kernels/top_n.h @@ -38,8 +38,8 @@ limitations under the License. // Copied from tensorflow/core/lib/gtl/top_n.h // TODO(b/111524997): Remove this file. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_TOP_N_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_TOP_N_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_TOP_N_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_TOP_N_H_ #include #include @@ -47,7 +47,7 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" namespace tflite { namespace gtl { @@ -338,4 +338,4 @@ void TopN::Reset() { } // namespace gtl } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_KERNELS_TOP_N_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_KERNELS_TOP_N_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/BUILD b/tensorflow/lite/experimental/micro/BUILD similarity index 71% rename from tensorflow/contrib/lite/experimental/micro/BUILD rename to tensorflow/lite/experimental/micro/BUILD index df1036bc8b9cc84f4b63ae2a771e3aa8f8989060..e11159868e11a09e1b10d59da274cd08ee472593 100644 --- a/tensorflow/contrib/lite/experimental/micro/BUILD +++ b/tensorflow/lite/experimental/micro/BUILD @@ -5,7 +5,7 @@ package( licenses(["notice"]) # Apache 2.0 load( - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test.bzl", + "//tensorflow/lite/experimental/micro/testing:micro_test.bzl", "tflite_micro_cc_test", ) @@ -25,10 +25,10 @@ cc_library( "simple_tensor_allocator.h", ], deps = [ - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/core/api", - "//tensorflow/contrib/lite/schema:schema_fbs", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/core/api", + "//tensorflow/lite/schema:schema_fbs", ], ) @@ -49,7 +49,7 @@ tflite_micro_cc_test( ], deps = [ ":micro_framework", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", + "//tensorflow/lite/experimental/micro/testing:micro_test", ], ) @@ -60,7 +60,7 @@ tflite_micro_cc_test( ], deps = [ ":micro_framework", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", + "//tensorflow/lite/experimental/micro/testing:micro_test", ], ) @@ -71,6 +71,6 @@ tflite_micro_cc_test( ], deps = [ ":micro_framework", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", + "//tensorflow/lite/experimental/micro/testing:micro_test", ], ) diff --git a/tensorflow/contrib/lite/experimental/micro/README.md b/tensorflow/lite/experimental/micro/README.md similarity index 82% rename from tensorflow/contrib/lite/experimental/micro/README.md rename to tensorflow/lite/experimental/micro/README.md index 833f2e06c8ec18b5f8362be3674f6fcfb098dc59..673daed74c41a1880e6f8803258033cce8d333ca 100644 --- a/tensorflow/contrib/lite/experimental/micro/README.md +++ b/tensorflow/lite/experimental/micro/README.md @@ -20,7 +20,7 @@ To meet those goals, we've made some tradeoffs: - **Interpreted**: Code generation is a popular pattern for embedded code, because it gives standalone code that's easy to modify and step through, but we've chosen to go with an interpreted approach. In our internal microcontroller work we've found that using an extremely stripped-down interpreter with almost no dependencies gives us a lot of the same advantages, but is easier to maintain. For example, when new updates come out for the underlying library, you can just merge your local modifications in a single step, rather than having to regenerate new code and then patch in any changes you subsequently made. The coarse granularity of the interpreted primitives means that each operation call typically takes hundreds of thousands of instruction cycles at least, so we don't see noticeable performance gains from avoiding what's essentially a single switch statement at the interpreter level to call each operation. We're still working on improving the packaging though, for example we're considering having the ability to snapshot all the source files and headers used for a particular model, being able to compile the code and data together as a library, and then access it through a minimal set of C interface calls which hide the underlying complexity. -- **Flatbuffers**: We represent our models using [the standard flatbuffer schema used by the rest of TensorFlow Lite](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/schema/schema.fbs), with the difference that we always keep it in read-only program memory (typically flash) rather than relying on having a file system to read it from. This is a good fit because flatbuffer's serialized format is designed to be mapped into memory without requiring any extra memory allocations or modifications to access it. All of the functions to read model values work directly on the serialized bytes, and large sections of data like weights are directly accessible as sequential C-style arrays of their data type, with no strides or unpacking needed. We do get a lot of value from using flatbuffers, but there is a cost in complexity. The flat buffer library code is all inline [inside the main headers](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/schema/schema_generated.h), but it isn't straightforward to inspect their implementations, and the model data structures aren't easy to comprehend from the debugger. The header for the schema itself also has to be periodically updated when new information is added to the file format, though we try to handle that transparently for most developers by checking in a pre-generated version. +- **Flatbuffers**: We represent our models using [the standard flatbuffer schema used by the rest of TensorFlow Lite](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/schema/schema.fbs), with the difference that we always keep it in read-only program memory (typically flash) rather than relying on having a file system to read it from. This is a good fit because flatbuffer's serialized format is designed to be mapped into memory without requiring any extra memory allocations or modifications to access it. All of the functions to read model values work directly on the serialized bytes, and large sections of data like weights are directly accessible as sequential C-style arrays of their data type, with no strides or unpacking needed. We do get a lot of value from using flatbuffers, but there is a cost in complexity. The flat buffer library code is all inline [inside the main headers](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/schema/schema_generated.h), but it isn't straightforward to inspect their implementations, and the model data structures aren't easy to comprehend from the debugger. The header for the schema itself also has to be periodically updated when new information is added to the file format, though we try to handle that transparently for most developers by checking in a pre-generated version. - **Code Duplication**: Some of the code in this prototype largely duplicates the logic in other parts of the TensorFlow Lite code base, for example the operator wrappers. We've tried to keep share as much as we can between the two interpreters, but there are some assumptions built into the original runtime that make this difficult. We'll be working on modularizing the main interpreter so that we can move to an entirely shared system. @@ -33,8 +33,8 @@ Building requires a Linux or OS X machine. - Open a terminal - Download the TensorFlow source with `git clone https://github.com/tensorflow` - Enter the source root directory by running `cd tensorflow` - - Download the dependencies by running `tensorflow/contrib/lite/experimental/micro/tools/make/download_dependencies.sh`. This may take a few minutes - - Build and test the library with `make -f tensorflow/contrib/lite/experimental/micro/tools/make/Makefile test` + - Download the dependencies by running `tensorflow/lite/experimental/micro/tools/make/download_dependencies.sh`. This may take a few minutes + - Build and test the library with `make -f tensorflow/lite/experimental/micro/tools/make/Makefile test` You should see a series of compilation steps, followed by `~~~ALL TESTS PASSED~~~` for the various tests of the code that it will run. If there's an @@ -43,7 +43,7 @@ error, you should get an informative message from make about what went wrong. These tests are all built as simple binaries with few dependencies, so you can run them manually. For example, here's how to run the depthwise convolution test, and its output: ``` -tensorflow/contrib/lite/experimental/micro/tools/make/gen/linux_x86_64/bin/tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv_test +tensorflow/lite/experimental/micro/tools/make/gen/linux_x86_64/bin/tensorflow/lite/experimental/micro/kernels/depthwise_conv_test Testing SimpleTest Testing SimpleTestQuantized @@ -53,7 +53,7 @@ Testing SimpleTestReluQuantized ~ALL TESTS PASSED~~~ ``` -Looking at the [depthwise_conv_test.cc](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv_test.cc) code, you'll see a sequence that looks like this: +Looking at the [depthwise_conv_test.cc](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/experimental/micro/kernels/depthwise_conv_test.cc) code, you'll see a sequence that looks like this: ``` ... @@ -82,15 +82,15 @@ The goal of this library is to enable machine learning on resource-constrained m It's fairly easy to [buy and wire up a physical board](https://github.com/google/stm32_bare_lib#wiring-up-your-blue-pill), but even if you don't have an actual device, the [Renode project](https://renode.io/) makes it easy to run a faithful emulation on your desktop machine. You'll need [Docker](https://www.docker.com/) installed, but once you have that set up, try running the following command: -`make -f tensorflow/contrib/lite/experimental/micro/tools/make/Makefile TARGET=bluepill test` +`make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=bluepill test` You should see a similar set of outputs as you did in the previous section, with the addition of some extra Docker logging messages. These are because we're using Docker to run the Renode micro controller emulation tool, and the tests themselves are being run on a simulated STM32F103 device. The communication channels between an embedded device and the host are quite limited, so the test harness looks at the output of the debug log to see if tests have passed, just as it did in the previous section. This makes it a very flexible way to run cross-platform tests, even when a platform has no operating system facilities, as long as it can output debugging text logs. To understand what's happening here, try running the same depthwise convolution test, but through the emulated device test harness, with the following command: ``` -tensorflow/contrib/lite/experimental/micro/testing/test_bluepill_binary.sh \ -tensorflow/contrib/lite/experimental/micro/tools/make/gen/bluepill_cortex-m3/bin/tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv_test \ +tensorflow/lite/experimental/micro/testing/test_bluepill_binary.sh \ +tensorflow/lite/experimental/micro/tools/make/gen/bluepill_cortex-m3/bin/tensorflow/lite/experimental/micro/kernels/depthwise_conv_test \ '~~~ALL TESTS PASSED~~~' ``` @@ -117,7 +117,7 @@ LOGS: 03:27:32.4839 [DEBUG] cpu.uartSemihosting: [+41µs host +0s virt 0s virt from start] ~~~ALL TESTS PASSED~~~ 03:27:32.4839 [DEBUG] cpu.uartSemihosting: [+5µs host +0s virt 0s virt from start] ... -tensorflow/contrib/lite/experimental/micro/tools/make/gen/bluepill_cortex-m3/bin/tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv_test: PASS +tensorflow/lite/experimental/micro/tools/make/gen/bluepill_cortex-m3/bin/tensorflow/lite/experimental/micro/kernels/depthwise_conv_test: PASS ``` There's a lot of output here, but you should be able to see that the same tests diff --git a/tensorflow/contrib/lite/experimental/micro/compatibility.h b/tensorflow/lite/experimental/micro/compatibility.h similarity index 86% rename from tensorflow/contrib/lite/experimental/micro/compatibility.h rename to tensorflow/lite/experimental/micro/compatibility.h index 4f0fd9f3120a5db74cdfb84e7b17a0f3656520bc..3fa91644bdd64e3b96c7935147593a12eca98487 100644 --- a/tensorflow/contrib/lite/experimental/micro/compatibility.h +++ b/tensorflow/lite/experimental/micro/compatibility.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_COMPATIBILITY_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_COMPATIBILITY_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_COMPATIBILITY_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_COMPATIBILITY_H_ // C++ will automatically create class-specific delete operators for virtual // objects, which by default call the global delete function. For embedded @@ -29,4 +29,4 @@ limitations under the License. #define TF_LITE_REMOVE_VIRTUAL_DELETE #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_COMPATIBILITY_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_COMPATIBILITY_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/BUILD b/tensorflow/lite/experimental/micro/examples/micro_speech/BUILD similarity index 58% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/BUILD rename to tensorflow/lite/experimental/micro/examples/micro_speech/BUILD index 08fa277c34efcfdd2b175c8f3bf0d98e8fe83295..69022b611ed14adcef7dea54ec135988a7452823 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/BUILD +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/BUILD @@ -6,7 +6,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Apache 2.0 load( - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test.bzl", + "//tensorflow/lite/experimental/micro/testing:micro_test.bzl", "tflite_micro_cc_test", ) @@ -22,12 +22,12 @@ tflite_micro_cc_test( "yes_features_data.h", ], deps = [ - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite/experimental/micro:micro_framework", - "//tensorflow/contrib/lite/experimental/micro/kernels:all_ops_resolver", - "//tensorflow/contrib/lite/experimental/micro/kernels:micro_ops", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", - "//tensorflow/contrib/lite/schema:schema_fbs", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/experimental/micro:micro_framework", + "//tensorflow/lite/experimental/micro/kernels:all_ops_resolver", + "//tensorflow/lite/experimental/micro/kernels:micro_ops", + "//tensorflow/lite/experimental/micro/testing:micro_test", + "//tensorflow/lite/schema:schema_fbs", ], ) @@ -47,8 +47,8 @@ tflite_micro_cc_test( "yes_power_spectrum_data.h", ], deps = [ - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/experimental/micro:micro_framework", - "//tensorflow/contrib/lite/experimental/micro/testing:micro_test", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/experimental/micro:micro_framework", + "//tensorflow/lite/experimental/micro/testing:micro_test", ], ) diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/README.md b/tensorflow/lite/experimental/micro/examples/micro_speech/README.md similarity index 88% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/README.md rename to tensorflow/lite/experimental/micro/examples/micro_speech/README.md index 959306d8ce1e32dd410e269655bfe90a4107c3df..500eed33bab0187f9b2cf9647c046f4a541b9e2c 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/README.md +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/README.md @@ -14,33 +14,33 @@ This examples shows how you can use TensorFlow Lite to run a 20 kilobyte neural To compile and test this example on a desktop Linux or MacOS machine, download [the TensorFlow source code](https://github.com/tensorflow/tensorflow), `cd` into the source directory from a terminal, and then retrieve the support libraries you need by running: ``` -tensorflow/contrib/lite/experimental/micro/tools/make/download_dependencies.sh +tensorflow/lite/experimental/micro/tools/make/download_dependencies.sh ``` This will take a few minutes, and downloads frameworks the code uses like [CMSIS](https://developer.arm.com/embedded/cmsis) and [flatbuffers](https://google.github.io/flatbuffers/). Once that process has finished, run: ``` -make -f tensorflow/contrib/lite/experimental/micro/tools/make/Makefile test_micro_speech +make -f tensorflow/lite/experimental/micro/tools/make/Makefile test_micro_speech ``` You should see a series of files get compiled, followed by some logging output from a test, which should conclude with "~~~ALL TESTS PASSED~~~". If you see this, it means that a small program has been built and run that loads a trained TensorFlow model, runs some example inputs through it, and got the expected outputs. This particular test runs spectrograms generated from recordings of people saying "Yes" and "No", and checks that the network correctly identifies them. -To understand how TensorFlow Lite does this, you can look at the `TestInvoke()` function in [micro_speech_test.cc](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc). It's a fairly small amount of code, creating an interpreter, getting a handle to a model that's been compiled into the program, and then invoking the interpreter with the model and sample inputs. +To understand how TensorFlow Lite does this, you can look at the `TestInvoke()` function in [micro_speech_test.cc](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc). It's a fairly small amount of code, creating an interpreter, getting a handle to a model that's been compiled into the program, and then invoking the interpreter with the model and sample inputs. ## Getting Started on a Microcontroller Once you have downloaded the dependencies and got the x86/Linux build working, you can try building a version for the STM32F103 'bluepill' device. The following command will build the test and then run it on an emulator, assuming you have Docker installed: ``` -make -f tensorflow/contrib/lite/experimental/micro/tools/make/Makefile TARGET=bluepill test_micro_speech +make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=bluepill test_micro_speech ``` If you have a real device [(see here for how to set one up)](https://github.com/google/stm32_bare_lib/tree/master/README.md) you can then convert the ELF file into a a `.bin` format executable to load onto it by running: ``` arm-none-eabi-objcopy \ -tensorflow/contrib/lite/experimental/micro/tools/make/gen/bluepill_cortex-m3/bin/micro_speech_test \ -tensorflow/contrib/lite/experimental/micro/tools/make/gen/bluepill_cortex-m3/bin/micro_speech_test.bin \ +tensorflow/lite/experimental/micro/tools/make/gen/bluepill_cortex-m3/bin/micro_speech_test \ +tensorflow/lite/experimental/micro/tools/make/gen/bluepill_cortex-m3/bin/micro_speech_test.bin \ --output binary ``` @@ -89,7 +89,7 @@ bazel run tensorflow/examples/speech_commands:freeze -- \ The next step is to create a TensorFlow Lite file from the frozen graph: ``` -bazel run tensorflow/contrib/lite/toco:toco -- \ +bazel run tensorflow/lite/toco:toco -- \ --input_file=/tmp/tiny_conv.pb --output_file=/tmp/tiny_conv.tflite \ --input_shapes=1,49,43,1 --input_arrays=Reshape_1 --output_arrays='labels_softmax' \ --inference_type=QUANTIZED_UINT8 --mean_values=0 --std_values=2 \ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc similarity index 88% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc index 0f4731fd4b2a0890bb29d818145f34affde8f304..4e54ff670eb9badd648aee99cf154c0d3b988bff 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc @@ -13,15 +13,15 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.h" -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h" -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.h" -#include "tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.h" -#include "tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h" -#include "tensorflow/contrib/lite/experimental/micro/micro_interpreter.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.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_interpreter.h" +#include "tensorflow/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/version.h" TF_LITE_MICRO_TESTS_BEGIN diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.cc index e949913aa3d5aefa9ea3c34a7dfbe45e8e7e4d55..6eaa5c2fed61fa90f66bf04f7f0c8b36520f11e4 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.cc @@ -15,7 +15,7 @@ limitations under the License. // See the header for documentation on the meaning of this data. -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h" const int g_no_30ms_sample_data_size = 480; const int16_t g_no_30ms_sample_data[480] = { diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h b/tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h similarity index 80% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h rename to tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h index 52999306595b8750d47373ebc2c4707c89871f7e..ff6b874089903d2709480444a7b9ea189b51720f 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h @@ -21,12 +21,12 @@ limitations under the License. // preprocessing pipeline, to ensure that the expected spectrogram slice is // produced given this input. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_30MS_SAMPLE_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_30MS_SAMPLE_DATA_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_30MS_SAMPLE_DATA_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_30MS_SAMPLE_DATA_H_ #include extern const int g_no_30ms_sample_data_size; extern const int16_t g_no_30ms_sample_data[]; -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_30MS_SAMPLE_DATA_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_30MS_SAMPLE_DATA_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.cc similarity index 99% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.cc index 3615deb26c4f0ea0b3018a6144e7f2cc58cd8a1e..e98c84f7ed2e678eb91580a2b6fb69514cee4740 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.h" /* File automatically created by * tensorflow/examples/speech_commands/wav_to_features.py \ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.h b/tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.h similarity index 74% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.h rename to tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.h index b53d0a202b75eab7db82107f2c71c504a85f881e..e2ee0c46cf13b00b310bd22b7ca1cb5a9751c6e6 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.h @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_FEATURES_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_FEATURES_DATA_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_FEATURES_DATA_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_FEATURES_DATA_H_ extern const int g_no_f9643d42_nohash_4_width; extern const int g_no_f9643d42_nohash_4_height; extern const unsigned char g_no_f9643d42_nohash_4_data[]; -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_FEATURES_DATA_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_FEATURES_DATA_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.cc similarity index 90% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.cc index 72e40197d6e7ebfdee86aa7d340e341ed2934ec8..c4fc5c33bb329cba4e1abcf6d36b01f14e9e2b27 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.cc @@ -15,7 +15,7 @@ limitations under the License. // See the header for documentation on the meaning of this data. -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h" const uint8_t g_no_power_spectrum_data[g_no_power_spectrum_data_size] = { 255, 7, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h b/tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h similarity index 78% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h rename to tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h index c19566bfb640cc5e4ef050f7e4712bd07855107f..fa39d3c70d78ce261db81cf8ad7c416efd2c468c 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h @@ -18,12 +18,12 @@ limitations under the License. // This is the expected result of running the sample data in // no_30ms_sample_data.cc through through the preprocessing pipeline. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_POWER_SPECTRUM_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_POWER_SPECTRUM_DATA_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_POWER_SPECTRUM_DATA_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_POWER_SPECTRUM_DATA_H_ #include constexpr int g_no_power_spectrum_data_size = 43; extern const uint8_t g_no_power_spectrum_data[]; -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_POWER_SPECTRUM_DATA_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_NO_POWER_SPECTRUM_DATA_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.cc similarity index 98% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.cc index 6fe4d21de7ac9bbc47f424841c30a59ecc175464..12f9e22038bafa2b4d960b9a9d7b6bcad452bf4c 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.cc @@ -24,7 +24,7 @@ limitations under the License. // functions used here, for example replacing the DFT with an FFT, so this // version shouldn't be used where performance is critical. -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.h" #include diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.h b/tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.h similarity index 68% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.h rename to tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.h index 571eb5921b8209f26347d57ee6d00b15a35d9f25..dede2a864219c3fd677cf1449b8ce51e70bdc976 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.h @@ -13,14 +13,14 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_PREPROCESSOR_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_PREPROCESSOR_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_PREPROCESSOR_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_PREPROCESSOR_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" TfLiteStatus Preprocess(tflite::ErrorReporter* error_reporter, const int16_t* input, int input_size, int output_size, uint8_t* output); -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_PREPROCESSOR_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_PREPROCESSOR_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor_test.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor_test.cc similarity index 76% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor_test.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor_test.cc index 1809ba8daf5f702c76bf0ba7161385006f44443c..e8b49f67e3d72faa4700c4bdec7f94a5b79cd72e 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor_test.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor_test.cc @@ -13,14 +13,14 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h" -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h" -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h" -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h" -#include "tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_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 diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.cc similarity index 99% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.cc index f0769a1237d64a5f727ec86c5d8ff2e20086436d..62e4359859a422c96ec368b6f91cba99e3c4a4eb 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.cc @@ -17,7 +17,7 @@ limitations under the License. // xxd -i tiny_conv.tflite > tiny_conv_model_data.cc // See the README for a full description of the creation process. -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h" const unsigned char g_tiny_conv_model_data[] = { 0x18, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x00, 0x00, 0x0e, 0x00, diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h b/tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h similarity index 78% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h rename to tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h index 2953cc852d98fa9b5551ae5036048de9c2ebf674..a465dbfabf7cbba44473ae7e2ff94b1de2092b20 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.h @@ -18,10 +18,10 @@ limitations under the License. // don't have a file system. It was created using the command: // xxd -i tiny_conv.tflite > tiny_conv_model_data.cc -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_TINY_CONV_MODEL_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_TINY_CONV_MODEL_DATA_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_TINY_CONV_MODEL_DATA_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_TINY_CONV_MODEL_DATA_H_ extern const unsigned char g_tiny_conv_model_data[]; extern const int g_tiny_conv_model_data_len; -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_TINY_CONV_MODEL_DATA_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_TINY_CONV_MODEL_DATA_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.cc index 40876372077c44d87b172522da6105165345c529..f089ef82f3a7cc76f9d6a58b848ac281f1582a5a 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.cc @@ -15,7 +15,7 @@ limitations under the License. // See the header for documentation on the meaning of this data. -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h" const int g_yes_30ms_sample_data_size = 480; const int16_t g_yes_30ms_sample_data[480] = { diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h similarity index 80% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h rename to tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h index cb757e84ba109f54069646369b219c52d139c194..daaeb514a806d02b3f9e7e6d8ca0e6409a63f29b 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.h @@ -21,12 +21,12 @@ limitations under the License. // preprocessing pipeline, to ensure that the expected spectrogram slice is // produced given this input. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_30MS_SAMPLE_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_30MS_SAMPLE_DATA_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_30MS_SAMPLE_DATA_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_30MS_SAMPLE_DATA_H_ #include extern const int g_yes_30ms_sample_data_size; extern const int16_t g_yes_30ms_sample_data[]; -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_30MS_SAMPLE_DATA_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_30MS_SAMPLE_DATA_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.cc similarity index 99% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.cc index 3ad29e53c83ddce9fcde7dae578de678d1dc75b8..2eb737fb8e1204a02f7ea4852016e85d03980bfd 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.h" /* File automatically created by * tensorflow/examples/speech_commands/wav_to_features.py \ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.h b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.h similarity index 74% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.h rename to tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.h index 33ac2308624235fc380782cd61e6a0247b81b093..39a3bb914cc1986aa851ace0e39ce63ed1a93282 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.h @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_FEATURES_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_FEATURES_DATA_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_FEATURES_DATA_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_FEATURES_DATA_H_ extern const int g_yes_f2e59fea_nohash_1_width; extern const int g_yes_f2e59fea_nohash_1_height; extern const unsigned char g_yes_f2e59fea_nohash_1_data[]; -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_FEATURES_DATA_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_FEATURES_DATA_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.cc b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.cc similarity index 90% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.cc rename to tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.cc index a6e1d874fa06e488f2996b2b81dbfdff4a9fb212..9a34a2045a221e2eee8c51f23000e819b1638499 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.cc +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.cc @@ -15,7 +15,7 @@ limitations under the License. // See the header for documentation on the meaning of this data. -#include "tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h" +#include "tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h" const uint8_t g_yes_power_spectrum_data[g_yes_power_spectrum_data_size] = { 8, 89, 8, 0, 0, 0, 0, 0, 0, 0, 0, 4, 13, 1, 6, 23, 20, 6, 4, 0, 0, 0, diff --git a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h similarity index 77% rename from tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h rename to tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h index b02853f2ea73ffe42758dab946ecd3b2b66bc8f3..5c8c00ac1116dcbd7ad4aeda1828603e962c2001 100644 --- a/tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h +++ b/tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.h @@ -18,12 +18,12 @@ limitations under the License. // This is the expected result of running the sample data in // yes_30ms_sample_data.cc through through the preprocessing pipeline. -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_POWER_SPECTRUM_DATA_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_POWER_SPECTRUM_DATA_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_POWER_SPECTRUM_DATA_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_POWER_SPECTRUM_DATA_H_ #include constexpr int g_yes_power_spectrum_data_size = 43; extern const uint8_t g_yes_power_spectrum_data[]; -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_POWER_SPECTRUM_DATA_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_EXAMPLES_MICRO_SPEECH_YES_POWER_SPECTRUM_DATA_H_ diff --git a/tensorflow/lite/experimental/micro/kernels/BUILD b/tensorflow/lite/experimental/micro/kernels/BUILD new file mode 100644 index 0000000000000000000000000000000000000000..a54fd41760d58f2023e6b7b2aac72ac5f5e95ae3 --- /dev/null +++ b/tensorflow/lite/experimental/micro/kernels/BUILD @@ -0,0 +1,107 @@ +package(default_visibility = [ + "//visibility:public", +]) + +licenses(["notice"]) # Apache 2.0 + +load("//tensorflow/lite:build_def.bzl", "tflite_copts") +load( + "//tensorflow/lite/experimental/micro/testing:micro_test.bzl", + "tflite_micro_cc_test", +) + +cc_library( + name = "micro_ops", + srcs = [ + "depthwise_conv.cc", + "fully_connected.cc", + "softmax.cc", + ], + hdrs = [ + ], + copts = tflite_copts(), + deps = [ + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/experimental/micro:micro_framework", + "//tensorflow/lite/kernels:kernel_util", + "//tensorflow/lite/kernels:op_macros", + "//tensorflow/lite/kernels:padding", + "//tensorflow/lite/kernels/internal:quantization_util", + "//tensorflow/lite/kernels/internal:reference_base", + "//tensorflow/lite/kernels/internal:tensor", + ], +) + +cc_library( + name = "all_ops_resolver", + srcs = [ + "all_ops_resolver.cc", + ], + hdrs = [ + "all_ops_resolver.h", + ], + copts = tflite_copts(), + deps = [ + ":micro_ops", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/experimental/micro:micro_framework", + ], +) + +cc_library( + name = "test_utils", + srcs = [ + ], + hdrs = [ + "test_utils.h", + ], + copts = tflite_copts(), + deps = [ + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/core/api", + "//tensorflow/lite/experimental/micro:micro_framework", + "//tensorflow/lite/experimental/micro/testing:micro_test", + ], +) + +tflite_micro_cc_test( + name = "depthwise_conv_test", + srcs = [ + "depthwise_conv_test.cc", + ], + deps = [ + ":all_ops_resolver", + ":test_utils", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/experimental/micro:micro_framework", + "//tensorflow/lite/experimental/micro/testing:micro_test", + ], +) + +tflite_micro_cc_test( + name = "fully_connected_test", + srcs = [ + "fully_connected_test.cc", + ], + deps = [ + ":all_ops_resolver", + ":test_utils", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/experimental/micro:micro_framework", + "//tensorflow/lite/experimental/micro/testing:micro_test", + ], +) + +tflite_micro_cc_test( + name = "softmax_test", + srcs = [ + "softmax_test.cc", + ], + deps = [ + ":all_ops_resolver", + ":test_utils", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/experimental/micro:micro_framework", + "//tensorflow/lite/experimental/micro/testing:micro_test", + ], +) diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.cc b/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.cc similarity index 95% rename from tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.cc rename to tensorflow/lite/experimental/micro/kernels/all_ops_resolver.cc index bd0a37badb8ab1e739fdee9c8be9c3f800e80e2e..b733949e45df9cb88eb394900c513d0f0763f9a1 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.cc +++ b/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.cc @@ -10,7 +10,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.h" +#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.h b/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h similarity index 70% rename from tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.h rename to tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h index f836064a3f63443ff577e7ac7a8b791cbb2c24c5..b9ba8c882624bfbbdd289c00794fc2e691fd6b3c 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.h +++ b/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h @@ -9,11 +9,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_KERNELS_ALL_OPS_RESOLVER_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_KERNELS_ALL_OPS_RESOLVER_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_KERNELS_ALL_OPS_RESOLVER_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_KERNELS_ALL_OPS_RESOLVER_H_ -#include "tensorflow/contrib/lite/experimental/micro/compatibility.h" -#include "tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.h" +#include "tensorflow/lite/experimental/micro/compatibility.h" +#include "tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h" namespace tflite { namespace ops { @@ -31,4 +31,4 @@ class AllOpsResolver : public MicroMutableOpResolver { } // namespace ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_KERNELS_ALL_OPS_RESOLVER_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_KERNELS_ALL_OPS_RESOLVER_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv.cc b/tensorflow/lite/experimental/micro/kernels/depthwise_conv.cc similarity index 93% rename from tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv.cc rename to tensorflow/lite/experimental/micro/kernels/depthwise_conv.cc index 4f17263181982afdaa1941194b88d58f0ef0ca74..ce821a94787796251ba4becc327e257352e0ad05 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv.cc +++ b/tensorflow/lite/experimental/micro/kernels/depthwise_conv.cc @@ -13,16 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_ctypes.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/padding.h" - -#include "tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_float.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_uint8.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/padding.h" + +#include "tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h" +#include "tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv_test.cc b/tensorflow/lite/experimental/micro/kernels/depthwise_conv_test.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv_test.cc rename to tensorflow/lite/experimental/micro/kernels/depthwise_conv_test.cc index 169899c471dd44399b4d8a479cecbbbd78ba1215..f70437a4b943e6e71547e010a0fea9ab551194db 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/depthwise_conv_test.cc +++ b/tensorflow/lite/experimental/micro/kernels/depthwise_conv_test.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.h" -#include "tensorflow/contrib/lite/experimental/micro/kernels/test_utils.h" -#include "tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" +#include "tensorflow/lite/experimental/micro/kernels/test_utils.h" +#include "tensorflow/lite/experimental/micro/simple_tensor_allocator.h" +#include "tensorflow/lite/experimental/micro/testing/micro_test.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/fully_connected.cc b/tensorflow/lite/experimental/micro/kernels/fully_connected.cc similarity index 93% rename from tensorflow/contrib/lite/experimental/micro/kernels/fully_connected.cc rename to tensorflow/lite/experimental/micro/kernels/fully_connected.cc index 1e9e54cafb8c91af1b42d6d23396495ecad6e602..a344c4ffbeded910c26bf38ec2f6f58334592cda 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/fully_connected.cc +++ b/tensorflow/lite/experimental/micro/kernels/fully_connected.cc @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/reference/fully_connected.h" -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_ctypes.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/internal/reference/fully_connected.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/fully_connected_test.cc b/tensorflow/lite/experimental/micro/kernels/fully_connected_test.cc similarity index 98% rename from tensorflow/contrib/lite/experimental/micro/kernels/fully_connected_test.cc rename to tensorflow/lite/experimental/micro/kernels/fully_connected_test.cc index b42bf4c3bca75572dbf8e1907e7fb94be24d41bd..300f8aaf78ad38a2cd4a7c715cf63315a0b2e751 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/fully_connected_test.cc +++ b/tensorflow/lite/experimental/micro/kernels/fully_connected_test.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.h" -#include "tensorflow/contrib/lite/experimental/micro/kernels/test_utils.h" -#include "tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" +#include "tensorflow/lite/experimental/micro/kernels/test_utils.h" +#include "tensorflow/lite/experimental/micro/simple_tensor_allocator.h" +#include "tensorflow/lite/experimental/micro/testing/micro_test.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/softmax.cc b/tensorflow/lite/experimental/micro/kernels/softmax.cc similarity index 93% rename from tensorflow/contrib/lite/experimental/micro/kernels/softmax.cc rename to tensorflow/lite/experimental/micro/kernels/softmax.cc index a4019a067c563cac25d9918e4bdf75913bdfa3d6..6d2d8b470fcad5c48506206687bd90305c4b3d2e 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/softmax.cc +++ b/tensorflow/lite/experimental/micro/kernels/softmax.cc @@ -13,14 +13,14 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/reference/softmax.h" -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_ctypes.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/internal/reference/softmax.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/softmax_test.cc b/tensorflow/lite/experimental/micro/kernels/softmax_test.cc similarity index 94% rename from tensorflow/contrib/lite/experimental/micro/kernels/softmax_test.cc rename to tensorflow/lite/experimental/micro/kernels/softmax_test.cc index 694456d8ace5182578f9b59c2de8bbad0447b4ee..7253b3be8ce20ff6d30ca725060da606c416c8e1 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/softmax_test.cc +++ b/tensorflow/lite/experimental/micro/kernels/softmax_test.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/experimental/micro/kernels/all_ops_resolver.h" -#include "tensorflow/contrib/lite/experimental/micro/kernels/test_utils.h" -#include "tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h" +#include "tensorflow/lite/experimental/micro/kernels/test_utils.h" +#include "tensorflow/lite/experimental/micro/simple_tensor_allocator.h" +#include "tensorflow/lite/experimental/micro/testing/micro_test.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/experimental/micro/kernels/test_utils.h b/tensorflow/lite/experimental/micro/kernels/test_utils.h similarity index 91% rename from tensorflow/contrib/lite/experimental/micro/kernels/test_utils.h rename to tensorflow/lite/experimental/micro/kernels/test_utils.h index 789a48ece8bd68544649fb05548355cb796ccabb..4207c609812f16b3051ca3871b167d557fb8a3c0 100644 --- a/tensorflow/contrib/lite/experimental/micro/kernels/test_utils.h +++ b/tensorflow/lite/experimental/micro/kernels/test_utils.h @@ -12,18 +12,18 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_KERNELS_TEST_UTILS_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_KERNELS_TEST_UTILS_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_KERNELS_TEST_UTILS_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_KERNELS_TEST_UTILS_H_ #include #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/experimental/micro/kernels/test_utils.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/experimental/micro/kernels/test_utils.h" +#include "tensorflow/lite/experimental/micro/testing/micro_test.h" namespace tflite { namespace testing { @@ -167,4 +167,4 @@ inline TfLiteTensor CreateQuantized32Tensor(std::initializer_list data, } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_KERNELS_TEST_UTILS_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_KERNELS_TEST_UTILS_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/micro_error_reporter.cc b/tensorflow/lite/experimental/micro/micro_error_reporter.cc similarity index 96% rename from tensorflow/contrib/lite/experimental/micro/micro_error_reporter.cc rename to tensorflow/lite/experimental/micro/micro_error_reporter.cc index de11c2af5276e77ae4a3f63f630152a6a9219f52..6bfe541f8063068205bee4b6d662f446ea0a853f 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_error_reporter.cc +++ b/tensorflow/lite/experimental/micro/micro_error_reporter.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h" +#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h b/tensorflow/lite/experimental/micro/micro_error_reporter.h similarity index 82% rename from tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h rename to tensorflow/lite/experimental/micro/micro_error_reporter.h index 21a014bee09a6312556e81fdae742b891b4439f4..0ab853ec2ac915a8eb3da87eb8b86f2ecec697c7 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h +++ b/tensorflow/lite/experimental/micro/micro_error_reporter.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_ERROR_REPORTER_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_ERROR_REPORTER_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_ERROR_REPORTER_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_ERROR_REPORTER_H_ -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/experimental/micro/compatibility.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/experimental/micro/compatibility.h" #ifdef TF_LITE_MCU_DEBUG_LOG // These functions should be supplied by the micro target library @@ -51,4 +51,4 @@ class MicroErrorReporter : public ErrorReporter { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_ERROR_REPORTER_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_ERROR_REPORTER_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/micro_error_reporter_test.cc b/tensorflow/lite/experimental/micro/micro_error_reporter_test.cc similarity index 93% rename from tensorflow/contrib/lite/experimental/micro/micro_error_reporter_test.cc rename to tensorflow/lite/experimental/micro/micro_error_reporter_test.cc index ef3c32050c0e826c005f185553974170da7e486a..ca89de9739fe1dd696dc3a2a9db269d9bba48a26 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_error_reporter_test.cc +++ b/tensorflow/lite/experimental/micro/micro_error_reporter_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h" +#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" int main(int argc, char** argv) { tflite::MicroErrorReporter micro_error_reporter; diff --git a/tensorflow/contrib/lite/experimental/micro/micro_interpreter.cc b/tensorflow/lite/experimental/micro/micro_interpreter.cc similarity index 98% rename from tensorflow/contrib/lite/experimental/micro/micro_interpreter.cc rename to tensorflow/lite/experimental/micro/micro_interpreter.cc index 5ece5edc31acc96b7d18b1d55837df7faa4551bc..e0460c5d3e5cd800c34345b210e0c20cb8bd0d28 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_interpreter.cc +++ b/tensorflow/lite/experimental/micro/micro_interpreter.cc @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/micro_interpreter.h" +#include "tensorflow/lite/experimental/micro/micro_interpreter.h" -#include "tensorflow/contrib/lite/core/api/flatbuffer_conversions.h" -#include "tensorflow/contrib/lite/experimental/micro/compatibility.h" +#include "tensorflow/lite/core/api/flatbuffer_conversions.h" +#include "tensorflow/lite/experimental/micro/compatibility.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/experimental/micro/micro_interpreter.h b/tensorflow/lite/experimental/micro/micro_interpreter.h similarity index 81% rename from tensorflow/contrib/lite/experimental/micro/micro_interpreter.h rename to tensorflow/lite/experimental/micro/micro_interpreter.h index a88514cde849595244d36a31900e6d1c2ae1714b..6450dcce96204b6cf8df21c5f7f77b57c3a0c5fa 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_interpreter.h +++ b/tensorflow/lite/experimental/micro/micro_interpreter.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_INTERPRETER_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_INTERPRETER_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_INTERPRETER_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_INTERPRETER_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/core/api/op_resolver.h" -#include "tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/core/api/op_resolver.h" +#include "tensorflow/lite/experimental/micro/simple_tensor_allocator.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { @@ -68,4 +68,4 @@ class MicroInterpreter { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_INTERPRETER_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_INTERPRETER_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/micro_interpreter_test.cc b/tensorflow/lite/experimental/micro/micro_interpreter_test.cc similarity index 98% rename from tensorflow/contrib/lite/experimental/micro/micro_interpreter_test.cc rename to tensorflow/lite/experimental/micro/micro_interpreter_test.cc index 251e5f72037717f74bc3472b69144cff299f0668..0c0c71f0792dd3510556b13046a0b3b5e6acc9d8 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_interpreter_test.cc +++ b/tensorflow/lite/experimental/micro/micro_interpreter_test.cc @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/micro_interpreter.h" +#include "tensorflow/lite/experimental/micro/micro_interpreter.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/experimental/micro/testing/micro_test.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.cc b/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.cc rename to tensorflow/lite/experimental/micro/micro_mutable_op_resolver.cc index 40c21c6448c39f27c12e95ae36038510cb346362..1e8b5c0e573bd92468befe33378c33d405f73141 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.cc +++ b/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.h" +#include "tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h" namespace tflite { diff --git a/tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.h b/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h similarity index 79% rename from tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.h rename to tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h index f3750a248416cc7244e0dea82be167562fd59ee7..f613203909e2d4339295036242ab018182a5d510 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.h +++ b/tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_MUTABLE_OP_RESOLVER_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_MUTABLE_OP_RESOLVER_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_MUTABLE_OP_RESOLVER_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_MUTABLE_OP_RESOLVER_H_ -#include "tensorflow/contrib/lite/core/api/op_resolver.h" -#include "tensorflow/contrib/lite/experimental/micro/compatibility.h" +#include "tensorflow/lite/core/api/op_resolver.h" +#include "tensorflow/lite/experimental/micro/compatibility.h" #ifndef TFLITE_REGISTRATIONS_MAX #define TFLITE_REGISTRATIONS_MAX (128) @@ -43,4 +43,4 @@ class MicroMutableOpResolver : public OpResolver { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_MICRO_MUTABLE_OP_RESOLVER_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_MUTABLE_OP_RESOLVER_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver_test.cc b/tensorflow/lite/experimental/micro/micro_mutable_op_resolver_test.cc similarity index 94% rename from tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver_test.cc rename to tensorflow/lite/experimental/micro/micro_mutable_op_resolver_test.cc index 5420a33e8778d93d5aad2150438fdba80df372b8..f551830865dd935ff4cb030ff3b652a0155b989e 100644 --- a/tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver_test.cc +++ b/tensorflow/lite/experimental/micro/micro_mutable_op_resolver_test.cc @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/micro_mutable_op_resolver.h" +#include "tensorflow/lite/experimental/micro/micro_mutable_op_resolver.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/experimental/micro/testing/micro_test.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.cc b/tensorflow/lite/experimental/micro/simple_tensor_allocator.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.cc rename to tensorflow/lite/experimental/micro/simple_tensor_allocator.cc index 555e53afeff83731b0e07939bffbc08acdfd6628..6ce14edea53decd40d8449e9c160725c361d5ced 100644 --- a/tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.cc +++ b/tensorflow/lite/experimental/micro/simple_tensor_allocator.cc @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.h" +#include "tensorflow/lite/experimental/micro/simple_tensor_allocator.h" -#include "tensorflow/contrib/lite/core/api/flatbuffer_conversions.h" +#include "tensorflow/lite/core/api/flatbuffer_conversions.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.h b/tensorflow/lite/experimental/micro/simple_tensor_allocator.h similarity index 78% rename from tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.h rename to tensorflow/lite/experimental/micro/simple_tensor_allocator.h index 56fb293675808c17e0f7e60e607479609932fec4..3530ecdfe265f8e065f57c3d4ae2e75fa9c27f25 100644 --- a/tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator.h +++ b/tensorflow/lite/experimental/micro/simple_tensor_allocator.h @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_SIMPLE_TENSOR_ALLOCATOR_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_SIMPLE_TENSOR_ALLOCATOR_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_SIMPLE_TENSOR_ALLOCATOR_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_SIMPLE_TENSOR_ALLOCATOR_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { @@ -48,4 +48,4 @@ class SimpleTensorAllocator { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_SIMPLE_TENSOR_ALLOCATOR_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_SIMPLE_TENSOR_ALLOCATOR_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator_test.cc b/tensorflow/lite/experimental/micro/simple_tensor_allocator_test.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator_test.cc rename to tensorflow/lite/experimental/micro/simple_tensor_allocator_test.cc index ab19394502281d9736088aad73216105c4f573ab..b82017c7fe60e941633b08ac01f7dd0957930c24 100644 --- a/tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator_test.cc +++ b/tensorflow/lite/experimental/micro/simple_tensor_allocator_test.cc @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/micro/micro_interpreter.h" +#include "tensorflow/lite/experimental/micro/micro_interpreter.h" -#include "tensorflow/contrib/lite/experimental/micro/testing/micro_test.h" +#include "tensorflow/lite/experimental/micro/testing/micro_test.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/experimental/micro/testing/BUILD b/tensorflow/lite/experimental/micro/testing/BUILD similarity index 77% rename from tensorflow/contrib/lite/experimental/micro/testing/BUILD rename to tensorflow/lite/experimental/micro/testing/BUILD index 0d23be5712ad1bc6d81cc467cce8c9927caece3d..5a31a709ca3f0205b8764528d6e8f2c0fe0f93d0 100644 --- a/tensorflow/contrib/lite/experimental/micro/testing/BUILD +++ b/tensorflow/lite/experimental/micro/testing/BUILD @@ -12,6 +12,6 @@ cc_library( "micro_test.h", ], deps = [ - "//tensorflow/contrib/lite/experimental/micro:micro_framework", + "//tensorflow/lite/experimental/micro:micro_framework", ], ) diff --git a/tensorflow/contrib/lite/experimental/micro/testing/Dockerfile.bluepill b/tensorflow/lite/experimental/micro/testing/Dockerfile.bluepill similarity index 100% rename from tensorflow/contrib/lite/experimental/micro/testing/Dockerfile.bluepill rename to tensorflow/lite/experimental/micro/testing/Dockerfile.bluepill diff --git a/tensorflow/contrib/lite/experimental/micro/testing/bluepill.resc b/tensorflow/lite/experimental/micro/testing/bluepill.resc similarity index 100% rename from tensorflow/contrib/lite/experimental/micro/testing/bluepill.resc rename to tensorflow/lite/experimental/micro/testing/bluepill.resc diff --git a/tensorflow/contrib/lite/experimental/micro/testing/bluepill.robot b/tensorflow/lite/experimental/micro/testing/bluepill.robot similarity index 100% rename from tensorflow/contrib/lite/experimental/micro/testing/bluepill.robot rename to tensorflow/lite/experimental/micro/testing/bluepill.robot diff --git a/tensorflow/contrib/lite/experimental/micro/testing/micro_test.bzl b/tensorflow/lite/experimental/micro/testing/micro_test.bzl similarity index 96% rename from tensorflow/contrib/lite/experimental/micro/testing/micro_test.bzl rename to tensorflow/lite/experimental/micro/testing/micro_test.bzl index 916e3eeac394f9a815d7c1785d253fd54ca7aa0e..7a7ba15ca5fca8e903f9a0917a72788ea79f7485 100644 --- a/tensorflow/contrib/lite/experimental/micro/testing/micro_test.bzl +++ b/tensorflow/lite/experimental/micro/testing/micro_test.bzl @@ -51,7 +51,7 @@ def tflite_micro_cc_test( name = name, size = "medium", srcs = [ - "//tensorflow/contrib/lite/experimental/micro/testing:test_linux_binary.sh", + "//tensorflow/lite/experimental/micro/testing:test_linux_binary.sh", ], args = [ native.package_name() + "/" + name + "_binary", diff --git a/tensorflow/contrib/lite/experimental/micro/testing/micro_test.h b/tensorflow/lite/experimental/micro/testing/micro_test.h similarity index 96% rename from tensorflow/contrib/lite/experimental/micro/testing/micro_test.h rename to tensorflow/lite/experimental/micro/testing/micro_test.h index 3b6554dea6a59feb2d2675ef58005e21a8001887..10bab05faec9fd93c91cc8479ed6f72e03600917 100644 --- a/tensorflow/contrib/lite/experimental/micro/testing/micro_test.h +++ b/tensorflow/lite/experimental/micro/testing/micro_test.h @@ -51,10 +51,10 @@ limitations under the License. // all on systems that struggle to run more conventional approaches, so use with // caution! -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_TESTING_MICRO_TEST_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_TESTING_MICRO_TEST_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_TESTING_MICRO_TEST_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_TESTING_MICRO_TEST_H_ -#include "tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h" +#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" namespace micro_test { extern int tests_passed; @@ -153,4 +153,4 @@ extern tflite::ErrorReporter* reporter; } \ } while (false) -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICRO_TESTING_MICRO_TEST_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICRO_TESTING_MICRO_TEST_H_ diff --git a/tensorflow/contrib/lite/experimental/micro/testing/test_bluepill_binary.sh b/tensorflow/lite/experimental/micro/testing/test_bluepill_binary.sh similarity index 83% rename from tensorflow/contrib/lite/experimental/micro/testing/test_bluepill_binary.sh rename to tensorflow/lite/experimental/micro/testing/test_bluepill_binary.sh index a470dc52f8d84006f55676201caf8af3ff07d0b7..e288c6cf5683146796ddb43e9d467f4eca826fa3 100755 --- a/tensorflow/contrib/lite/experimental/micro/testing/test_bluepill_binary.sh +++ b/tensorflow/lite/experimental/micro/testing/test_bluepill_binary.sh @@ -27,8 +27,8 @@ declare -r MICRO_LOG_FILENAME=${MICRO_LOG_PATH}/logs.txt mkdir -p ${MICRO_LOG_PATH} docker build -t renode_bluepill \ - -f ${ROOT_DIR}/tensorflow/contrib/lite/experimental/micro/testing/Dockerfile.bluepill \ - ${ROOT_DIR}/tensorflow/contrib/lite/experimental/micro/testing/ + -f ${ROOT_DIR}/tensorflow/lite/experimental/micro/testing/Dockerfile.bluepill \ + ${ROOT_DIR}/tensorflow/lite/experimental/micro/testing/ exit_code=0 # running in `if` to avoid setting +e @@ -37,10 +37,10 @@ if ! docker run \ -v ${ROOT_DIR}:/workspace \ -v /tmp:/tmp \ -e BIN=/workspace/$1 \ - -e SCRIPT=/workspace/tensorflow/contrib/lite/experimental/micro/testing/bluepill.resc \ + -e SCRIPT=/workspace/tensorflow/lite/experimental/micro/testing/bluepill.resc \ -e EXPECTED="$2" \ -it renode_bluepill \ - /bin/bash -c "/opt/renode/tests/test.sh /workspace/tensorflow/contrib/lite/experimental/micro/testing/bluepill.robot 2>&1 >${MICRO_LOG_FILENAME}" + /bin/bash -c "/opt/renode/tests/test.sh /workspace/tensorflow/lite/experimental/micro/testing/bluepill.robot 2>&1 >${MICRO_LOG_FILENAME}" then exit_code=1 fi diff --git a/tensorflow/contrib/lite/experimental/micro/testing/test_linux_binary.sh b/tensorflow/lite/experimental/micro/testing/test_linux_binary.sh similarity index 100% rename from tensorflow/contrib/lite/experimental/micro/testing/test_linux_binary.sh rename to tensorflow/lite/experimental/micro/testing/test_linux_binary.sh diff --git a/tensorflow/contrib/lite/experimental/micro/tools/make/Makefile b/tensorflow/lite/experimental/micro/tools/make/Makefile similarity index 73% rename from tensorflow/contrib/lite/experimental/micro/tools/make/Makefile rename to tensorflow/lite/experimental/micro/tools/make/Makefile index 93e470675c662a3bd93a8eed2daff0e540cbe3c3..5492003e5af2f33dc907c4a6ba1674a78fcd1557 100644 --- a/tensorflow/contrib/lite/experimental/micro/tools/make/Makefile +++ b/tensorflow/lite/experimental/micro/tools/make/Makefile @@ -1,4 +1,4 @@ -MAKEFILE_DIR := tensorflow/contrib/lite/experimental/micro/tools/make +MAKEFILE_DIR := tensorflow/lite/experimental/micro/tools/make # Try to figure out the host system HOST_OS := @@ -17,7 +17,7 @@ endif HOST_ARCH := $(shell if [[ $(shell uname -m) =~ i[345678]86 ]]; then echo x86_32; else echo $(shell uname -m); fi) # Override these on the make command line to target a specific architecture. For example: -# make -f tensorflow/contrib/lite/Makefile TARGET=rpi TARGET_ARCH=armv7l +# make -f tensorflow/lite/Makefile TARGET=rpi TARGET_ARCH=armv7l TARGET := $(HOST_OS) TARGET_ARCH := $(HOST_ARCH) @@ -33,7 +33,7 @@ INCLUDES := \ # override local versions in the source tree. INCLUDES += -I/usr/local/include -TEST_SCRIPT := tensorflow/contrib/lite/experimental/micro/testing/test_linux_binary.sh +TEST_SCRIPT := tensorflow/lite/experimental/micro/testing/test_linux_binary.sh MICROLITE_LIBS := -lm @@ -54,33 +54,33 @@ MICROLITE_LIB_NAME := libtensorflow-microlite.a # Test binary for the microcontroller speech model. MICRO_SPEECH_TEST_SRCS := \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.cc \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_features_data.cc \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_features_data.cc +tensorflow/lite/experimental/micro/examples/micro_speech/micro_speech_test.cc \ +tensorflow/lite/experimental/micro/examples/micro_speech/tiny_conv_model_data.cc \ +tensorflow/lite/experimental/micro/examples/micro_speech/no_features_data.cc \ +tensorflow/lite/experimental/micro/examples/micro_speech/yes_features_data.cc # Test binary for the microcontroller speech model. PREPROCESSOR_TEST_SRCS := \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor_test.cc \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/preprocessor.cc \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.cc \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.cc \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.cc \ -tensorflow/contrib/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.cc +tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor_test.cc \ +tensorflow/lite/experimental/micro/examples/micro_speech/preprocessor.cc \ +tensorflow/lite/experimental/micro/examples/micro_speech/no_30ms_sample_data.cc \ +tensorflow/lite/experimental/micro/examples/micro_speech/yes_30ms_sample_data.cc \ +tensorflow/lite/experimental/micro/examples/micro_speech/no_power_spectrum_data.cc \ +tensorflow/lite/experimental/micro/examples/micro_speech/yes_power_spectrum_data.cc MICROLITE_TEST_SRCS := \ -$(wildcard tensorflow/contrib/lite/experimental/micro/*test.cc) \ -$(wildcard tensorflow/contrib/lite/experimental/micro/kernels/*test.cc) +$(wildcard tensorflow/lite/experimental/micro/*test.cc) \ +$(wildcard tensorflow/lite/experimental/micro/kernels/*test.cc) MICROLITE_CC_BASE_SRCS := \ -$(wildcard tensorflow/contrib/lite/experimental/micro/*.cc) \ -$(wildcard tensorflow/contrib/lite/experimental/micro/kernels/*.cc) \ -tensorflow/contrib/lite/c/c_api_internal.c \ -tensorflow/contrib/lite/core/api/error_reporter.cc \ -tensorflow/contrib/lite/core/api/flatbuffer_conversions.cc \ -tensorflow/contrib/lite/core/api/op_resolver.cc \ -tensorflow/contrib/lite/kernels/kernel_util.cc \ -tensorflow/contrib/lite/kernels/internal/quantization_util.cc +$(wildcard tensorflow/lite/experimental/micro/*.cc) \ +$(wildcard tensorflow/lite/experimental/micro/kernels/*.cc) \ +tensorflow/lite/c/c_api_internal.c \ +tensorflow/lite/core/api/error_reporter.cc \ +tensorflow/lite/core/api/flatbuffer_conversions.cc \ +tensorflow/lite/core/api/op_resolver.cc \ +tensorflow/lite/kernels/kernel_util.cc \ +tensorflow/lite/kernels/internal/quantization_util.cc MICROLITE_CC_SRCS := $(filter-out $(MICROLITE_TEST_SRCS), $(MICROLITE_CC_BASE_SRCS)) # These target-specific makefiles should modify or replace options like @@ -138,11 +138,11 @@ all: $(MICROLITE_LIB_PATH) $(MICRO_SPEECH_TEST_BINARY) $(PREPROCESSOR_TEST_BINAR microlite: $(MICROLITE_LIB_PATH) # Hack for generating schema file bypassing flatbuffer parsing -tensorflow/contrib/lite/schema/schema_generated.h: - @cp -u tensorflow/contrib/lite/schema/schema_generated.h.OPENSOURCE tensorflow/contrib/lite/schema/schema_generated.h +tensorflow/lite/schema/schema_generated.h: + @cp -u tensorflow/lite/schema/schema_generated.h.OPENSOURCE tensorflow/lite/schema/schema_generated.h # Gathers together all the objects we've compiled into a single '.a' archive. -$(MICROLITE_LIB_PATH): tensorflow/contrib/lite/schema/schema_generated.h $(MICROLITE_LIB_OBJS) +$(MICROLITE_LIB_PATH): tensorflow/lite/schema/schema_generated.h $(MICROLITE_LIB_OBJS) @mkdir -p $(dir $@) $(AR) $(ARFLAGS) $(MICROLITE_LIB_PATH) $(MICROLITE_LIB_OBJS) diff --git a/tensorflow/contrib/lite/experimental/micro/tools/make/download_dependencies.sh b/tensorflow/lite/experimental/micro/tools/make/download_dependencies.sh similarity index 97% rename from tensorflow/contrib/lite/experimental/micro/tools/make/download_dependencies.sh rename to tensorflow/lite/experimental/micro/tools/make/download_dependencies.sh index 62402efddd86af1e46046a186871b175657e1823..dd87d0d8dadeee463b715158b317d60a5a6d9ee6 100755 --- a/tensorflow/contrib/lite/experimental/micro/tools/make/download_dependencies.sh +++ b/tensorflow/lite/experimental/micro/tools/make/download_dependencies.sh @@ -19,7 +19,7 @@ set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$SCRIPT_DIR/../../../../../../.." -DOWNLOADS_DIR=tensorflow/contrib/lite/experimental/micro/tools/make/downloads +DOWNLOADS_DIR=tensorflow/lite/experimental/micro/tools/make/downloads BZL_FILE_PATH=tensorflow/workspace.bzl # Ensure it is being run from repo root diff --git a/tensorflow/contrib/lite/experimental/micro/tools/make/targets/apollo3evb/_main.c b/tensorflow/lite/experimental/micro/tools/make/targets/apollo3evb/_main.c similarity index 100% rename from tensorflow/contrib/lite/experimental/micro/tools/make/targets/apollo3evb/_main.c rename to tensorflow/lite/experimental/micro/tools/make/targets/apollo3evb/_main.c diff --git a/tensorflow/contrib/lite/experimental/micro/tools/make/targets/apollo3evb/apollo3evb.ld b/tensorflow/lite/experimental/micro/tools/make/targets/apollo3evb/apollo3evb.ld similarity index 100% rename from tensorflow/contrib/lite/experimental/micro/tools/make/targets/apollo3evb/apollo3evb.ld rename to tensorflow/lite/experimental/micro/tools/make/targets/apollo3evb/apollo3evb.ld diff --git a/tensorflow/contrib/lite/experimental/micro/tools/make/targets/apollo3evb_makefile.inc b/tensorflow/lite/experimental/micro/tools/make/targets/apollo3evb_makefile.inc similarity index 93% rename from tensorflow/contrib/lite/experimental/micro/tools/make/targets/apollo3evb_makefile.inc rename to tensorflow/lite/experimental/micro/tools/make/targets/apollo3evb_makefile.inc index 86c5af69a927ff08f4608bdcdb3c29dc5018e725..f722204feaded521945cd269b36576e560dac3e4 100644 --- a/tensorflow/contrib/lite/experimental/micro/tools/make/targets/apollo3evb_makefile.inc +++ b/tensorflow/lite/experimental/micro/tools/make/targets/apollo3evb_makefile.inc @@ -86,11 +86,11 @@ ifeq ($(TARGET), apollo3evb) $(MAKEFILE_DIR)/targets/apollo3evb/am_util_id.c \ $(MAKEFILE_DIR)/targets/apollo3evb/am_util_stdio.c - TEST_SCRIPT := tensorflow/contrib/lite/experimental/log_test/test_apollo3evb_binary.sh + TEST_SCRIPT := tensorflow/lite/experimental/log_test/test_apollo3evb_binary.sh # These are tests that don't currently work on the blue pill. EXCLUDED_TESTS := \ - tensorflow/contrib/lite/experimental/micro/micro_interpreter_test.cc \ - tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator_test.cc + tensorflow/lite/experimental/micro/micro_interpreter_test.cc \ + tensorflow/lite/experimental/micro/simple_tensor_allocator_test.cc MICROLITE_TEST_SRCS := $(filter-out $(EXCLUDED_TESTS), $(MICROLITE_TEST_SRCS)) # These are microcontroller-specific rules for converting the ELF output diff --git a/tensorflow/contrib/lite/experimental/micro/tools/make/targets/bluepill_makefile.inc b/tensorflow/lite/experimental/micro/tools/make/targets/bluepill_makefile.inc similarity index 87% rename from tensorflow/contrib/lite/experimental/micro/tools/make/targets/bluepill_makefile.inc rename to tensorflow/lite/experimental/micro/tools/make/targets/bluepill_makefile.inc index 022a8422dc89c048797d0f9ba224f67060d210d7..5e3105a109b99b061a35b9c6f6c7c5f3681e2b45 100644 --- a/tensorflow/contrib/lite/experimental/micro/tools/make/targets/bluepill_makefile.inc +++ b/tensorflow/lite/experimental/micro/tools/make/targets/bluepill_makefile.inc @@ -47,11 +47,11 @@ ifeq ($(TARGET), bluepill) MICROLITE_CC_SRCS += \ $(wildcard $(MAKEFILE_DIR)/downloads/stm32_bare_lib/source/*.c) \ $(wildcard $(MAKEFILE_DIR)/downloads/stm32_bare_lib/source/*.cc) - TEST_SCRIPT := tensorflow/contrib/lite/experimental/micro/testing/test_bluepill_binary.sh + TEST_SCRIPT := tensorflow/lite/experimental/micro/testing/test_bluepill_binary.sh # These are tests that don't currently work on the blue pill. EXCLUDED_TESTS := \ - tensorflow/contrib/lite/experimental/micro/micro_interpreter_test.cc \ - tensorflow/contrib/lite/experimental/micro/simple_tensor_allocator_test.cc + tensorflow/lite/experimental/micro/micro_interpreter_test.cc \ + tensorflow/lite/experimental/micro/simple_tensor_allocator_test.cc MICROLITE_TEST_SRCS := $(filter-out $(EXCLUDED_TESTS), $(MICROLITE_TEST_SRCS)) # These are microcontroller-specific rules for converting the ELF output diff --git a/tensorflow/contrib/lite/experimental/microfrontend/BUILD b/tensorflow/lite/experimental/microfrontend/BUILD similarity index 81% rename from tensorflow/contrib/lite/experimental/microfrontend/BUILD rename to tensorflow/lite/experimental/microfrontend/BUILD index 5005d0bbae8a717a196cc3cf202d94ef7e14cd07..2f881e3acabdae526ffba0a0b94f273da2d260ef 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/BUILD +++ b/tensorflow/lite/experimental/microfrontend/BUILD @@ -20,10 +20,10 @@ cc_library( name = "audio_microfrontend", srcs = ["audio_microfrontend.cc"], deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/experimental/microfrontend/lib:frontend", - "//tensorflow/contrib/lite/kernels:kernel_util", - "//tensorflow/contrib/lite/kernels/internal:reference", + "//tensorflow/lite:framework", + "//tensorflow/lite/experimental/microfrontend/lib:frontend", + "//tensorflow/lite/kernels:kernel_util", + "//tensorflow/lite/kernels/internal:reference", "@flatbuffers", ], ) @@ -35,8 +35,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":audio_microfrontend", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@flatbuffers", ], @@ -48,15 +48,15 @@ tf_custom_op_library( "ops/audio_microfrontend_op.cc", ], deps = [ - "//tensorflow/contrib/lite/experimental/microfrontend/lib:frontend", + "//tensorflow/lite/experimental/microfrontend/lib:frontend", ], ) tf_gen_op_libs( op_lib_names = ["audio_microfrontend_op"], deps = [ - "//tensorflow/contrib/lite/experimental/microfrontend/lib:frontend", "//tensorflow/core:lib", + "//tensorflow/lite/experimental/microfrontend/lib:frontend", ], ) diff --git a/tensorflow/contrib/lite/experimental/microfrontend/audio_microfrontend.cc b/tensorflow/lite/experimental/microfrontend/audio_microfrontend.cc similarity index 95% rename from tensorflow/contrib/lite/experimental/microfrontend/audio_microfrontend.cc rename to tensorflow/lite/experimental/microfrontend/audio_microfrontend.cc index 8819d070b85a337dcdf7b426ec370a565fa9e59f..4367fe74a484445289f15c83860ca08ca4e144db 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/audio_microfrontend.cc +++ b/tensorflow/lite/experimental/microfrontend/audio_microfrontend.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend_util.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/audio_microfrontend_test.cc b/tensorflow/lite/experimental/microfrontend/audio_microfrontend_test.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/microfrontend/audio_microfrontend_test.cc rename to tensorflow/lite/experimental/microfrontend/audio_microfrontend_test.cc index 9da58d960679a3b7b5232723e2ee4570df999d37..a9119d01831f6892dbf887930f3626445fc8a8e3 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/audio_microfrontend_test.cc +++ b/tensorflow/lite/experimental/microfrontend/audio_microfrontend_test.cc @@ -20,9 +20,9 @@ limitations under the License. #include #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/BUILD b/tensorflow/lite/experimental/microfrontend/lib/BUILD similarity index 100% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/BUILD rename to tensorflow/lite/experimental/microfrontend/lib/BUILD diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/README b/tensorflow/lite/experimental/microfrontend/lib/README similarity index 100% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/README rename to tensorflow/lite/experimental/microfrontend/lib/README diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/bits.h b/tensorflow/lite/experimental/microfrontend/lib/bits.h similarity index 92% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/bits.h rename to tensorflow/lite/experimental/microfrontend/lib/bits.h index f81bc2b023e62a377be9e5ba094a520cdc7b358f..bf15466a3d6484c3059a1ded1bb51e4d4287b1bf 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/bits.h +++ b/tensorflow/lite/experimental/microfrontend/lib/bits.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_BITS_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_BITS_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_BITS_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_BITS_H_ #ifdef __cplusplus #include @@ -99,4 +99,4 @@ static inline int MostSignificantBit64(uint64_t n) { } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_BITS_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_BITS_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft.c b/tensorflow/lite/experimental/microfrontend/lib/fft.c similarity index 96% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/fft.c rename to tensorflow/lite/experimental/microfrontend/lib/fft.c index 1ecbb30b514294ac3b0006d28064b193806fe1f3..c1dd62fb7d4254f3a8f8941fb1dfa95dc0fdb5ba 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft.c +++ b/tensorflow/lite/experimental/microfrontend/lib/fft.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft.h" #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h b/tensorflow/lite/experimental/microfrontend/lib/fft.h similarity index 84% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h rename to tensorflow/lite/experimental/microfrontend/lib/fft.h index e7644bf2a70f5185db8c7a9356e1ee145ff14bd2..aaffa69debb17d1614edd3378c452c29dd16f079 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h +++ b/tensorflow/lite/experimental/microfrontend/lib/fft.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_H_ #include #include @@ -47,4 +47,4 @@ void FftReset(struct FftState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_io.c b/tensorflow/lite/experimental/microfrontend/lib/fft_io.c similarity index 95% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/fft_io.c rename to tensorflow/lite/experimental/microfrontend/lib/fft_io.c index cc1ce209d8501b3d41199c83362a7576031d5005..b01a8848e9d5cb07ae7fcee7646e84480f43a279 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_io.c +++ b/tensorflow/lite/experimental/microfrontend/lib/fft_io.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft_io.h" void FftWriteMemmapPreamble(FILE* fp, const struct FftState* state) { fprintf(fp, "static int16_t fft_input[%zu];\n", state->fft_size); diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_io.h b/tensorflow/lite/experimental/microfrontend/lib/fft_io.h similarity index 76% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/fft_io.h rename to tensorflow/lite/experimental/microfrontend/lib/fft_io.h index 4d10c3a92af7e86d572f1775e9958d29d12bad2e..7a59af68266381f25e1cc9b9bd72e04acdcfa60a 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_io.h +++ b/tensorflow/lite/experimental/microfrontend/lib/fft_io.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_IO_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_IO_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_IO_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_IO_H_ #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft.h" #ifdef __cplusplus extern "C" { @@ -31,4 +31,4 @@ void FftWriteMemmap(FILE* fp, const struct FftState* state, } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_IO_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_IO_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_test.cc b/tensorflow/lite/experimental/microfrontend/lib/fft_test.cc similarity index 92% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/fft_test.cc rename to tensorflow/lite/experimental/microfrontend/lib/fft_test.cc index b8684a0b5c0187afb28fac6f11c8231b75abc1d4..7c1ee2d852201cc52a53ae07bf6e00ebf6f1ab47 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_test.cc +++ b/tensorflow/lite/experimental/microfrontend/lib/fft_test.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.c b/tensorflow/lite/experimental/microfrontend/lib/fft_util.c similarity index 96% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.c rename to tensorflow/lite/experimental/microfrontend/lib/fft_util.c index 55494422f375e111e0e6c5c47f7cf193a364006a..40cb9f87358087159d031613311077542aa77fa4 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/fft_util.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft_util.h" #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.h b/tensorflow/lite/experimental/microfrontend/lib/fft_util.h similarity index 76% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.h rename to tensorflow/lite/experimental/microfrontend/lib/fft_util.h index 4935e87fc1ab8b7d41063793b43d10b9402badd9..6a471301c3f0a548e3032ced65639832d6f03b02 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.h +++ b/tensorflow/lite/experimental/microfrontend/lib/fft_util.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_UTIL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_UTIL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_UTIL_H_ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft.h" #ifdef __cplusplus extern "C" { @@ -31,4 +31,4 @@ void FftFreeStateContents(struct FftState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_UTIL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FFT_UTIL_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.c b/tensorflow/lite/experimental/microfrontend/lib/filterbank.c similarity index 96% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.c rename to tensorflow/lite/experimental/microfrontend/lib/filterbank.c index 944eb1a7379746dbe94715838e12e6fcf9f3a5df..22cfaf78ab4662c99f5548e59ce017d1f37d8208 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.c +++ b/tensorflow/lite/experimental/microfrontend/lib/filterbank.c @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank.h" #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/bits.h" +#include "tensorflow/lite/experimental/microfrontend/lib/bits.h" void FilterbankConvertFftComplexToEnergy(struct FilterbankState* state, struct complex_int16_t* fft_output, diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.h b/tensorflow/lite/experimental/microfrontend/lib/filterbank.h similarity index 86% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.h rename to tensorflow/lite/experimental/microfrontend/lib/filterbank.h index 0dd9c3fa6516808527ab0d1dd5a4b7bee1449f28..1e6d3885f2c2273ed8bf718e0c1148b8714cbfcf 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.h +++ b/tensorflow/lite/experimental/microfrontend/lib/filterbank.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_H_ #include #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft.h" #define kFilterbankBits 12 @@ -60,4 +60,4 @@ void FilterbankReset(struct FilterbankState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_io.c b/tensorflow/lite/experimental/microfrontend/lib/filterbank_io.c similarity index 97% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_io.c rename to tensorflow/lite/experimental/microfrontend/lib/filterbank_io.c index 672ddd530f847c6bc12643a7d2d77156a75db90f..2dbb4b3bf09654df3be0165f14c6f3da742268f1 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_io.c +++ b/tensorflow/lite/experimental/microfrontend/lib/filterbank_io.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank_io.h" static void PrintArray(FILE* fp, const char* name, const int16_t* values, size_t size) { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_io.h b/tensorflow/lite/experimental/microfrontend/lib/filterbank_io.h similarity index 75% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_io.h rename to tensorflow/lite/experimental/microfrontend/lib/filterbank_io.h index 1ddc314df2234de74b3712780a7dff4504017747..5fc96845897c566dd62271a84a936638562784e2 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_io.h +++ b/tensorflow/lite/experimental/microfrontend/lib/filterbank_io.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_IO_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_IO_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_IO_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_IO_H_ #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank.h" #ifdef __cplusplus extern "C" { @@ -32,4 +32,4 @@ void FilterbankWriteMemmap(FILE* fp, const struct FilterbankState* state, } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_IO_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_IO_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_test.cc b/tensorflow/lite/experimental/microfrontend/lib/filterbank_test.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_test.cc rename to tensorflow/lite/experimental/microfrontend/lib/filterbank_test.cc index 88d8de4b8f0ebd632c22f1665c1f5281025a338b..808d527186eaa920a9eb5319b328b96de6047174 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_test.cc +++ b/tensorflow/lite/experimental/microfrontend/lib/filterbank_test.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank_util.h" #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.c b/tensorflow/lite/experimental/microfrontend/lib/filterbank_util.c similarity index 99% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.c rename to tensorflow/lite/experimental/microfrontend/lib/filterbank_util.c index 53b5e45073455b01be869100f8d2cd26834ab9bb..ce8b4acc0f696f9c4123bab9daeb1e8802c3e828 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/filterbank_util.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.h b/tensorflow/lite/experimental/microfrontend/lib/filterbank_util.h similarity index 81% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.h rename to tensorflow/lite/experimental/microfrontend/lib/filterbank_util.h index 9ec9bc930286e3fd6a40a1ac080f4b992503cc2e..781d102479b4283111108196b7117f33fde07092 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.h +++ b/tensorflow/lite/experimental/microfrontend/lib/filterbank_util.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_UTIL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_UTIL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_UTIL_H_ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank.h" #ifdef __cplusplus extern "C" { @@ -47,4 +47,4 @@ void FilterbankFreeStateContents(struct FilterbankState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_UTIL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FILTERBANK_UTIL_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.c b/tensorflow/lite/experimental/microfrontend/lib/frontend.c similarity index 94% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.c rename to tensorflow/lite/experimental/microfrontend/lib/frontend.c index de7a60b56fd85a702469cec52ecd1c29b209eae0..7a618d9af5e79792970abc506e152a85b898a758 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.c +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend.c @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/bits.h" +#include "tensorflow/lite/experimental/microfrontend/lib/bits.h" struct FrontendOutput FrontendProcessSamples(struct FrontendState* state, const int16_t* samples, diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h b/tensorflow/lite/experimental/microfrontend/lib/frontend.h similarity index 73% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h rename to tensorflow/lite/experimental/microfrontend/lib/frontend.h index 71ae81024cb3aee6248de17712d7051665aed97c..883df5fd3d05c506b8cbbb8f8b24fa02d9ee7f3c 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend.h @@ -12,18 +12,18 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_H_ #include #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h" +#include "tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window.h" #ifdef __cplusplus extern "C" { @@ -61,4 +61,4 @@ void FrontendReset(struct FrontendState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_io.c b/tensorflow/lite/experimental/microfrontend/lib/frontend_io.c similarity index 83% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_io.c rename to tensorflow/lite/experimental/microfrontend/lib/frontend_io.c index 40bcf247497dffd0f8008d704a609602ecb0d0fb..b422d078a6faaf65221805fd79d0e4e373a92d6a 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_io.c +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend_io.c @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend_io.h" #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft_io.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_io.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_io.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_io.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window_io.h" int WriteFrontendStateMemmap(const char* header, const char* source, const struct FrontendState* state) { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_io.h b/tensorflow/lite/experimental/microfrontend/lib/frontend_io.h similarity index 73% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_io.h rename to tensorflow/lite/experimental/microfrontend/lib/frontend_io.h index 4f45577caeab7aaff9210355d9d4d811dedfdf16..0d59eda7d093f07f5a98c96ef4d0dc7d3b1fa28c 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_io.h +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend_io.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_IO_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_IO_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_IO_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_IO_H_ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" #ifdef __cplusplus extern "C" { @@ -28,4 +28,4 @@ int WriteFrontendStateMemmap(const char* header, const char* source, } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_IO_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_IO_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_main.c b/tensorflow/lite/experimental/microfrontend/lib/frontend_main.c similarity index 93% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_main.c rename to tensorflow/lite/experimental/microfrontend/lib/frontend_main.c index 46caebeec9059c9d13f19e4ac30d602a6b47eaba..4a8411b6214df3ae930367342ee222ea2196c619 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_main.c +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend_main.c @@ -14,8 +14,8 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend_util.h" int main(int argc, char** argv) { struct FrontendConfig frontend_config; diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_memmap_generator.c b/tensorflow/lite/experimental/microfrontend/lib/frontend_memmap_generator.c similarity index 86% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_memmap_generator.c rename to tensorflow/lite/experimental/microfrontend/lib/frontend_memmap_generator.c index a4c59b0cccabb70579a0267b6c95ec0b39908276..766b7f2ad568dbec20f9b1a8525825020c411d9e 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_memmap_generator.c +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend_memmap_generator.c @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend_io.h" int main(int argc, char** argv) { if (argc != 3) { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_memmap_main.c b/tensorflow/lite/experimental/microfrontend/lib/frontend_memmap_main.c similarity index 96% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_memmap_main.c rename to tensorflow/lite/experimental/microfrontend/lib/frontend_memmap_main.c index a4264922b94b5af21f6a2444d55bf10607af4a23..cf39e93a78361d1da9a1c837610c482309135c9a 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_memmap_main.c +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend_memmap_main.c @@ -14,7 +14,7 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" #include "memmap.h" int main(int argc, char** argv) { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_test.cc b/tensorflow/lite/experimental/microfrontend/lib/frontend_test.cc similarity index 96% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_test.cc rename to tensorflow/lite/experimental/microfrontend/lib/frontend_test.cc index f06e2565c285e62c6921121ee94cc911f0f52fc7..993e866cc08850cdfea129278783420e827d67f2 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_test.cc +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend_test.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.c b/tensorflow/lite/experimental/microfrontend/lib/frontend_util.c similarity index 95% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.c rename to tensorflow/lite/experimental/microfrontend/lib/frontend_util.c index ae2d9ae6c4c8bb23a2d26e8f8c48d6b4788217e5..94c15adcafe9261527fa239487f59eb70e63f6a3 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend_util.c @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend_util.h" #include #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/bits.h" +#include "tensorflow/lite/experimental/microfrontend/lib/bits.h" void FrontendFillConfigWithDefaults(struct FrontendConfig* config) { WindowFillConfigWithDefaults(&config->window); diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h b/tensorflow/lite/experimental/microfrontend/lib/frontend_util.h similarity index 62% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h rename to tensorflow/lite/experimental/microfrontend/lib/frontend_util.h index a958b610eae689192aa96eacefe654292350fcd7..895ce6cd2b2b08e858196fc773a45ae9d29b41b0 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h +++ b/tensorflow/lite/experimental/microfrontend/lib/frontend_util.h @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_UTIL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_UTIL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_UTIL_H_ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/fft_util.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/filterbank_util.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/fft_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/filterbank_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window_util.h" #ifdef __cplusplus extern "C" { @@ -49,4 +49,4 @@ void FrontendFreeStateContents(struct FrontendState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_UTIL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_FRONTEND_UTIL_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_lut.c b/tensorflow/lite/experimental/microfrontend/lib/log_lut.c similarity index 95% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_lut.c rename to tensorflow/lite/experimental/microfrontend/lib/log_lut.c index f8d32102336d19650703e740162e32eef6a6d287..f59618e028f48889029d31bb6b64784db9b98c2c 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_lut.c +++ b/tensorflow/lite/experimental/microfrontend/lib/log_lut.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_lut.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_lut.h" const uint16_t kLogLut[] #ifndef _MSC_VER __attribute__((aligned(4))) diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_lut.h b/tensorflow/lite/experimental/microfrontend/lib/log_lut.h similarity index 82% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_lut.h rename to tensorflow/lite/experimental/microfrontend/lib/log_lut.h index 53dd1fa4052d2f7f26e4428772670af658f61878..b2448a32289a91c653c2fbe9b1080622112f0242 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_lut.h +++ b/tensorflow/lite/experimental/microfrontend/lib/log_lut.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_LUT_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_LUT_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_LUT_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_LUT_H_ #include @@ -37,4 +37,4 @@ extern const uint16_t kLogLut[]; } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_LUT_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_LUT_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.c b/tensorflow/lite/experimental/microfrontend/lib/log_scale.c similarity index 92% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.c rename to tensorflow/lite/experimental/microfrontend/lib/log_scale.c index 4b1246187155e82cd9495a9a4020483526fcbd2b..54f370e7d9f55250279cd6c9a81b9a17e0d6e071 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.c +++ b/tensorflow/lite/experimental/microfrontend/lib/log_scale.c @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/bits.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_lut.h" +#include "tensorflow/lite/experimental/microfrontend/lib/bits.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_lut.h" #define kuint16max 0x0000FFFF diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.h b/tensorflow/lite/experimental/microfrontend/lib/log_scale.h similarity index 82% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.h rename to tensorflow/lite/experimental/microfrontend/lib/log_scale.h index 8fd6099933049210aab2402e447dba8ad87406fa..a383f32f5bc6df63f148e537d55e63be05aadbc2 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.h +++ b/tensorflow/lite/experimental/microfrontend/lib/log_scale.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_H_ #include #include @@ -36,4 +36,4 @@ uint16_t* LogScaleApply(struct LogScaleState* state, uint32_t* signal, } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_io.c b/tensorflow/lite/experimental/microfrontend/lib/log_scale_io.c similarity index 92% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_io.c rename to tensorflow/lite/experimental/microfrontend/lib/log_scale_io.c index f59cde951ca40ab1b0d4c8d4407789deb0df74f9..a04760de58e5fb8f3918e67b52505f867e9432b8 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_io.c +++ b/tensorflow/lite/experimental/microfrontend/lib/log_scale_io.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale_io.h" void LogScaleWriteMemmap(FILE* fp, const struct LogScaleState* state, const char* variable) { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_io.h b/tensorflow/lite/experimental/microfrontend/lib/log_scale_io.h similarity index 73% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_io.h rename to tensorflow/lite/experimental/microfrontend/lib/log_scale_io.h index 5444303b2445ac72d1069eff5c50db8622d4b536..9d447ac9018b12fcdf206b8c3d5f1c6d32c18230 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_io.h +++ b/tensorflow/lite/experimental/microfrontend/lib/log_scale_io.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_IO_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_IO_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_IO_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_IO_H_ #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale.h" #ifdef __cplusplus extern "C" { @@ -30,4 +30,4 @@ void LogScaleWriteMemmap(FILE* fp, const struct LogScaleState* state, } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_IO_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_IO_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_test.cc b/tensorflow/lite/experimental/microfrontend/lib/log_scale_test.cc similarity index 92% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_test.cc rename to tensorflow/lite/experimental/microfrontend/lib/log_scale_test.cc index 312d7ea7406a14f52fb04b570f121307f5422b9b..91ca657e543d2a5f89a55483df8bdfbee1365951 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_test.cc +++ b/tensorflow/lite/experimental/microfrontend/lib/log_scale_test.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.c b/tensorflow/lite/experimental/microfrontend/lib/log_scale_util.c similarity index 92% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.c rename to tensorflow/lite/experimental/microfrontend/lib/log_scale_util.c index 8a025fbf72d9db349d9459e1d1fd76858b97a661..0e3dd1d1e94687f341f9d14ebdcd63913123fc98 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/log_scale_util.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale_util.h" void LogScaleFillConfigWithDefaults(struct LogScaleConfig* config) { config->enable_log = 1; diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.h b/tensorflow/lite/experimental/microfrontend/lib/log_scale_util.h similarity index 79% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.h rename to tensorflow/lite/experimental/microfrontend/lib/log_scale_util.h index 33b21f30b1093077f640f1d0c15dc336e72d8c31..11f7d9eeb9b7939e15c1fb5120a1b5dff2aacdbe 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale_util.h +++ b/tensorflow/lite/experimental/microfrontend/lib/log_scale_util.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_UTIL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_UTIL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_UTIL_H_ #include #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/log_scale.h" +#include "tensorflow/lite/experimental/microfrontend/lib/log_scale.h" #ifdef __cplusplus extern "C" { @@ -42,4 +42,4 @@ int LogScalePopulateState(const struct LogScaleConfig* config, } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_UTIL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_LOG_SCALE_UTIL_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.c b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction.c similarity index 95% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.c rename to tensorflow/lite/experimental/microfrontend/lib/noise_reduction.c index 92f8b58d74f9d361af068eec19a5530a22a7715c..b6fcb5e9409c071805cdd30643481d0a07cd8d0e 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.c +++ b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h" #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.h b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h similarity index 83% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.h rename to tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h index cc2cf2d9b742f9d9a0e12700e4bdf0a74ea589d7..46d3f52e60e37693496e4597992fae6678f87c7e 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.h +++ b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_H_ #define kNoiseReductionBits 14 @@ -43,4 +43,4 @@ void NoiseReductionReset(struct NoiseReductionState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_io.c b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.c similarity index 94% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_io.c rename to tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.c index 1cba410436ad2b541207cc2ba7aaf6d54e71d172..19c32b32759ed6d6c1b24e0758ffb491a7fda766 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_io.c +++ b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.h" void NoiseReductionWriteMemmapPreamble( FILE* fp, const struct NoiseReductionState* state) { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_io.h b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.h similarity index 75% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_io.h rename to tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.h index afeedfce99d09b934e7d63ff3ce60cf4928f3c11..ded52118f0cab05dcbe375860c8371f7fb7ecab7 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_io.h +++ b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_IO_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_IO_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_IO_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_IO_H_ #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h" #ifdef __cplusplus extern "C" { @@ -33,4 +33,4 @@ void NoiseReductionWriteMemmap(FILE* fp, } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_IO_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_IO_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_test.cc b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_test.cc similarity index 92% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_test.cc rename to tensorflow/lite/experimental/microfrontend/lib/noise_reduction_test.cc index f4cf486227a2607774a82dd45c9d9ee4c2bcdb16..16140564879305de86947044f8b8efd055a4793c 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_test.cc +++ b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_test.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.c b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.c similarity index 95% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.c rename to tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.c index 46f475352e0670a2618e3796c7495343b32d013e..a6c9234eb888daa719b792e8988e951a7b4a98f7 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.h" #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.h b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.h similarity index 82% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.h rename to tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.h index 207b8a679dac9d3cf2e933f499477b2e03c12cb4..fa55539143fca69f3824a80d9a3cb98d3191f5bc 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction_util.h +++ b/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_UTIL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_UTIL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_UTIL_H_ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/noise_reduction.h" +#include "tensorflow/lite/experimental/microfrontend/lib/noise_reduction.h" #ifdef __cplusplus extern "C" { @@ -47,4 +47,4 @@ void NoiseReductionFreeStateContents(struct NoiseReductionState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_UTIL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_NOISE_REDUCTION_UTIL_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.c b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.c similarity index 92% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.c rename to tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.c index 551d552e8f63a487debdacba63fb11cb67de0e2f..b49eb301370a7e95497478625a97333225a83341 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.c +++ b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.c @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.h" +#include "tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/bits.h" +#include "tensorflow/lite/experimental/microfrontend/lib/bits.h" int16_t WideDynamicFunction(const uint32_t x, const int16_t* lut) { if (x <= 2) { diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.h b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h similarity index 82% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.h rename to tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h index cab74f49dbece640cc2925607260ba74a95a76a1..815579132233614c28167d3520b9aa2abe083423 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.h +++ b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_H_ #include #include @@ -43,4 +43,4 @@ void PcanGainControlApply(struct PcanGainControlState* state, uint32_t* signal); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_test.cc b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_test.cc similarity index 91% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_test.cc rename to tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_test.cc index bbc36d6eac7757e3e7d3db7691aa11785c6deb37..830db89edd8eb39fc68d24bfa4a61fe82ef3eace 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_test.cc +++ b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_test.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h" +#include "tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.c b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.c similarity index 97% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.c rename to tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.c index 4226b390bc1427ae2131ec11db7338723f0e6ba9..dbe44c494ae07fb8c356723287cb32bf63381d27 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.h b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.h similarity index 84% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.h rename to tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.h index 79c0b1da693651c438ed8b5f85c19ba23850e738..d4bfaa2ed71d2208613c1582fe730547c5db3247 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control_util.h +++ b/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_UTIL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_UTIL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_UTIL_H_ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/pcan_gain_control.h" +#include "tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.h" #define kWideDynamicFunctionBits 32 #define kWideDynamicFunctionLUTSize (4 * kWideDynamicFunctionBits - 3) @@ -54,4 +54,4 @@ void PcanGainControlFreeStateContents(struct PcanGainControlState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_UTIL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_PCAN_GAIN_CONTROL_UTIL_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/window.c b/tensorflow/lite/experimental/microfrontend/lib/window.c similarity index 97% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/window.c rename to tensorflow/lite/experimental/microfrontend/lib/window.c index 0fdc040a7a58c7d3bd3ef8eb385e0c0c3d415236..517b60487becb9fd7b3bb9ebdaa9551338db6b4f 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/window.c +++ b/tensorflow/lite/experimental/microfrontend/lib/window.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window.h" #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/window.h b/tensorflow/lite/experimental/microfrontend/lib/window.h similarity index 85% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/window.h rename to tensorflow/lite/experimental/microfrontend/lib/window.h index 90291e5c7238b5c789d46910f256686be3edef7c..bad8151412fe227064ed6bf3fc6b87dd24054783 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/window.h +++ b/tensorflow/lite/experimental/microfrontend/lib/window.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_H_ #include #include @@ -46,4 +46,4 @@ void WindowReset(struct WindowState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_io.c b/tensorflow/lite/experimental/microfrontend/lib/window_io.c similarity index 95% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/window_io.c rename to tensorflow/lite/experimental/microfrontend/lib/window_io.c index f1fee7c1eda9d0002913bf3f214c9a90517c1f15..ed4ac5eb110c0f1358656ca9e1b79d6b37052258 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_io.c +++ b/tensorflow/lite/experimental/microfrontend/lib/window_io.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window_io.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window_io.h" void WindowWriteMemmapPreamble(FILE* fp, const struct WindowState* state) { fprintf(fp, "static int16_t window_coefficients[] = {\n"); diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_io.h b/tensorflow/lite/experimental/microfrontend/lib/window_io.h similarity index 75% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/window_io.h rename to tensorflow/lite/experimental/microfrontend/lib/window_io.h index 2bab9064c1fa70154b3bc8d6674f1ce0f4f95486..a76b2dc3e812383d43e2b8fca74d75c7b1c67215 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_io.h +++ b/tensorflow/lite/experimental/microfrontend/lib/window_io.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_IO_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_IO_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_IO_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_IO_H_ #include -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window.h" #ifdef __cplusplus extern "C" { @@ -31,4 +31,4 @@ void WindowWriteMemmap(FILE* fp, const struct WindowState* state, } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_IO_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_IO_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_test.cc b/tensorflow/lite/experimental/microfrontend/lib/window_test.cc similarity index 97% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/window_test.cc rename to tensorflow/lite/experimental/microfrontend/lib/window_test.cc index a6c0879faa8ac544a426177213f1fafaf4ee54fe..8c6c19188d3e128e7bb3b1d007fff10ec271da95 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_test.cc +++ b/tensorflow/lite/experimental/microfrontend/lib/window_test.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.c b/tensorflow/lite/experimental/microfrontend/lib/window_util.c similarity index 96% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.c rename to tensorflow/lite/experimental/microfrontend/lib/window_util.c index 3adde0fb0a6855ef8372f80b55df4f4d83fc9dc7..2445c343be11e8764c43f8ded0099d21b85b0573 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.c +++ b/tensorflow/lite/experimental/microfrontend/lib/window_util.c @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window_util.h" #include #include diff --git a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.h b/tensorflow/lite/experimental/microfrontend/lib/window_util.h similarity index 80% rename from tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.h rename to tensorflow/lite/experimental/microfrontend/lib/window_util.h index 52dc8f38cc8bfc799f1f35a1d1a3b894bdfcf944..68e4de9eb586ec9056fbdfe91084d5918f9e9638 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/lib/window_util.h +++ b/tensorflow/lite/experimental/microfrontend/lib/window_util.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_UTIL_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_UTIL_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_UTIL_H_ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/window.h" +#include "tensorflow/lite/experimental/microfrontend/lib/window.h" #ifdef __cplusplus extern "C" { @@ -42,4 +42,4 @@ void WindowFreeStateContents(struct WindowState* state); } // extern "C" #endif -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_UTIL_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_MICROFRONTEND_LIB_WINDOW_UTIL_H_ diff --git a/tensorflow/contrib/lite/experimental/microfrontend/ops/audio_microfrontend_op.cc b/tensorflow/lite/experimental/microfrontend/ops/audio_microfrontend_op.cc similarity index 98% rename from tensorflow/contrib/lite/experimental/microfrontend/ops/audio_microfrontend_op.cc rename to tensorflow/lite/experimental/microfrontend/ops/audio_microfrontend_op.cc index 83b9528ab5e23e2e63b5810fd99403e92677755e..51094a976d297af8e807ae4f828702ace9a9306a 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/ops/audio_microfrontend_op.cc +++ b/tensorflow/lite/experimental/microfrontend/ops/audio_microfrontend_op.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend.h" -#include "tensorflow/contrib/lite/experimental/microfrontend/lib/frontend_util.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend.h" +#include "tensorflow/lite/experimental/microfrontend/lib/frontend_util.h" #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/shape_inference.h" diff --git a/tensorflow/contrib/lite/experimental/microfrontend/python/kernel_tests/audio_microfrontend_op_test.py b/tensorflow/lite/experimental/microfrontend/python/kernel_tests/audio_microfrontend_op_test.py similarity index 98% rename from tensorflow/contrib/lite/experimental/microfrontend/python/kernel_tests/audio_microfrontend_op_test.py rename to tensorflow/lite/experimental/microfrontend/python/kernel_tests/audio_microfrontend_op_test.py index e1661d6608777a7b6786b7863bbfafd3e42625f5..020d40bc13c1bbd3d950bd505508ef654ac756ec 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/python/kernel_tests/audio_microfrontend_op_test.py +++ b/tensorflow/lite/experimental/microfrontend/python/kernel_tests/audio_microfrontend_op_test.py @@ -20,7 +20,7 @@ from __future__ import print_function import tensorflow as tf -from tensorflow.contrib.lite.experimental.microfrontend.python.ops import audio_microfrontend_op as frontend_op +from tensorflow.lite.experimental.microfrontend.python.ops import audio_microfrontend_op as frontend_op SAMPLE_RATE = 1000 WINDOW_SIZE = 25 diff --git a/tensorflow/contrib/lite/experimental/microfrontend/python/ops/audio_microfrontend_op.py b/tensorflow/lite/experimental/microfrontend/python/ops/audio_microfrontend_op.py similarity index 98% rename from tensorflow/contrib/lite/experimental/microfrontend/python/ops/audio_microfrontend_op.py rename to tensorflow/lite/experimental/microfrontend/python/ops/audio_microfrontend_op.py index c6e5e34760f20ceb6f8c80dd820f950cf05522ca..3d49482f4ecd34ec47df1d3baa3e6dccf8ae4bef 100644 --- a/tensorflow/contrib/lite/experimental/microfrontend/python/ops/audio_microfrontend_op.py +++ b/tensorflow/lite/experimental/microfrontend/python/ops/audio_microfrontend_op.py @@ -20,7 +20,7 @@ from __future__ import print_function import tensorflow as tf -from tensorflow.contrib.lite.experimental.microfrontend.ops import gen_audio_microfrontend_op +from tensorflow.lite.experimental.microfrontend.ops import gen_audio_microfrontend_op from tensorflow.contrib.util import loader from tensorflow.python.platform import resource_loader diff --git a/tensorflow/contrib/lite/experimental/writer/BUILD b/tensorflow/lite/experimental/writer/BUILD similarity index 61% rename from tensorflow/contrib/lite/experimental/writer/BUILD rename to tensorflow/lite/experimental/writer/BUILD index 82d39c00abd27d9931131317e9750bbf7face981..506c668cf2c70f1e294bcf2039fbb88ec9c4fd96 100644 --- a/tensorflow/contrib/lite/experimental/writer/BUILD +++ b/tensorflow/lite/experimental/writer/BUILD @@ -8,7 +8,7 @@ cc_binary( name = "option_writer_generator", srcs = ["option_writer_generator.cc"], deps = [ - "//tensorflow/contrib/lite/schema:schema_fbs_with_reflection", + "//tensorflow/lite/schema:schema_fbs_with_reflection", "@flatbuffers", ], ) @@ -27,11 +27,11 @@ cc_library( ], textual_hdrs = ["option_writer_generated.h"], deps = [ - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/schema:schema_fbs_with_reflection", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/schema:schema_fbs_with_reflection", ], ) @@ -40,8 +40,8 @@ cc_binary( srcs = ["writer.cc"], deps = [ ":writer_lib", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", ], ) @@ -51,9 +51,9 @@ cc_test( srcs = ["writer_lib_test.cc"], deps = [ ":writer_lib", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/experimental/writer/enum_mapping.h b/tensorflow/lite/experimental/writer/enum_mapping.h similarity index 91% rename from tensorflow/contrib/lite/experimental/writer/enum_mapping.h rename to tensorflow/lite/experimental/writer/enum_mapping.h index 8bc464fd7188a2f530707d9bf7c0309ac8ca0b06..cb6ec3e0d7e0f1b53cc8b84e10cb1be4b1f023c0 100644 --- a/tensorflow/contrib/lite/experimental/writer/enum_mapping.h +++ b/tensorflow/lite/experimental/writer/enum_mapping.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_WRITER_ENUM_MAPPING_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_WRITER_ENUM_MAPPING_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_WRITER_ENUM_MAPPING_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_WRITER_ENUM_MAPPING_H_ -#include "tensorflow/contrib/lite/builtin_op_data.h" -#include "tensorflow/contrib/lite/schema/reflection/schema_generated.h" +#include "tensorflow/lite/builtin_op_data.h" +#include "tensorflow/lite/schema/reflection/schema_generated.h" // TODO(aselle): Ideally extract this from the schema. @@ -113,4 +113,4 @@ inline LSHProjectionType LSHProjectionTypeToSchema( } } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_WRITER_ENUM_MAPPING_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_WRITER_ENUM_MAPPING_H_ diff --git a/tensorflow/contrib/lite/experimental/writer/option_writer_generator.cc b/tensorflow/lite/experimental/writer/option_writer_generator.cc similarity index 99% rename from tensorflow/contrib/lite/experimental/writer/option_writer_generator.cc rename to tensorflow/lite/experimental/writer/option_writer_generator.cc index dc32817b86038f50acd929482d309c68228523be..036809e94abcfc20df315b973c855152f923181b 100644 --- a/tensorflow/contrib/lite/experimental/writer/option_writer_generator.cc +++ b/tensorflow/lite/experimental/writer/option_writer_generator.cc @@ -17,12 +17,12 @@ limitations under the License. #include #include #include "flatbuffers/minireflect.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/schema/reflection/schema_generated.h" +#include "tensorflow/lite/schema/reflection/schema_generated.h" namespace tflite { namespace { // This is generated by grepping -// cat third_party/tensorflow/contrib/lite/builtin_op_data.h +// cat third_party/tensorflow/lite/builtin_op_data.h //| grep "^} TfLite" | sed 's/^} TfLite\(.*\)Params;/\1Params/g' | grep -v "^}" static const char* param_structs[] = {"TfLiteConvParams", "TfLitePoolParams", diff --git a/tensorflow/contrib/lite/experimental/writer/writer.cc b/tensorflow/lite/experimental/writer/writer.cc similarity index 89% rename from tensorflow/contrib/lite/experimental/writer/writer.cc rename to tensorflow/lite/experimental/writer/writer.cc index 20ede214fba79578acdd53b13dde3556207ca292..c1de0333676041202ba4262eeb2adbd30e650ce9 100644 --- a/tensorflow/contrib/lite/experimental/writer/writer.cc +++ b/tensorflow/lite/experimental/writer/writer.cc @@ -20,9 +20,9 @@ limitations under the License. #include -#include "tensorflow/contrib/lite/experimental/writer/writer_lib.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/experimental/writer/writer_lib.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" int main(int argc, char* argv[]) { if (argc != 3) { diff --git a/tensorflow/contrib/lite/experimental/writer/writer_lib.cc b/tensorflow/lite/experimental/writer/writer_lib.cc similarity index 95% rename from tensorflow/contrib/lite/experimental/writer/writer_lib.cc rename to tensorflow/lite/experimental/writer/writer_lib.cc index 555a9cc4b09f30e2344ff30c409d2d2c37e6ea41..a0ce4b716d62c5a24342f5a3863e58eb203f7441 100644 --- a/tensorflow/contrib/lite/experimental/writer/writer_lib.cc +++ b/tensorflow/lite/experimental/writer/writer_lib.cc @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/writer/writer_lib.h" +#include "tensorflow/lite/experimental/writer/writer_lib.h" #include #include #include -#include "tensorflow/contrib/lite/builtin_op_data.h" -#include "tensorflow/contrib/lite/context_util.h" -#include "tensorflow/contrib/lite/experimental/writer/enum_mapping.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/schema/reflection/schema_generated.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/builtin_op_data.h" +#include "tensorflow/lite/context_util.h" +#include "tensorflow/lite/experimental/writer/enum_mapping.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/schema/reflection/schema_generated.h" +#include "tensorflow/lite/version.h" namespace tflite { template @@ -33,7 +33,7 @@ using FlatBufferBuilder = flatbuffers::FlatBufferBuilder; std::pair> CreateBuiltinUnion( FlatBufferBuilder* fbb, enum BuiltinOperator op, void* builtin_op_data) { switch (op) { -#include "tensorflow/contrib/lite/experimental/writer/option_writer_generated.h" +#include "tensorflow/lite/experimental/writer/option_writer_generated.h" } return std::make_pair(BuiltinOptions_NONE, Offset()); } diff --git a/tensorflow/contrib/lite/experimental/writer/writer_lib.h b/tensorflow/lite/experimental/writer/writer_lib.h similarity index 88% rename from tensorflow/contrib/lite/experimental/writer/writer_lib.h rename to tensorflow/lite/experimental/writer/writer_lib.h index a5f14697cfd223a637770e66bdc02278383144b2..08c0436932ffc9d8fba7b3530269b4b09b58fc09 100644 --- a/tensorflow/contrib/lite/experimental/writer/writer_lib.h +++ b/tensorflow/lite/experimental/writer/writer_lib.h @@ -16,7 +16,7 @@ limitations under the License. // // Usage: // From command line: -// bazel run third_party/tensorflow/contrib/lite/experimental/writer:writer +// bazel run third_party/tensorflow/lite/experimental/writer:writer // -- foo.tflite foo.out.tflite // // From C++ @@ -24,16 +24,16 @@ limitations under the License. // // Build Interpreter however // // ... // InterpreterWriter(interpreter.get()).Write("output.tflite"); -#ifndef TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_WRITER_WRITER_LIB_H_ -#define TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_WRITER_WRITER_LIB_H_ +#ifndef TENSORFLOW_LITE_EXPERIMENTAL_WRITER_WRITER_LIB_H_ +#define TENSORFLOW_LITE_EXPERIMENTAL_WRITER_WRITER_LIB_H_ #include #include -#include "tensorflow/contrib/lite/builtin_op_data.h" -#include "tensorflow/contrib/lite/context_util.h" -#include "tensorflow/contrib/lite/experimental/writer/enum_mapping.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/schema/reflection/schema_generated.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/builtin_op_data.h" +#include "tensorflow/lite/context_util.h" +#include "tensorflow/lite/experimental/writer/enum_mapping.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/schema/reflection/schema_generated.h" +#include "tensorflow/lite/version.h" namespace tflite { @@ -128,4 +128,4 @@ class InterpreterWriter { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_EXPERIMENTAL_WRITER_WRITER_LIB_H_ +#endif // TENSORFLOW_LITE_EXPERIMENTAL_WRITER_WRITER_LIB_H_ diff --git a/tensorflow/contrib/lite/experimental/writer/writer_lib_test.cc b/tensorflow/lite/experimental/writer/writer_lib_test.cc similarity index 89% rename from tensorflow/contrib/lite/experimental/writer/writer_lib_test.cc rename to tensorflow/lite/experimental/writer/writer_lib_test.cc index 49194a76c8c084bad2ae69634aa8702dc1fc0a7f..e04c678a50f72a22e76fc6bdd7b4af6e9f3b5f38 100644 --- a/tensorflow/contrib/lite/experimental/writer/writer_lib_test.cc +++ b/tensorflow/lite/experimental/writer/writer_lib_test.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/experimental/writer/writer_lib.h" +#include "tensorflow/lite/experimental/writer/writer_lib.h" #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { // Make an interpreter that has no tensors and no nodes diff --git a/tensorflow/contrib/lite/g3doc/_book.yaml b/tensorflow/lite/g3doc/_book.yaml similarity index 95% rename from tensorflow/contrib/lite/g3doc/_book.yaml rename to tensorflow/lite/g3doc/_book.yaml index 1d916d0583c096d42ba2d7e333385533fb700900..c322b63d65c448cbfd6cc9ff01d83947dede8162 100644 --- a/tensorflow/contrib/lite/g3doc/_book.yaml +++ b/tensorflow/lite/g3doc/_book.yaml @@ -57,7 +57,7 @@ upper_tabs: - title: Post-training quantization path: /lite/performance/post_training_quantization - title: Post-training quantization example - path: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/tutorials/post_training_quant.ipynb + path: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tutorials/post_training_quant.ipynb status: external - title: TF Mobile @@ -81,4 +81,4 @@ upper_tabs: skip_translation: true contents: - title: API - path: /api_docs/python/tf/contrib/lite + path: /api_docs/python/tf/lite diff --git a/tensorflow/contrib/lite/g3doc/_index.yaml b/tensorflow/lite/g3doc/_index.yaml similarity index 99% rename from tensorflow/contrib/lite/g3doc/_index.yaml rename to tensorflow/lite/g3doc/_index.yaml index 44ee6ba7505d421e46c8806ea5ca0ed4bc07f147..43b5e3cfc01b458718bbe1f3ae7d18b27a81fa6e 100644 --- a/tensorflow/contrib/lite/g3doc/_index.yaml +++ b/tensorflow/lite/g3doc/_index.yaml @@ -211,8 +211,8 @@ landing_page: path: https://www.youtube.com/watch?v=FAMfy7izB6A - heading: TensorFlow Lite on GitHub image_path: /ecosystem/images/github-card-16x9.png - path: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite + path: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite buttons: - label: View on GitHub - path: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite + path: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite - classname: devsite-landing-row-item-hidden diff --git a/tensorflow/contrib/lite/g3doc/_project.yaml b/tensorflow/lite/g3doc/_project.yaml similarity index 100% rename from tensorflow/contrib/lite/g3doc/_project.yaml rename to tensorflow/lite/g3doc/_project.yaml diff --git a/tensorflow/contrib/lite/g3doc/apis.md b/tensorflow/lite/g3doc/apis.md similarity index 99% rename from tensorflow/contrib/lite/g3doc/apis.md rename to tensorflow/lite/g3doc/apis.md index 69616c7b8a3c1cb93663a6f37eee506cfcdbae72..e9fa24bff1d1a3d2b8e6a62f061245289afabcd1 100644 --- a/tensorflow/contrib/lite/g3doc/apis.md +++ b/tensorflow/lite/g3doc/apis.md @@ -347,7 +347,7 @@ interpreter.runForMultipleInputsOutputs(inputs, map_of_indices_to_outputs); where each entry in `inputs` corresponds to an input tensor and `map_of_indices_to_outputs` maps indices of output tensors to the corresponding output data. In both cases the tensor indices should correspond to -the values given to the [TensorFlow Lite Optimized Converter](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/toco/g3doc/cmdline_examples.md) +the values given to the [TensorFlow Lite Optimized Converter](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/toco/g3doc/cmdline_examples.md) when the model was created. Be aware that the order of tensors in `input` must match the order given to the `TensorFlow Lite Optimized Converter`. diff --git a/tensorflow/contrib/lite/g3doc/convert/cmdline_examples.md b/tensorflow/lite/g3doc/convert/cmdline_examples.md similarity index 99% rename from tensorflow/contrib/lite/g3doc/convert/cmdline_examples.md rename to tensorflow/lite/g3doc/convert/cmdline_examples.md index 44fb4f19aeb12fa83f76b6373bcbc148561d0747..341f7120fc8ba2bd8520cbf6c5dc55980f5eeaea 100644 --- a/tensorflow/contrib/lite/g3doc/convert/cmdline_examples.md +++ b/tensorflow/lite/g3doc/convert/cmdline_examples.md @@ -18,7 +18,7 @@ There are two approaches to running the converter in the command line. [clone the TensorFlow repository](https://www.tensorflow.org/install/source) and use `bazel`. * Example: `bazel run - //tensorflow/contrib/lite/python:tflite_convert -- + //tensorflow/lite/python:tflite_convert -- --output_file=...` ### Converting models prior to TensorFlow 1.9 diff --git a/tensorflow/contrib/lite/g3doc/convert/cmdline_reference.md b/tensorflow/lite/g3doc/convert/cmdline_reference.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/convert/cmdline_reference.md rename to tensorflow/lite/g3doc/convert/cmdline_reference.md diff --git a/tensorflow/contrib/lite/g3doc/convert/index.md b/tensorflow/lite/g3doc/convert/index.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/convert/index.md rename to tensorflow/lite/g3doc/convert/index.md diff --git a/tensorflow/contrib/lite/g3doc/convert/python_api.md b/tensorflow/lite/g3doc/convert/python_api.md similarity index 87% rename from tensorflow/contrib/lite/g3doc/convert/python_api.md rename to tensorflow/lite/g3doc/convert/python_api.md index 9dcb79187ec9bda487887327dbb575e8c580ba01..e859c12ad9fd4c5d995f00a3c7dba2889bed3488 100644 --- a/tensorflow/contrib/lite/g3doc/convert/python_api.md +++ b/tensorflow/lite/g3doc/convert/python_api.md @@ -16,8 +16,8 @@ be targeted to devices with mobile. ## API The API for converting TensorFlow models to TensorFlow Lite as of TensorFlow 1.9 -is `tf.contrib.lite.TFLiteConverter`. The API for calling the Python intepreter -is `tf.contrib.lite.Interpreter`. +is `tf.lite.TFLiteConverter`. The API for calling the Python intepreter +is `tf.lite.Interpreter`. Note: Reference "Additional Instructions" sections for converting TensorFlow models to TensorFlow Lite @@ -52,7 +52,7 @@ out = tf.identity(val, name="out") with tf.Session() as sess: sess.run(tf.global_variables_initializer()) - converter = tf.contrib.lite.TFLiteConverter.from_session(sess, [img], [out]) + converter = tf.lite.TFLiteConverter.from_session(sess, [img], [out]) tflite_model = converter.convert() open("converted_model.tflite", "wb").write(tflite_model) ``` @@ -75,7 +75,7 @@ graph_def_file = "/path/to/Downloads/mobilenet_v1_1.0_224/frozen_graph.pb" input_arrays = ["input"] output_arrays = ["MobilenetV1/Predictions/Softmax"] -converter = tf.contrib.lite.TFLiteConverter.from_frozen_graph( +converter = tf.lite.TFLiteConverter.from_frozen_graph( graph_def_file, input_arrays, output_arrays) tflite_model = converter.convert() open("converted_model.tflite", "wb").write(tflite_model) @@ -89,7 +89,7 @@ FlatBuffer. ```python import tensorflow as tf -converter = tf.contrib.lite.TFLiteConverter.from_saved_model(saved_model_dir) +converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) tflite_model = converter.convert() open("converted_model.tflite", "wb").write(tflite_model) ``` @@ -97,7 +97,7 @@ open("converted_model.tflite", "wb").write(tflite_model) For more complex SavedModels, the optional parameters that can be passed into `TFLiteConverter.from_saved_model()` are `input_arrays`, `input_shapes`, `output_arrays`, `tag_set` and `signature_key`. Details of each parameter are -available by running `help(tf.contrib.lite.TFLiteConverter)`. +available by running `help(tf.lite.TFLiteConverter)`. ### Exporting a tf.keras File @@ -108,7 +108,7 @@ Lite FlatBuffer. This example requires ```python import tensorflow as tf -converter = tf.contrib.lite.TFLiteConverter.from_keras_model_file("keras_model.h5") +converter = tf.lite.TFLiteConverter.from_keras_model_file("keras_model.h5") tflite_model = converter.convert() open("converted_model.tflite", "wb").write(tflite_model) ``` @@ -140,7 +140,7 @@ keras_file = "keras_model.h5" tf.keras.models.save_model(model, keras_file) # Convert to TensorFlow Lite model. -converter = tf.contrib.lite.TFLiteConverter.from_keras_model_file(keras_file) +converter = tf.lite.TFLiteConverter.from_keras_model_file(keras_file) tflite_model = converter.convert() open("converted_model.tflite", "wb").write(tflite_model) ``` @@ -149,8 +149,8 @@ open("converted_model.tflite", "wb").write(tflite_model) For models where the default value of the attributes is not sufficient, the attribute's values should be set before calling `convert()`. In order to call -any constants use `tf.contrib.lite.constants.` as seen below with -`QUANTIZED_UINT8`. Run `help(tf.contrib.lite.TFLiteConverter)` in the Python +any constants use `tf.lite.constants.` as seen below with +`QUANTIZED_UINT8`. Run `help(tf.lite.TFLiteConverter)` in the Python terminal for detailed documentation on the attributes. Although the examples are demonstrated on GraphDefs containing only constants. @@ -170,8 +170,8 @@ val = img + const out = tf.fake_quant_with_min_max_args(val, min=0., max=1., name="output") with tf.Session() as sess: - converter = tf.contrib.lite.TFLiteConverter.from_session(sess, [img], [out]) - converter.inference_type = tf.contrib.lite.constants.QUANTIZED_UINT8 + converter = tf.lite.TFLiteConverter.from_session(sess, [img], [out]) + converter.inference_type = tf.lite.constants.QUANTIZED_UINT8 input_arrays = converter.get_input_arrays() converter.quantized_input_stats = {input_arrays[0] : (0., 1.)} # mean, std_dev tflite_model = converter.convert() @@ -185,7 +185,7 @@ with tf.Session() as sess: The following example shows how to use the TensorFlow Lite Python interpreter when provided a TensorFlow Lite FlatBuffer file. The example also demonstrates how to run inference on random input data. Run -`help(tf.contrib.lite.Interpreter)` in the Python terminal to get detailed +`help(tf.lite.Interpreter)` in the Python terminal to get detailed documentation on the interpreter. ```python @@ -193,7 +193,7 @@ import numpy as np import tensorflow as tf # Load TFLite model and allocate tensors. -interpreter = tf.contrib.lite.Interpreter(model_path="converted_model.tflite") +interpreter = tf.lite.Interpreter(model_path="converted_model.tflite") interpreter.allocate_tensors() # Get input and output tensors. @@ -227,11 +227,11 @@ val = img + const out = tf.identity(val, name="out") with tf.Session() as sess: - converter = tf.contrib.lite.TFLiteConverter.from_session(sess, [img], [out]) + converter = tf.lite.TFLiteConverter.from_session(sess, [img], [out]) tflite_model = converter.convert() # Load TFLite model and allocate tensors. -interpreter = tf.contrib.lite.Interpreter(model_content=tflite_model) +interpreter = tf.lite.Interpreter(model_content=tflite_model) interpreter.allocate_tensors() ``` @@ -254,5 +254,5 @@ identically to `TFLiteConverter`. ### Converting models prior to TensorFlow 1.9 To convert TensorFlow models to TensorFlow Lite in TensorFlow 1.7 and TensorFlow -1.8, use the `toco_convert` function. Run `help(tf.contrib.lite.toco_convert)` +1.8, use the `toco_convert` function. Run `help(tf.lite.toco_convert)` to get details about accepted parameters. diff --git a/tensorflow/contrib/lite/g3doc/custom_operators.md b/tensorflow/lite/g3doc/custom_operators.md similarity index 98% rename from tensorflow/contrib/lite/g3doc/custom_operators.md rename to tensorflow/lite/g3doc/custom_operators.md index ee6150b60e8e8511dc5552bbbf0c71c71d80d1fe..4a22d6a67577cf5c06f2c0d32e30650fd4d4bb32 100644 --- a/tensorflow/contrib/lite/g3doc/custom_operators.md +++ b/tensorflow/lite/g3doc/custom_operators.md @@ -103,7 +103,7 @@ operations instead of a single operator. pre-allocating the memory using temporary tensors. You may need to use OpData struct to reference the tensor indices in other functions. See example in the - [kernel for convolution](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/kernels/conv.cc). + [kernel for convolution](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/kernels/conv.cc). A sample code snippet is below ``` @@ -164,7 +164,7 @@ for node in frozen_graph_def.node: tf.TensorShape([10]), ]) node.attr['_output_quantized'].b = False -tflite_model = tf.contrib.lite.toco_convert( +tflite_model = tf.lite.toco_convert( frozen_graph_def,...) ``` diff --git a/tensorflow/contrib/lite/g3doc/demo_android.md b/tensorflow/lite/g3doc/demo_android.md similarity index 90% rename from tensorflow/contrib/lite/g3doc/demo_android.md rename to tensorflow/lite/g3doc/demo_android.md index c38b928684848b858e3f6cc9df6f05e31f778b05..772598d5cfd36a388d253becd7fc3026f31375c9 100644 --- a/tensorflow/contrib/lite/g3doc/demo_android.md +++ b/tensorflow/lite/g3doc/demo_android.md @@ -2,7 +2,7 @@ # Android Demo App An example Android application using TensorFLow Lite is available -[on GitHub](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/java/demo). +[on GitHub](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/java/demo). The demo is a sample camera app that classifies images continuously using either a quantized Mobilenet model or a floating point Inception-v3 model. To run the demo, a device running Android 5.0 ( API 21) or higher is required. @@ -41,23 +41,23 @@ app: [Android Studio](https://developer.android.com/studio/index.html). * Make sure the Android SDK version is greater than 26 and NDK version is greater than 14 (in the Android Studio settings). -* Import the `tensorflow/contrib/lite/java/demo` directory as a new +* Import the `tensorflow/lite/java/demo` directory as a new Android Studio project. * Install all the Gradle extensions it requests. Now you can build and run the demo app. -The build process downloads the quantized [Mobilenet TensorFlow Lite model](https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_v1_224_android_quant_2017_11_08.zip), and unzips it into the assets directory: `tensorflow/contrib/lite/java/demo/app/src/main/assets/`. +The build process downloads the quantized [Mobilenet TensorFlow Lite model](https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_v1_224_android_quant_2017_11_08.zip), and unzips it into the assets directory: `tensorflow/lite/java/demo/app/src/main/assets/`. Some additional details are available on the -[TF Lite Android App page](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/java/demo/README.md). +[TF Lite Android App page](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/java/demo/README.md). ### Using other models To use a different model: * Download the floating point [Inception-v3 model](https://storage.googleapis.com/download.tensorflow.org/models/tflite/inception_v3_slim_2016_android_2017_11_10.zip). * Unzip and copy `inceptionv3_non_slim_2015.tflite` to the assets directory. -* Change the chosen classifier in [Camera2BasicFragment.java](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/Camera2BasicFragment.java)
+* Change the chosen classifier in [Camera2BasicFragment.java](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/Camera2BasicFragment.java)
from: `classifier = new ImageClassifierQuantizedMobileNet(getActivity());`
to: `classifier = new ImageClassifierFloatInception(getActivity());`. @@ -114,14 +114,14 @@ android_ndk_repository( ``` Some additional details are available on the -[TF Lite Android App page](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/java/demo/README.md). +[TF Lite Android App page](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/java/demo/README.md). ### Build the source code To build the demo app, run `bazel`: ``` -bazel build --cxxopt=--std=c++11 //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo +bazel build --cxxopt=--std=c++11 //tensorflow/lite/java/demo/app/src/main:TfLiteCameraDemo ``` Caution: Because of an bazel bug, we only support building the Android demo app diff --git a/tensorflow/contrib/lite/g3doc/demo_ios.md b/tensorflow/lite/g3doc/demo_ios.md similarity index 95% rename from tensorflow/contrib/lite/g3doc/demo_ios.md rename to tensorflow/lite/g3doc/demo_ios.md index 7579ad84a049ec592aafb16ce95a4b703ac78c5a..fbf1dd6392591183d0dc484018bba501de1851d8 100644 --- a/tensorflow/contrib/lite/g3doc/demo_ios.md +++ b/tensorflow/lite/g3doc/demo_ios.md @@ -38,11 +38,11 @@ instructions walk you through building and running the demo on an iOS device. 2. Download the model files used by the demo app (this is done from inside the cloned directory): - sh tensorflow/contrib/lite/examples/ios/download_models.sh + sh tensorflow/lite/examples/ios/download_models.sh 3. Install the pod to generate the workspace file: - cd tensorflow/contrib/lite/examples/ios/camera + cd tensorflow/lite/examples/ios/camera pod install If you have installed this pod before and that command doesn't work, try diff --git a/tensorflow/contrib/lite/g3doc/devguide.md b/tensorflow/lite/g3doc/devguide.md similarity index 93% rename from tensorflow/contrib/lite/g3doc/devguide.md rename to tensorflow/lite/g3doc/devguide.md index 0eed5160009c07727f0c2985ebe963efc7bb9d8e..270cb8ce378a2bb7e4c0f8f93bce30ac6e740045 100644 --- a/tensorflow/contrib/lite/g3doc/devguide.md +++ b/tensorflow/lite/g3doc/devguide.md @@ -35,7 +35,7 @@ by suggesting contextually relevant messages. The model is built specifically fo memory constrained devices, such as watches and phones, and has been successfully used in Smart Replies on Android Wear. Currently, this model is Android-specific. -These pre-trained models are [available for download](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/g3doc/models.md) +These pre-trained models are [available for download](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/models.md) ### Re-train Inception-V3 or MobileNet for a custom data set @@ -63,7 +63,7 @@ framework. See to create .pb file for the custom model. TensorFlow Lite currently supports a subset of TensorFlow operators. Refer to the -[TensorFlow Lite & TensorFlow Compatibility Guide](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/g3doc/tf_ops_compatibility.md) +[TensorFlow Lite & TensorFlow Compatibility Guide](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/g3doc/tf_ops_compatibility.md) for supported operators and their usage. This set of operators will continue to grow in future Tensorflow Lite releases. @@ -151,7 +151,7 @@ inference in the `freeze_graph` step. It is also possible to use the Tensorflow Optimizing Converter with protobufs from either Python or from the command line (see the -[toco_from_protos.py](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/toco/python/toco_from_protos.py) +[toco_from_protos.py](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/toco/python/toco_from_protos.py) example). This allows you to integrate the conversion step into the model design workflow, ensuring the model is easily convertible to a mobile inference graph. For example: @@ -164,25 +164,25 @@ val = img + tf.constant([1., 2., 3.]) + tf.constant([1., 4., 4.]) out = tf.identity(val, name="out") with tf.Session() as sess: - tflite_model = tf.contrib.lite.toco_convert(sess.graph_def, [img], [out]) + tflite_model = tf.lite.toco_convert(sess.graph_def, [img], [out]) open("converteds_model.tflite", "wb").write(tflite_model) ``` For usage, see the Tensorflow Optimizing Converter -[command-line examples](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/toco/g3doc/cmdline_examples.md). +[command-line examples](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/toco/g3doc/cmdline_examples.md). Refer to the -[Ops compatibility guide](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/g3doc/tf_ops_compatibility.md) +[Ops compatibility guide](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/g3doc/tf_ops_compatibility.md) for troubleshooting help, and if that doesn't help, please [file an issue](https://github.com/tensorflow/tensorflow/issues). The [development repo](https://github.com/tensorflow/tensorflow) contains a tool to visualize TensorFlow Lite models after conversion. To build the -[visualize.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/tools/visualize.py) +[visualize.py](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tools/visualize.py) tool: ```sh -bazel run tensorflow/contrib/lite/tools:visualize -- model.tflite model_viz.html +bazel run tensorflow/lite/tools:visualize -- model.tflite model_viz.html ``` This generates an interactive HTML page listing subgraphs, operations, and a @@ -201,7 +201,7 @@ provides the ability to load a graph, set up inputs, and run the model to calculate outputs. The open source Android demo app uses the JNI interface and is available -[on GitHub](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/java/demo/app). +[on GitHub](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/java/demo/app). You can also download a [prebuilt APK](http://download.tensorflow.org/deps/tflite/TfLiteCameraDemo.apk). See the Android demo guide for details. @@ -212,7 +212,7 @@ installing TensorFlow on Android and setting up `bazel` and Android Studio. ### iOS To integrate a TensorFlow model in an iOS app, see the -[TensorFlow Lite for iOS](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/g3doc/ios.md) +[TensorFlow Lite for iOS](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/g3doc/ios.md) guide and iOS demo guide. #### Core ML support @@ -227,6 +227,6 @@ devices. To use the converter, refer to the ### Raspberry Pi Compile Tensorflow Lite for a Raspberry Pi by following the -[RPi build instructions](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/g3doc/rpi.md) +[RPi build instructions](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/rpi.md) This compiles a static library file (`.a`) used to build your app. There are plans for Python bindings and a demo app. diff --git a/tensorflow/contrib/lite/g3doc/images/convert/sample_after.png b/tensorflow/lite/g3doc/images/convert/sample_after.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/convert/sample_after.png rename to tensorflow/lite/g3doc/images/convert/sample_after.png diff --git a/tensorflow/contrib/lite/g3doc/images/convert/sample_before.png b/tensorflow/lite/g3doc/images/convert/sample_before.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/convert/sample_before.png rename to tensorflow/lite/g3doc/images/convert/sample_before.png diff --git a/tensorflow/contrib/lite/g3doc/images/convert/workflow.svg b/tensorflow/lite/g3doc/images/convert/workflow.svg similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/convert/workflow.svg rename to tensorflow/lite/g3doc/images/convert/workflow.svg diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/assistant_logo.png b/tensorflow/lite/g3doc/images/landing-page/assistant_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/assistant_logo.png rename to tensorflow/lite/g3doc/images/landing-page/assistant_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/detect_crop_disease_in_africa.png b/tensorflow/lite/g3doc/images/landing-page/detect_crop_disease_in_africa.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/detect_crop_disease_in_africa.png rename to tensorflow/lite/g3doc/images/landing-page/detect_crop_disease_in_africa.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/fishbrain_logo.png b/tensorflow/lite/g3doc/images/landing-page/fishbrain_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/fishbrain_logo.png rename to tensorflow/lite/g3doc/images/landing-page/fishbrain_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/fishbrain_logo_big.png b/tensorflow/lite/g3doc/images/landing-page/fishbrain_logo_big.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/fishbrain_logo_big.png rename to tensorflow/lite/g3doc/images/landing-page/fishbrain_logo_big.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/gboard_logo.png b/tensorflow/lite/g3doc/images/landing-page/gboard_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/gboard_logo.png rename to tensorflow/lite/g3doc/images/landing-page/gboard_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/gmail_logo.png b/tensorflow/lite/g3doc/images/landing-page/gmail_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/gmail_logo.png rename to tensorflow/lite/g3doc/images/landing-page/gmail_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/loseit_logo.png b/tensorflow/lite/g3doc/images/landing-page/loseit_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/loseit_logo.png rename to tensorflow/lite/g3doc/images/landing-page/loseit_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/loseit_logo_big.png b/tensorflow/lite/g3doc/images/landing-page/loseit_logo_big.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/loseit_logo_big.png rename to tensorflow/lite/g3doc/images/landing-page/loseit_logo_big.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/nest_logo.png b/tensorflow/lite/g3doc/images/landing-page/nest_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/nest_logo.png rename to tensorflow/lite/g3doc/images/landing-page/nest_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/photos_logo.png b/tensorflow/lite/g3doc/images/landing-page/photos_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/photos_logo.png rename to tensorflow/lite/g3doc/images/landing-page/photos_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/shazam_logo.png b/tensorflow/lite/g3doc/images/landing-page/shazam_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/shazam_logo.png rename to tensorflow/lite/g3doc/images/landing-page/shazam_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/landing-page/vsco_logo.png b/tensorflow/lite/g3doc/images/landing-page/vsco_logo.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/landing-page/vsco_logo.png rename to tensorflow/lite/g3doc/images/landing-page/vsco_logo.png diff --git a/tensorflow/contrib/lite/g3doc/images/performance/model_size_vs_accuracy.png b/tensorflow/lite/g3doc/images/performance/model_size_vs_accuracy.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/performance/model_size_vs_accuracy.png rename to tensorflow/lite/g3doc/images/performance/model_size_vs_accuracy.png diff --git a/tensorflow/contrib/lite/g3doc/images/performance/model_size_vs_latency.png b/tensorflow/lite/g3doc/images/performance/model_size_vs_latency.png similarity index 100% rename from tensorflow/contrib/lite/g3doc/images/performance/model_size_vs_latency.png rename to tensorflow/lite/g3doc/images/performance/model_size_vs_latency.png diff --git a/tensorflow/contrib/lite/g3doc/ios.md b/tensorflow/lite/g3doc/ios.md similarity index 78% rename from tensorflow/contrib/lite/g3doc/ios.md rename to tensorflow/lite/g3doc/ios.md index 3b9fcca8117dc1859d075ae5f048cfc9f0d988a3..c195b6abf4f76f88d1f60b192cd19165aefe9a11 100644 --- a/tensorflow/contrib/lite/g3doc/ios.md +++ b/tensorflow/lite/g3doc/ios.md @@ -41,24 +41,24 @@ brew link libtool Then you need to run a shell script to download the dependencies you need: ```bash -tensorflow/contrib/lite/tools/make/download_dependencies.sh +tensorflow/lite/tools/make/download_dependencies.sh ``` This will fetch copies of libraries and data from the web and install them in -`tensorflow/contrib/lite/downloads`. +`tensorflow/lite/downloads`. With all of the dependencies set up, you can now build the library for all five supported architectures on iOS: ```bash -tensorflow/contrib/lite/tools/make/build_ios_universal_lib.sh +tensorflow/lite/tools/make/build_ios_universal_lib.sh ``` -Under the hood this uses a makefile in `tensorflow/contrib/lite` to build the +Under the hood this uses a makefile in `tensorflow/lite` to build the different versions of the library, followed by a call to `lipo` to bundle them into a universal file containing armv7, armv7s, arm64, i386, and x86_64 architectures. The resulting library is in -`tensorflow/contrib/lite/tools/make/gen/lib/libtensorflow-lite.a`. +`tensorflow/lite/tools/make/gen/lib/libtensorflow-lite.a`. If you get an error such as `no such file or directory: 'x86_64'` when running `build_ios_universal_lib.sh`: open Xcode > Preferences > Locations, and ensure @@ -68,19 +68,19 @@ a value is selected in the "Command Line Tools" dropdown. You'll need to update various settings in your app to link against TensorFlow Lite. You can view them in the example project at -`tensorflow/contrib/lite/examples/ios/simple/simple.xcodeproj` but here's a full +`tensorflow/lite/examples/ios/simple/simple.xcodeproj` but here's a full rundown: - You'll need to add the library at - `tensorflow/contrib/lite/gen/lib/libtensorflow-lite.a` to your linking build - stage, and in Search Paths add `tensorflow/contrib/lite/gen/lib` to the + `tensorflow/lite/gen/lib/libtensorflow-lite.a` to your linking build + stage, and in Search Paths add `tensorflow/lite/gen/lib` to the Library Search Paths setting. - The _Header Search_ paths needs to contain: - the root folder of tensorflow, - - `tensorflow/contrib/lite/downloads` - - `tensorflow/contrib/lite/downloads/flatbuffers/include` + - `tensorflow/lite/downloads` + - `tensorflow/lite/downloads/flatbuffers/include` - C++11 support (or later) should be enabled by setting `C++ Language Dialect` to `GNU++11` (or `GNU++14`), and `C++ Standard Library` to `libc++`. diff --git a/tensorflow/contrib/lite/g3doc/models.md b/tensorflow/lite/g3doc/models.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/models.md rename to tensorflow/lite/g3doc/models.md diff --git a/tensorflow/contrib/lite/g3doc/ops_versioning.md b/tensorflow/lite/g3doc/ops_versioning.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/ops_versioning.md rename to tensorflow/lite/g3doc/ops_versioning.md diff --git a/tensorflow/contrib/lite/g3doc/overview.md b/tensorflow/lite/g3doc/overview.md similarity index 97% rename from tensorflow/contrib/lite/g3doc/overview.md rename to tensorflow/lite/g3doc/overview.md index 9d035a69211d7ced913e6d16061c6ad8ca912e64..2d747a9b59f734a007ef54d13223aed22f38cb1d 100644 --- a/tensorflow/contrib/lite/g3doc/overview.md +++ b/tensorflow/lite/g3doc/overview.md @@ -12,7 +12,7 @@ optimizing the kernels for mobile apps, pre-fused activations, and quantized kernels that allow smaller and faster (fixed-point math) models. Most of our TensorFlow Lite documentation is [on -GitHub](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite) +GitHub](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite) for the time being. ## What does TensorFlow Lite contain? @@ -118,7 +118,7 @@ TensorFlow Lite provides: to all first-party and third-party apps. Also see the complete list of - [TensorFlow Lite's supported models](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/g3doc/models.md), + [TensorFlow Lite's supported models](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/models.md), including the model sizes, performance numbers, and downloadable model files. - Quantized versions of the MobileNet model, which runs faster than the @@ -136,7 +136,7 @@ We recommend you try out TensorFlow Lite with the pre-tested models indicated above. If you have an existing model, you will need to test whether your model is compatible with both the converter and the supported operator set. To test your model, see the -[documentation on GitHub](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite). +[documentation on GitHub](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite). ### Retrain Inception-V3 or MobileNet for a custom data set @@ -198,5 +198,5 @@ possible performance for a particular model on a particular device. ## Next Steps -The TensorFlow Lite [GitHub repository](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite). +The TensorFlow Lite [GitHub repository](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite). contains additional docs, code samples, and demo applications. diff --git a/tensorflow/contrib/lite/g3doc/performance/benchmarks.md b/tensorflow/lite/g3doc/performance/benchmarks.md similarity index 93% rename from tensorflow/contrib/lite/g3doc/performance/benchmarks.md rename to tensorflow/lite/g3doc/performance/benchmarks.md index 28cb6aba6ec61d12d86e078e47665833df8afec7..5a1e5586beecad4876c9d0390a0fa31e78705195 100644 --- a/tensorflow/contrib/lite/g3doc/performance/benchmarks.md +++ b/tensorflow/lite/g3doc/performance/benchmarks.md @@ -5,17 +5,17 @@ This document lists TensorFlow Lite performance benchmarks when running well known models on some Android and iOS devices. These performance benchmark numbers were generated with the -[Android TFLite benchmark binary](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/tools/benchmark) -and the [iOS benchmark app](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/tools/benchmark/ios). +[Android TFLite benchmark binary](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark) +and the [iOS benchmark app](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark/ios). # Android performance benchmarks For Android benchmarks, the CPU affinity is set to use big cores on the device to -reduce variance (see [details](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/tools/benchmark#reducing-variance-between-runs-on-android)). +reduce variance (see [details](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark#reducing-variance-between-runs-on-android)). It assumes that models were download and unzipped to the `/data/local/tmp/tflite_models` directory. The benchmark binary is built -using [these instructions](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/tools/benchmark#on-android) +using [these instructions](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark#on-android) and assumed in the `/data/local/tmp` directory. To run the benchmark: @@ -117,7 +117,7 @@ Pixel xl | 0c | # iOS benchmarks To run iOS benchmarks, the [benchmark -app](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/tools/benchmark/ios) +app](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark/ios) was modified to include the appropriate model and `benchmark_params.json` was modified to set `num_threads` to 1. diff --git a/tensorflow/contrib/lite/g3doc/performance/best_practices.md b/tensorflow/lite/g3doc/performance/best_practices.md similarity index 84% rename from tensorflow/contrib/lite/g3doc/performance/best_practices.md rename to tensorflow/lite/g3doc/performance/best_practices.md index 180e51e5f6664bf1349f7596257d1c5e0f216aa1..b76414cebe0d7092086073a478eb6330cbea713e 100644 --- a/tensorflow/contrib/lite/g3doc/performance/best_practices.md +++ b/tensorflow/lite/g3doc/performance/best_practices.md @@ -18,7 +18,7 @@ You can retrain the listed models on your own dataset by using transfer learning ## Profile your model -Once you have selected a candidate model that is right for your task, it is a good practice to profile and benchmark your model. Tensorflow Lite [benchmarking tool](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/tools/benchmark) has a built-in profiler that shows per operator profiling statistics. This can help in understanding performance bottlenecks and which operators dominate the computation time. +Once you have selected a candidate model that is right for your task, it is a good practice to profile and benchmark your model. Tensorflow Lite [benchmarking tool](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark) has a built-in profiler that shows per operator profiling statistics. This can help in understanding performance bottlenecks and which operators dominate the computation time. ## Profile and optimize operators in the graph If a particular operator appears frequently in the model and based on profiling you find the operator consuming the most amount of time, you can look into optimizing the operator. @@ -28,17 +28,17 @@ If a particular operator appears frequently in the model and based on profiling If your model uses floating point weights or activations then it may be possible to reduce the size of model up to ~4x by using quantization and other model optimizations. Check out our [model optimization toolkit](model_optimization.md) for details about optimizing your model. ## Tweak the number of threads -Tensorflow Lite supports multi-threaded kernels for many operators. You can increase the number of threads and speed up execution of operators. Increasing the number of threads will however make your model use more resources and power. For some applications latency may be more important than energy efficiency. You can increase the number of threads by setting the number of [interpreter](https://github.com/tensorflow/tensorflow/blob/1084594657a5d139102ac794f84d1427a710e39a/tensorflow/contrib/lite/interpreter.h#L337) threads. Multi-threaded execution however comes at the cost of increased performance variability depending on what else is been executed concurrently. This is particularly the case for mobile apps. For example, isolated tests may show 2x speed up vs single-threaded but if another app is executing at the same time may result in worst performance than single-threaded. +Tensorflow Lite supports multi-threaded kernels for many operators. You can increase the number of threads and speed up execution of operators. Increasing the number of threads will however make your model use more resources and power. For some applications latency may be more important than energy efficiency. You can increase the number of threads by setting the number of [interpreter](https://github.com/tensorflow/tensorflow/blob/1084594657a5d139102ac794f84d1427a710e39a/tensorflow/lite/interpreter.h#L337) threads. Multi-threaded execution however comes at the cost of increased performance variability depending on what else is been executed concurrently. This is particularly the case for mobile apps. For example, isolated tests may show 2x speed up vs single-threaded but if another app is executing at the same time may result in worst performance than single-threaded. ## Eliminate redundant copies -If your application is not careful, there can be redundant copies when feeding the input to the model and reading output from the model. Make sure to eliminate redundant copies. If you are using higher level APIs like Java API, make sure to carefully check the documentation for performance caveats. For example, the Java API is a lot faster if ByteBuffers are used as [inputs](https://github.com/tensorflow/tensorflow/blob/6305a6d83552ba6a472cd72398b60d9241467f1f/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java#L151). +If your application is not careful, there can be redundant copies when feeding the input to the model and reading output from the model. Make sure to eliminate redundant copies. If you are using higher level APIs like Java API, make sure to carefully check the documentation for performance caveats. For example, the Java API is a lot faster if ByteBuffers are used as [inputs](https://github.com/tensorflow/tensorflow/blob/6305a6d83552ba6a472cd72398b60d9241467f1f/tensorflow/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java#L151). ## Profile your application with platform specific tools Platform specific tools like [Android profiler](https://developer.android.com/studio/profile/android-profiler) and [Instruments](https://help.apple.com/instruments/mac/current/) provide a wealth of profiling information that can be used to debug your app. Sometimes the performance bug may be not in the model but in parts of application code that interact with the model. Make sure to familiarize yourself with platform specific profiling tools and best practices for your platform. ## Evaluate whether your model benefits from using hardware accelerators available on the device Tensorflow Lite is working on adding support for accelerators like GPU and provides acceleration through [Neural Networks API](https://developer.android.com/ndk/guides/neuralnetworks/) on Android. -You can utilize these hardware accelerator backends to improve the speed and efficiency of your model. To enable Neural Networks API call [UseNNAPI](https://github.com/tensorflow/tensorflow/blob/6305a6d83552ba6a472cd72398b60d9241467f1f/tensorflow/contrib/lite/interpreter.h#L334) on the interpreter instance. +You can utilize these hardware accelerator backends to improve the speed and efficiency of your model. To enable Neural Networks API call [UseNNAPI](https://github.com/tensorflow/tensorflow/blob/6305a6d83552ba6a472cd72398b60d9241467f1f/tensorflow/lite/interpreter.h#L334) on the interpreter instance. ## Need more help The Tensorflow team is happy to help diagnose and address specific performance issues you may be facing. Please file an issue on [GitHub](https://github.com/tensorflow/tensorflow/issues) with details of the issue. diff --git a/tensorflow/contrib/lite/g3doc/performance/model_optimization.md b/tensorflow/lite/g3doc/performance/model_optimization.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/performance/model_optimization.md rename to tensorflow/lite/g3doc/performance/model_optimization.md diff --git a/tensorflow/contrib/lite/g3doc/performance/post_training_quantization.md b/tensorflow/lite/g3doc/performance/post_training_quantization.md similarity index 91% rename from tensorflow/contrib/lite/g3doc/performance/post_training_quantization.md rename to tensorflow/lite/g3doc/performance/post_training_quantization.md index d95cab94aaea9a4866f1c23305ef451f28a6cdb4..cf4d70b2deb3370d0acdde1fcaa8d7fce0cf3bf2 100644 --- a/tensorflow/contrib/lite/g3doc/performance/post_training_quantization.md +++ b/tensorflow/lite/g3doc/performance/post_training_quantization.md @@ -7,7 +7,7 @@ is enabled as an option in [TensorFlow Lite model converter](../convert): ``` import tensorflow as tf -converter = tf.contrib.lite.TocoConverter.from_saved_model(saved_model_dir) +converter = tf.lite.TocoConverter.from_saved_model(saved_model_dir) converter.post_training_quantize = True tflite_quantized_model = converter.convert() open("quantized_model.tflite", "wb").write(tflite_quantized_model) @@ -33,8 +33,8 @@ Hybrid ops are available for the most compute-intensive operators in a network: Since weights are quantized post-training, there could be an accuracy loss, particularly for smaller networks. Pre-trained fully quantized models are provided for specific networks in -the [TensorFlow Lite model repository](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/g3doc/models.md#image-classification-quantized-models){:.external}. It is important to check the accuracy of the quantized model to verify that any degradation -in accuracy is within acceptable limits. There is a tool to evaluate [TensorFlow Lite model accuracy](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/tools/accuracy/README.md){:.external}. +the [TensorFlow Lite model repository](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/models.md#image-classification-quantized-models){:.external}. It is important to check the accuracy of the quantized model to verify that any degradation +in accuracy is within acceptable limits. There is a tool to evaluate [TensorFlow Lite model accuracy](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tools/accuracy/README.md){:.external}. If the accuracy drop is too high, consider using [quantization aware training](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/quantize/README.md){:.external}. diff --git a/tensorflow/contrib/lite/g3doc/rpi.md b/tensorflow/lite/g3doc/rpi.md similarity index 78% rename from tensorflow/contrib/lite/g3doc/rpi.md rename to tensorflow/lite/g3doc/rpi.md index 41a1892b6f179f98560ce26afcf7263f1048f8d8..708d9e328cbdfffb491d487e4592d789b4fd06af 100644 --- a/tensorflow/contrib/lite/g3doc/rpi.md +++ b/tensorflow/lite/g3doc/rpi.md @@ -23,18 +23,18 @@ Clone this Tensorflow repository, Run this script at the root of the repository > The Tensorflow repository is in `/tensorflow` if you are using `tensorflow/tensorflow:nightly-devel` docker image, just try it. ```bash -./tensorflow/contrib/lite/tools/make/download_dependencies.sh +./tensorflow/lite/tools/make/download_dependencies.sh ``` Note that you only need to do this once. You should then be able to compile: ```bash -./tensorflow/contrib/lite/tools/make/build_rpi_lib.sh +./tensorflow/lite/tools/make/build_rpi_lib.sh ``` This should compile a static library in: -`tensorflow/contrib/lite/gen/lib/rpi_armv7/libtensorflow-lite.a`. +`tensorflow/lite/gen/lib/rpi_armv7/libtensorflow-lite.a`. ## Native compiling This has been tested on Raspberry Pi 3b, Raspbian GNU/Linux 9.1 (stretch), gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1). @@ -48,14 +48,14 @@ sudo apt-get install build-essential First, clone the TensorFlow repository. Run this at the root of the repository: ```bash -./tensorflow/contrib/lite/tools/make/download_dependencies.sh +./tensorflow/lite/tools/make/download_dependencies.sh ``` Note that you only need to do this once. You should then be able to compile: ```bash -./tensorflow/contrib/lite/tools/make/build_rpi_lib.sh +./tensorflow/lite/tools/make/build_rpi_lib.sh ``` This should compile a static library in: -`tensorflow/contrib/lite/tools/make/gen/lib/rpi_armv7/libtensorflow-lite.a`. +`tensorflow/lite/tools/make/gen/lib/rpi_armv7/libtensorflow-lite.a`. diff --git a/tensorflow/contrib/lite/g3doc/tf_ops_compatibility.md b/tensorflow/lite/g3doc/tf_ops_compatibility.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/tf_ops_compatibility.md rename to tensorflow/lite/g3doc/tf_ops_compatibility.md diff --git a/tensorflow/contrib/lite/g3doc/tfmobile/android_build.md b/tensorflow/lite/g3doc/tfmobile/android_build.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/tfmobile/android_build.md rename to tensorflow/lite/g3doc/tfmobile/android_build.md diff --git a/tensorflow/contrib/lite/g3doc/tfmobile/index.md b/tensorflow/lite/g3doc/tfmobile/index.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/tfmobile/index.md rename to tensorflow/lite/g3doc/tfmobile/index.md diff --git a/tensorflow/contrib/lite/g3doc/tfmobile/ios_build.md b/tensorflow/lite/g3doc/tfmobile/ios_build.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/tfmobile/ios_build.md rename to tensorflow/lite/g3doc/tfmobile/ios_build.md diff --git a/tensorflow/contrib/lite/g3doc/tfmobile/linking_libs.md b/tensorflow/lite/g3doc/tfmobile/linking_libs.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/tfmobile/linking_libs.md rename to tensorflow/lite/g3doc/tfmobile/linking_libs.md diff --git a/tensorflow/contrib/lite/g3doc/tfmobile/optimizing.md b/tensorflow/lite/g3doc/tfmobile/optimizing.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/tfmobile/optimizing.md rename to tensorflow/lite/g3doc/tfmobile/optimizing.md diff --git a/tensorflow/contrib/lite/g3doc/tfmobile/prepare_models.md b/tensorflow/lite/g3doc/tfmobile/prepare_models.md similarity index 100% rename from tensorflow/contrib/lite/g3doc/tfmobile/prepare_models.md rename to tensorflow/lite/g3doc/tfmobile/prepare_models.md diff --git a/tensorflow/contrib/lite/graph_info.cc b/tensorflow/lite/graph_info.cc similarity index 99% rename from tensorflow/contrib/lite/graph_info.cc rename to tensorflow/lite/graph_info.cc index e60ed2c2463cb621015ba725ca030e8d8c02f3c7..cdbe66a3a4fa906d64d8598715c4a1a0eabd24cb 100644 --- a/tensorflow/contrib/lite/graph_info.cc +++ b/tensorflow/lite/graph_info.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/graph_info.h" +#include "tensorflow/lite/graph_info.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/graph_info.h b/tensorflow/lite/graph_info.h similarity index 93% rename from tensorflow/contrib/lite/graph_info.h rename to tensorflow/lite/graph_info.h index 8ee83827bb3fdf59b88d8304ad781cae98140b75..ff7ce669aceccf4295af499c3bfbb2182a672384 100644 --- a/tensorflow/contrib/lite/graph_info.h +++ b/tensorflow/lite/graph_info.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_GRAPH_INFO_H_ -#define TENSORFLOW_CONTRIB_LITE_GRAPH_INFO_H_ +#ifndef TENSORFLOW_LITE_GRAPH_INFO_H_ +#define TENSORFLOW_LITE_GRAPH_INFO_H_ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { @@ -79,4 +79,4 @@ TfLiteStatus PartitionGraphIntoIndependentSubgraphs( } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_GRAPH_INFO_H_ +#endif // TENSORFLOW_LITE_GRAPH_INFO_H_ diff --git a/tensorflow/contrib/lite/graph_info_test.cc b/tensorflow/lite/graph_info_test.cc similarity index 99% rename from tensorflow/contrib/lite/graph_info_test.cc rename to tensorflow/lite/graph_info_test.cc index 89a8f36b416b5dec54c1e374cdcdae3ab9ab0cde..5ecc3774e13060466634d81c3915f5046ad91795 100644 --- a/tensorflow/contrib/lite/graph_info_test.cc +++ b/tensorflow/lite/graph_info_test.cc @@ -16,8 +16,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/graph_info.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/graph_info.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/interpreter.cc b/tensorflow/lite/interpreter.cc similarity index 98% rename from tensorflow/contrib/lite/interpreter.cc rename to tensorflow/lite/interpreter.cc index c72e7bf33ebbaac09916ffda6faf4b812d702ea8..9d5d2772bec5fbb7b85217cb1af1a4dab3796b5d 100644 --- a/tensorflow/contrib/lite/interpreter.cc +++ b/tensorflow/lite/interpreter.cc @@ -13,23 +13,23 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/interpreter.h" +#include "tensorflow/lite/interpreter.h" #include #include #include #include -#include "tensorflow/contrib/lite/arena_planner.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/context_util.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/graph_info.h" -#include "tensorflow/contrib/lite/memory_planner.h" -#include "tensorflow/contrib/lite/nnapi_delegate.h" -#include "tensorflow/contrib/lite/profiling/profiler.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/util.h" +#include "tensorflow/lite/arena_planner.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/context_util.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/graph_info.h" +#include "tensorflow/lite/memory_planner.h" +#include "tensorflow/lite/nnapi_delegate.h" +#include "tensorflow/lite/profiling/profiler.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/interpreter.h b/tensorflow/lite/interpreter.h similarity index 98% rename from tensorflow/contrib/lite/interpreter.h rename to tensorflow/lite/interpreter.h index cbd042fa924000a9a627476d481c9f35893e94e4..6bb47726c01e69102035c64d5186b9e317420259 100644 --- a/tensorflow/contrib/lite/interpreter.h +++ b/tensorflow/lite/interpreter.h @@ -14,20 +14,20 @@ limitations under the License. ==============================================================================*/ // Main abstraction controlling the tflite interpreter. // See context.h for the API for defining operations (TfLiteRegistration). -#ifndef TENSORFLOW_CONTRIB_LITE_INTERPRETER_H_ -#define TENSORFLOW_CONTRIB_LITE_INTERPRETER_H_ +#ifndef TENSORFLOW_LITE_INTERPRETER_H_ +#define TENSORFLOW_LITE_INTERPRETER_H_ #include #include #include #include -#include "tensorflow/contrib/lite/allocation.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/memory_planner.h" -#include "tensorflow/contrib/lite/profiling/profiler.h" -#include "tensorflow/contrib/lite/stderr_reporter.h" +#include "tensorflow/lite/allocation.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/memory_planner.h" +#include "tensorflow/lite/profiling/profiler.h" +#include "tensorflow/lite/stderr_reporter.h" namespace tflite { @@ -692,4 +692,4 @@ class Interpreter { }; } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_INTERPRETER_H_ +#endif // TENSORFLOW_LITE_INTERPRETER_H_ diff --git a/tensorflow/contrib/lite/interpreter_test.cc b/tensorflow/lite/interpreter_test.cc similarity index 99% rename from tensorflow/contrib/lite/interpreter_test.cc rename to tensorflow/lite/interpreter_test.cc index 6c71d5a8d7bb3e275379637b151ab8f998b04f41..a37603b695cb30a7f1058ae77ab2214a7d49c2e3 100644 --- a/tensorflow/contrib/lite/interpreter_test.cc +++ b/tensorflow/lite/interpreter_test.cc @@ -13,14 +13,14 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/interpreter.h" +#include "tensorflow/lite/interpreter.h" #include -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/string_util.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/string_util.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { diff --git a/tensorflow/contrib/lite/java/AndroidManifest.xml b/tensorflow/lite/java/AndroidManifest.xml similarity index 100% rename from tensorflow/contrib/lite/java/AndroidManifest.xml rename to tensorflow/lite/java/AndroidManifest.xml diff --git a/tensorflow/contrib/lite/java/BUILD b/tensorflow/lite/java/BUILD similarity index 88% rename from tensorflow/contrib/lite/java/BUILD rename to tensorflow/lite/java/BUILD index c34f6ccfa05b329b931b8d6d22f84b8b6fc041e3..e6f47a9773ae4e651fcd10968f2b065a18eaabf4 100644 --- a/tensorflow/contrib/lite/java/BUILD +++ b/tensorflow/lite/java/BUILD @@ -2,14 +2,14 @@ # TensorFlow Lite Java API. package(default_visibility = [ - "//tensorflow/contrib/lite/java/ovic:__pkg__", + "//tensorflow/lite/java/ovic:__pkg__", ]) licenses(["notice"]) # Apache 2.0 load("//tensorflow/java:build_defs.bzl", "JAVACOPTS") -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_jni_binary") -load("//tensorflow/contrib/lite/java:aar_with_jni.bzl", "aar_with_jni") +load("//tensorflow/lite:build_def.bzl", "tflite_jni_binary") +load("//tensorflow/lite/java:aar_with_jni.bzl", "aar_with_jni") JAVA_SRCS = glob([ "src/main/java/org/tensorflow/lite/*.java", @@ -18,7 +18,7 @@ JAVA_SRCS = glob([ # Building tensorflow-lite.aar including 4 variants of .so # To build an aar for release, run below command: # bazel build --cxxopt='--std=c++11' -c opt --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a \ -# tensorflow/contrib/lite/java:tensorflow-lite +# tensorflow/lite/java:tensorflow-lite aar_with_jni( name = "tensorflow-lite", android_library = ":tensorflowlite", @@ -143,7 +143,7 @@ java_test( data = [ "src/testdata/add.bin", "src/testdata/mobilenet.tflite.bin", - "//tensorflow/contrib/lite:testdata/multi_add_flex.bin", + "//tensorflow/lite:testdata/multi_add_flex.bin", ], javacopts = JAVACOPTS, tags = ["no_oss"], @@ -151,7 +151,7 @@ java_test( visibility = ["//visibility:private"], deps = [ ":tensorflowlitelib", - "//tensorflow/contrib/lite/java/src/test/native:libtensorflowlite_test_jni.so", + "//tensorflow/lite/java/src/test/native:libtensorflowlite_test_jni.so", "@com_google_truth", "@junit", ], @@ -162,7 +162,7 @@ java_test( size = "small", srcs = ["src/test/java/org/tensorflow/lite/InterpreterFlexTest.java"], data = [ - "//tensorflow/contrib/lite:testdata/multi_add_flex.bin", + "//tensorflow/lite:testdata/multi_add_flex.bin", ], javacopts = JAVACOPTS, tags = ["no_oss"], @@ -215,7 +215,7 @@ cc_library( tflite_jni_binary( name = "libtensorflowlite_jni.so", deps = [ - "//tensorflow/contrib/lite/java/src/main/native", + "//tensorflow/lite/java/src/main/native", ], ) @@ -223,8 +223,8 @@ tflite_jni_binary( tflite_jni_binary( name = "libtensorflowlite_flex_jni.so", deps = [ - "//tensorflow/contrib/lite/delegates/flex:delegate", - "//tensorflow/contrib/lite/java/src/main/native", - "//tensorflow/contrib/lite/java/src/main/native:init_tensorflow", + "//tensorflow/lite/delegates/flex:delegate", + "//tensorflow/lite/java/src/main/native", + "//tensorflow/lite/java/src/main/native:init_tensorflow", ], ) diff --git a/tensorflow/contrib/lite/java/aar_with_jni.bzl b/tensorflow/lite/java/aar_with_jni.bzl similarity index 100% rename from tensorflow/contrib/lite/java/aar_with_jni.bzl rename to tensorflow/lite/java/aar_with_jni.bzl diff --git a/tensorflow/contrib/lite/java/build_aar_for_release.sh b/tensorflow/lite/java/build_aar_for_release.sh similarity index 98% rename from tensorflow/contrib/lite/java/build_aar_for_release.sh rename to tensorflow/lite/java/build_aar_for_release.sh index fbcb1e7db9a3f9b885505e989b7ff7224f2d2b15..54be643fc7e0ae2fb50b2688db5054520bc30e47 100755 --- a/tensorflow/contrib/lite/java/build_aar_for_release.sh +++ b/tensorflow/lite/java/build_aar_for_release.sh @@ -22,7 +22,7 @@ trap "rm -rf $TMPDIR" EXIT VERSION=1.0 BUILDER=bazel -BASEDIR=tensorflow/contrib/lite +BASEDIR=tensorflow/lite CROSSTOOL="//external:android/crosstool" HOST_CROSSTOOL="@bazel_tools//tools/cpp:toolchain" diff --git a/tensorflow/contrib/lite/java/demo/.gitignore b/tensorflow/lite/java/demo/.gitignore similarity index 100% rename from tensorflow/contrib/lite/java/demo/.gitignore rename to tensorflow/lite/java/demo/.gitignore diff --git a/tensorflow/contrib/lite/java/demo/README.md b/tensorflow/lite/java/demo/README.md similarity index 93% rename from tensorflow/contrib/lite/java/demo/README.md rename to tensorflow/lite/java/demo/README.md index c04b2a61942430108891c612ae410d04d373c840..b5bfe39ce7f6aba75cc5d1e0d9d01ba985f7d909 100644 --- a/tensorflow/contrib/lite/java/demo/README.md +++ b/tensorflow/lite/java/demo/README.md @@ -42,12 +42,12 @@ code to merge. ```shell bazel build -c opt --cxxopt='--std=c++11' \ - //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo + //tensorflow/lite/java/demo/app/src/main:TfLiteCameraDemo ``` 3. Install the demo on a [debug-enabled device](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install): ```shell - adb install bazel-bin/tensorflow/contrib/lite/java/demo/app/src/main/TfLiteCameraDemo.apk + adb install bazel-bin/tensorflow/lite/java/demo/app/src/main/TfLiteCameraDemo.apk ``` diff --git a/tensorflow/contrib/lite/java/demo/app/build.gradle b/tensorflow/lite/java/demo/app/build.gradle similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/build.gradle rename to tensorflow/lite/java/demo/app/build.gradle diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/AndroidManifest.xml b/tensorflow/lite/java/demo/app/src/main/AndroidManifest.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/AndroidManifest.xml rename to tensorflow/lite/java/demo/app/src/main/AndroidManifest.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/BUILD b/tensorflow/lite/java/demo/app/src/main/BUILD similarity index 78% rename from tensorflow/contrib/lite/java/demo/app/src/main/BUILD rename to tensorflow/lite/java/demo/app/src/main/BUILD index 5ad738389eb8bc1d875fc888c1336fb3fa140eee..df8a024a570fe071c808bcd70167221f8c8fd8cc 100644 --- a/tensorflow/contrib/lite/java/demo/app/src/main/BUILD +++ b/tensorflow/lite/java/demo/app/src/main/BUILD @@ -9,7 +9,7 @@ android_binary( srcs = glob(["java/**/*.java"]), aapt_version = "aapt", assets = [ - "//tensorflow/contrib/lite/java/demo/app/src/main/assets:labels_mobilenet_quant_v1_224.txt", + "//tensorflow/lite/java/demo/app/src/main/assets:labels_mobilenet_quant_v1_224.txt", "@tflite_mobilenet//:mobilenet_quant_v1_224.tflite", ], assets_dir = "", @@ -24,8 +24,8 @@ android_binary( # use the target in that case. tags = ["manual"], deps = [ - "//tensorflow/contrib/lite/java:tensorflowlite", - "//tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", + "//tensorflow/lite/java:tensorflowlite", + "//tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", "@androidsdk//com.android.support:support-v13-25.2.0", "@androidsdk//com.android.support:support-v4-25.2.0", ], diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/assets/BUILD b/tensorflow/lite/java/demo/app/src/main/assets/BUILD similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/assets/BUILD rename to tensorflow/lite/java/demo/app/src/main/assets/BUILD diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/assets/labels_imagenet_slim.txt b/tensorflow/lite/java/demo/app/src/main/assets/labels_imagenet_slim.txt similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/assets/labels_imagenet_slim.txt rename to tensorflow/lite/java/demo/app/src/main/assets/labels_imagenet_slim.txt diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/assets/labels_mobilenet_quant_v1_224.txt b/tensorflow/lite/java/demo/app/src/main/assets/labels_mobilenet_quant_v1_224.txt similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/assets/labels_mobilenet_quant_v1_224.txt rename to tensorflow/lite/java/demo/app/src/main/assets/labels_mobilenet_quant_v1_224.txt diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/AutoFitTextureView.java b/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/AutoFitTextureView.java similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/AutoFitTextureView.java rename to tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/AutoFitTextureView.java diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/Camera2BasicFragment.java b/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/Camera2BasicFragment.java similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/Camera2BasicFragment.java rename to tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/Camera2BasicFragment.java diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/CameraActivity.java b/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/CameraActivity.java similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/CameraActivity.java rename to tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/CameraActivity.java diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifier.java b/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifier.java similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifier.java rename to tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifier.java diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifierFloatInception.java b/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifierFloatInception.java similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifierFloatInception.java rename to tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifierFloatInception.java diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifierQuantizedMobileNet.java b/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifierQuantizedMobileNet.java similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifierQuantizedMobileNet.java rename to tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ImageClassifierQuantizedMobileNet.java diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-hdpi/ic_action_info.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-hdpi/ic_action_info.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-hdpi/ic_action_info.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-hdpi/ic_action_info.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-hdpi/ic_launcher.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-hdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-hdpi/ic_launcher.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-hdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-hdpi/tile.9.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-hdpi/tile.9.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-hdpi/tile.9.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-hdpi/tile.9.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-mdpi/ic_action_info.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-mdpi/ic_action_info.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-mdpi/ic_action_info.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-mdpi/ic_action_info.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-mdpi/ic_launcher.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-mdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-mdpi/ic_launcher.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-mdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xhdpi/ic_action_info.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-xhdpi/ic_action_info.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xhdpi/ic_action_info.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-xhdpi/ic_action_info.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xhdpi/ic_launcher.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-xhdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xhdpi/ic_launcher.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-xhdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xxhdpi/ic_action_info.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-xxhdpi/ic_action_info.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xxhdpi/ic_action_info.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-xxhdpi/ic_action_info.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-xxhdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xxhdpi/ic_launcher.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-xxhdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xxhdpi/logo.png b/tensorflow/lite/java/demo/app/src/main/res/drawable-xxhdpi/logo.png similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/drawable-xxhdpi/logo.png rename to tensorflow/lite/java/demo/app/src/main/res/drawable-xxhdpi/logo.png diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml b/tensorflow/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml rename to tensorflow/lite/java/demo/app/src/main/res/layout-land/fragment_camera2_basic.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/layout-v26/fragment_camera2_basic.xml b/tensorflow/lite/java/demo/app/src/main/res/layout-v26/fragment_camera2_basic.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/layout-v26/fragment_camera2_basic.xml rename to tensorflow/lite/java/demo/app/src/main/res/layout-v26/fragment_camera2_basic.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/layout/activity_camera.xml b/tensorflow/lite/java/demo/app/src/main/res/layout/activity_camera.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/layout/activity_camera.xml rename to tensorflow/lite/java/demo/app/src/main/res/layout/activity_camera.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/layout/fragment_camera2_basic.xml b/tensorflow/lite/java/demo/app/src/main/res/layout/fragment_camera2_basic.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/layout/fragment_camera2_basic.xml rename to tensorflow/lite/java/demo/app/src/main/res/layout/fragment_camera2_basic.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values-sw600dp/template-dimens.xml b/tensorflow/lite/java/demo/app/src/main/res/values-sw600dp/template-dimens.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values-sw600dp/template-dimens.xml rename to tensorflow/lite/java/demo/app/src/main/res/values-sw600dp/template-dimens.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values-sw600dp/template-styles.xml b/tensorflow/lite/java/demo/app/src/main/res/values-sw600dp/template-styles.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values-sw600dp/template-styles.xml rename to tensorflow/lite/java/demo/app/src/main/res/values-sw600dp/template-styles.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values-v11/template-styles.xml b/tensorflow/lite/java/demo/app/src/main/res/values-v11/template-styles.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values-v11/template-styles.xml rename to tensorflow/lite/java/demo/app/src/main/res/values-v11/template-styles.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values-v21/base-colors.xml b/tensorflow/lite/java/demo/app/src/main/res/values-v21/base-colors.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values-v21/base-colors.xml rename to tensorflow/lite/java/demo/app/src/main/res/values-v21/base-colors.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values-v21/base-template-styles.xml b/tensorflow/lite/java/demo/app/src/main/res/values-v21/base-template-styles.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values-v21/base-template-styles.xml rename to tensorflow/lite/java/demo/app/src/main/res/values-v21/base-template-styles.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values/base-strings.xml b/tensorflow/lite/java/demo/app/src/main/res/values/base-strings.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values/base-strings.xml rename to tensorflow/lite/java/demo/app/src/main/res/values/base-strings.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values/colors.xml b/tensorflow/lite/java/demo/app/src/main/res/values/colors.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values/colors.xml rename to tensorflow/lite/java/demo/app/src/main/res/values/colors.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values/strings.xml b/tensorflow/lite/java/demo/app/src/main/res/values/strings.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values/strings.xml rename to tensorflow/lite/java/demo/app/src/main/res/values/strings.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values/styles.xml b/tensorflow/lite/java/demo/app/src/main/res/values/styles.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values/styles.xml rename to tensorflow/lite/java/demo/app/src/main/res/values/styles.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values/template-dimens.xml b/tensorflow/lite/java/demo/app/src/main/res/values/template-dimens.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values/template-dimens.xml rename to tensorflow/lite/java/demo/app/src/main/res/values/template-dimens.xml diff --git a/tensorflow/contrib/lite/java/demo/app/src/main/res/values/template-styles.xml b/tensorflow/lite/java/demo/app/src/main/res/values/template-styles.xml similarity index 100% rename from tensorflow/contrib/lite/java/demo/app/src/main/res/values/template-styles.xml rename to tensorflow/lite/java/demo/app/src/main/res/values/template-styles.xml diff --git a/tensorflow/contrib/lite/java/demo/build.gradle b/tensorflow/lite/java/demo/build.gradle similarity index 100% rename from tensorflow/contrib/lite/java/demo/build.gradle rename to tensorflow/lite/java/demo/build.gradle diff --git a/tensorflow/contrib/lite/java/demo/gradle.properties b/tensorflow/lite/java/demo/gradle.properties similarity index 100% rename from tensorflow/contrib/lite/java/demo/gradle.properties rename to tensorflow/lite/java/demo/gradle.properties diff --git a/tensorflow/contrib/lite/java/demo/gradle/wrapper/gradle-wrapper.jar b/tensorflow/lite/java/demo/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from tensorflow/contrib/lite/java/demo/gradle/wrapper/gradle-wrapper.jar rename to tensorflow/lite/java/demo/gradle/wrapper/gradle-wrapper.jar diff --git a/tensorflow/contrib/lite/java/demo/gradle/wrapper/gradle-wrapper.properties b/tensorflow/lite/java/demo/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from tensorflow/contrib/lite/java/demo/gradle/wrapper/gradle-wrapper.properties rename to tensorflow/lite/java/demo/gradle/wrapper/gradle-wrapper.properties diff --git a/tensorflow/contrib/lite/java/demo/gradlew b/tensorflow/lite/java/demo/gradlew similarity index 100% rename from tensorflow/contrib/lite/java/demo/gradlew rename to tensorflow/lite/java/demo/gradlew diff --git a/tensorflow/contrib/lite/java/demo/gradlew.bat b/tensorflow/lite/java/demo/gradlew.bat similarity index 100% rename from tensorflow/contrib/lite/java/demo/gradlew.bat rename to tensorflow/lite/java/demo/gradlew.bat diff --git a/tensorflow/contrib/lite/java/demo/settings.gradle b/tensorflow/lite/java/demo/settings.gradle similarity index 100% rename from tensorflow/contrib/lite/java/demo/settings.gradle rename to tensorflow/lite/java/demo/settings.gradle diff --git a/tensorflow/contrib/lite/java/ovic/BUILD b/tensorflow/lite/java/ovic/BUILD similarity index 63% rename from tensorflow/contrib/lite/java/ovic/BUILD rename to tensorflow/lite/java/ovic/BUILD index 552468faf4121da5add320113e3f7b961cafd9b5..774320871eec9afb2fae31824dc021fb7d338e1e 100644 --- a/tensorflow/contrib/lite/java/ovic/BUILD +++ b/tensorflow/lite/java/ovic/BUILD @@ -15,15 +15,15 @@ java_test( size = "medium", srcs = ["src/test/java/org/tensorflow/ovic/OvicClassifierTest.java"], data = [ - "//tensorflow/contrib/lite/java/ovic/src/testdata:labels.txt", - "//tensorflow/contrib/lite/java/ovic/src/testdata:ovic_testdata", + "//tensorflow/lite/java/ovic/src/testdata:labels.txt", + "//tensorflow/lite/java/ovic/src/testdata:ovic_testdata", ], javacopts = JAVACOPTS, tags = ["no_oss"], test_class = "org.tensorflow.ovic.OvicClassifierTest", visibility = ["//visibility:public"], deps = [ - "//tensorflow/contrib/lite/java/ovic:ovicbenchmarkerlib_java", + "//tensorflow/lite/java/ovic:ovicbenchmarkerlib_java", "@com_google_truth", "@junit", ], @@ -33,13 +33,13 @@ java_binary( name = "ovic_validator", srcs = ["src/main/java/org/tensorflow/ovic/OvicValidator.java"], data = [ - "//tensorflow/contrib/lite/java/ovic/src/testdata:labels.txt", + "//tensorflow/lite/java/ovic/src/testdata:labels.txt", ], main_class = "org.tensorflow.ovic.OvicValidator", tags = ["no_oss"], deps = [ - "//tensorflow/contrib/lite/java/ovic:ovicbenchmarkerlib_java", - "//tensorflow/contrib/lite/java/ovic:ovicdetectionbenchmarkerlib_java", + "//tensorflow/lite/java/ovic:ovicbenchmarkerlib_java", + "//tensorflow/lite/java/ovic:ovicdetectionbenchmarkerlib_java", ], ) @@ -51,11 +51,11 @@ android_library( "src/main/java/org/tensorflow/ovic/OvicClassifier.java", "src/main/java/org/tensorflow/ovic/OvicClassifierBenchmarker.java", ], - manifest = "//tensorflow/contrib/lite/java:AndroidManifest.xml", + manifest = "//tensorflow/lite/java:AndroidManifest.xml", tags = ["no_oss"], deps = [ - "//tensorflow/contrib/lite/java:tensorflowlite", - "//tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", + "//tensorflow/lite/java:tensorflowlite", + "//tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", "@org_checkerframework_qual", ], ) @@ -69,10 +69,10 @@ java_library( javacopts = JAVACOPTS, tags = ["no_oss"], deps = [ - "//tensorflow/contrib/lite/java:libtensorflowlite_jni.so", - "//tensorflow/contrib/lite/java:tensorflowlite_java", - "//tensorflow/contrib/lite/java/src/main/native", - "//tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", + "//tensorflow/lite/java:libtensorflowlite_jni.so", + "//tensorflow/lite/java:tensorflowlite_java", + "//tensorflow/lite/java/src/main/native", + "//tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", "@org_checkerframework_qual", ], ) @@ -83,15 +83,15 @@ java_test( size = "medium", srcs = ["src/test/java/org/tensorflow/ovic/OvicDetectorTest.java"], data = [ - "//tensorflow/contrib/lite/java/ovic/src/testdata:coco_labels.txt", - "//tensorflow/contrib/lite/java/ovic/src/testdata:ovic_testdata", + "//tensorflow/lite/java/ovic/src/testdata:coco_labels.txt", + "//tensorflow/lite/java/ovic/src/testdata:ovic_testdata", ], javacopts = JAVACOPTS, tags = ["no_oss"], test_class = "org.tensorflow.ovic.OvicDetectorTest", visibility = ["//visibility:public"], deps = [ - "//tensorflow/contrib/lite/java/ovic:ovicdetectionbenchmarkerlib_java", + "//tensorflow/lite/java/ovic:ovicdetectionbenchmarkerlib_java", "@com_google_truth", "@junit", ], @@ -106,10 +106,10 @@ android_library( "src/main/java/org/tensorflow/ovic/OvicDetector.java", "src/main/java/org/tensorflow/ovic/OvicDetectorBenchmarker.java", ], - manifest = "//tensorflow/contrib/lite/java:AndroidManifest.xml", + manifest = "//tensorflow/lite/java:AndroidManifest.xml", deps = [ - "//tensorflow/contrib/lite/java:tensorflowlite", - "//tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", + "//tensorflow/lite/java:tensorflowlite", + "//tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", "@org_checkerframework_qual", ], ) @@ -123,10 +123,10 @@ java_library( ], javacopts = JAVACOPTS, deps = [ - "//tensorflow/contrib/lite/java:libtensorflowlite_jni.so", - "//tensorflow/contrib/lite/java:tensorflowlite_java", - "//tensorflow/contrib/lite/java/src/main/native", - "//tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", + "//tensorflow/lite/java:libtensorflowlite_jni.so", + "//tensorflow/lite/java:tensorflowlite_java", + "//tensorflow/lite/java/src/main/native", + "//tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite:testhelper", "@org_checkerframework_qual", ], ) diff --git a/tensorflow/contrib/lite/java/ovic/README.md b/tensorflow/lite/java/ovic/README.md similarity index 87% rename from tensorflow/contrib/lite/java/ovic/README.md rename to tensorflow/lite/java/ovic/README.md index 489ed3df407781ac97ea3f1514b649bd0f9ea0d2..9e3ceb7e18e260e0dd40da131301d1c222fd1e09 100644 --- a/tensorflow/contrib/lite/java/ovic/README.md +++ b/tensorflow/lite/java/ovic/README.md @@ -17,7 +17,7 @@ We are releasing an benchmarker Apk that would allow developers to measure laten The test data (models and images) should be downloaded automatically for you by Bazel. In case they are not, you can manually install them as below. -Note: all commands should be called from your tensorflow installation folder (under this folder you should find `tensorflow/contrib/lite`). +Note: all commands should be called from your tensorflow installation folder (under this folder you should find `tensorflow/lite`). * Download the [testdata package](https://storage.googleapis.com/download.tensorflow.org/data/ovic_2018_10_23.zip): @@ -29,7 +29,7 @@ curl -L https://storage.googleapis.com/download.tensorflow.org/data/ovic_2018_10 * Unzip the package into the testdata folder: ```sh -unzip -j /tmp/ovic.zip -d tensorflow/contrib/lite/java/ovic/src/testdata/ +unzip -j /tmp/ovic.zip -d tensorflow/lite/java/ovic/src/testdata/ ``` ### Run tests @@ -37,9 +37,9 @@ unzip -j /tmp/ovic.zip -d tensorflow/contrib/lite/java/ovic/src/testdata/ You can run test with Bazel as below. This helps to ensure that the installation is correct. ```sh -bazel test --cxxopt=--std=c++11 //tensorflow/contrib/lite/java/ovic:OvicClassifierTest --cxxopt=-Wno-all --test_output=all +bazel test --cxxopt=--std=c++11 //tensorflow/lite/java/ovic:OvicClassifierTest --cxxopt=-Wno-all --test_output=all -bazel test --cxxopt=--std=c++11 //tensorflow/contrib/lite/java/ovic:OvicDetectorTest --cxxopt=-Wno-all --test_output=all +bazel test --cxxopt=--std=c++11 //tensorflow/lite/java/ovic:OvicDetectorTest --cxxopt=-Wno-all --test_output=all ``` ### Test your submissions @@ -51,8 +51,8 @@ Once you have a submission that follows the instructions from the [competition s You can call the validator binary below to verify that your model fits the format requirements. This often helps you to catch size mismatches (e.g. output for classification should be [1, 1001] instead of [1,1,1,1001]). Let say the submission file is located at `/path/to/my_model.lite`, then call: ```sh -bazel build --cxxopt=--std=c++11 //tensorflow/contrib/lite/java/ovic:ovic_validator --cxxopt=-Wno-all -bazel-bin/tensorflow/contrib/lite/java/ovic/ovic_validator /path/to/my_model.lite classify +bazel build --cxxopt=--std=c++11 //tensorflow/lite/java/ovic:ovic_validator --cxxopt=-Wno-all +bazel-bin/tensorflow/lite/java/ovic/ovic_validator /path/to/my_model.lite classify ``` Successful validation should print the following message to terminal: @@ -72,14 +72,14 @@ You can go a step further to verify that the model produces results as expected. * Move your submission to the testdata folder: ```sh -cp /path/to/my_model.lite tensorflow/contrib/lite/java/ovic/src/testdata/ +cp /path/to/my_model.lite tensorflow/lite/java/ovic/src/testdata/ ``` * Resize the test image to the resolutions that are expected by your submission: -The test images can be found at `tensorflow/contrib/lite/java/ovic/src/testdata/test_image_*.jpg`. You may reuse these images if your image resolutions are 128x128 or 224x224. +The test images can be found at `tensorflow/lite/java/ovic/src/testdata/test_image_*.jpg`. You may reuse these images if your image resolutions are 128x128 or 224x224. -* Add your model and test image to the BUILD rule at `tensorflow/contrib/lite/java/ovic/src/testdata/BUILD`: +* Add your model and test image to the BUILD rule at `tensorflow/lite/java/ovic/src/testdata/BUILD`: ```JSON filegroup( @@ -113,7 +113,7 @@ We provide two ways to measure the on-device latency of your submission. The fir Make sure that you have followed instructions in [Test your submissions](#test-your-submissions) to add your model to the testdata folder and to the corresponding build rules. -Modify `tensorflow/contrib/lite/java/ovic/demo/app/OvicBenchmarkerActivity.java`: +Modify `tensorflow/lite/java/ovic/demo/app/OvicBenchmarkerActivity.java`: * Add your model to the benchmarker apk by changing `MODEL_PATH` and `TEST_IMAGE_PATH` below to your submission and test image. @@ -140,8 +140,8 @@ Note: You'll need ROOT access to the phone to change processor affinity. * Build and install the app. ``` -bazel build -c opt --cxxopt=--std=c++11 --cxxopt=-Wno-all //tensorflow/contrib/lite/java/ovic/demo/app:ovic_benchmarker_binary -adb install -r bazel-bin/tensorflow/contrib/lite/java/ovic/demo/app/ovic_benchmarker_binary.apk +bazel build -c opt --cxxopt=--std=c++11 --cxxopt=-Wno-all //tensorflow/lite/java/ovic/demo/app:ovic_benchmarker_binary +adb install -r bazel-bin/tensorflow/lite/java/ovic/demo/app/ovic_benchmarker_binary.apk ``` Start the app and pick a task by clicking either the `CLF` button for classification or the `DET` button for detection. The button should turn bright green, signaling that the experiment is running. The benchmarking results will be displayed after about the `WALL_TIME` you specified above. For example: diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/AndroidManifest.xml b/tensorflow/lite/java/ovic/demo/app/AndroidManifest.xml similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/AndroidManifest.xml rename to tensorflow/lite/java/ovic/demo/app/AndroidManifest.xml diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/BUILD b/tensorflow/lite/java/ovic/demo/app/BUILD similarity index 62% rename from tensorflow/contrib/lite/java/ovic/demo/app/BUILD rename to tensorflow/lite/java/ovic/demo/app/BUILD index a30c707483ed82eea5f8be835f7479f0ef0e5c37..b3548deaf536899c062bd6f363df06949d43e348 100644 --- a/tensorflow/contrib/lite/java/ovic/demo/app/BUILD +++ b/tensorflow/lite/java/ovic/demo/app/BUILD @@ -10,9 +10,9 @@ android_binary( ], aapt_version = "aapt", assets = [ - "//tensorflow/contrib/lite/java/ovic/src/testdata:coco_labels.txt", - "//tensorflow/contrib/lite/java/ovic/src/testdata:labels.txt", - "//tensorflow/contrib/lite/java/ovic/src/testdata:ovic_testdata", + "//tensorflow/lite/java/ovic/src/testdata:coco_labels.txt", + "//tensorflow/lite/java/ovic/src/testdata:labels.txt", + "//tensorflow/lite/java/ovic/src/testdata:ovic_testdata", ], assets_dir = "", custom_package = "ovic.demo.app", @@ -24,9 +24,9 @@ android_binary( resource_files = glob(["res/**"]), tags = ["manual"], deps = [ - "//tensorflow/contrib/lite/java:tensorflowlite", - "//tensorflow/contrib/lite/java/ovic:ovicbenchmarkerlib", - "//tensorflow/contrib/lite/java/ovic:ovicdetectionbenchmarkerlib", + "//tensorflow/lite/java:tensorflowlite", + "//tensorflow/lite/java/ovic:ovicbenchmarkerlib", + "//tensorflow/lite/java/ovic:ovicdetectionbenchmarkerlib", "@androidsdk//com.android.support:support-v13-25.2.0", "@androidsdk//com.android.support:support-v4-25.2.0", ], diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/OvicBenchmarkerActivity.java b/tensorflow/lite/java/ovic/demo/app/OvicBenchmarkerActivity.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/OvicBenchmarkerActivity.java rename to tensorflow/lite/java/ovic/demo/app/OvicBenchmarkerActivity.java diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/build.gradle b/tensorflow/lite/java/ovic/demo/app/build.gradle similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/build.gradle rename to tensorflow/lite/java/ovic/demo/app/build.gradle diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/res/drawable-mdpi/ic_launcher.png b/tensorflow/lite/java/ovic/demo/app/res/drawable-mdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/res/drawable-mdpi/ic_launcher.png rename to tensorflow/lite/java/ovic/demo/app/res/drawable-mdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/res/drawable-xhdpi/ic_launcher.png b/tensorflow/lite/java/ovic/demo/app/res/drawable-xhdpi/ic_launcher.png similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/res/drawable-xhdpi/ic_launcher.png rename to tensorflow/lite/java/ovic/demo/app/res/drawable-xhdpi/ic_launcher.png diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/res/drawable/start_button_color.xml b/tensorflow/lite/java/ovic/demo/app/res/drawable/start_button_color.xml similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/res/drawable/start_button_color.xml rename to tensorflow/lite/java/ovic/demo/app/res/drawable/start_button_color.xml diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/res/layout/activity_main.xml b/tensorflow/lite/java/ovic/demo/app/res/layout/activity_main.xml similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/res/layout/activity_main.xml rename to tensorflow/lite/java/ovic/demo/app/res/layout/activity_main.xml diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/res/values/dimens.xml b/tensorflow/lite/java/ovic/demo/app/res/values/dimens.xml similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/res/values/dimens.xml rename to tensorflow/lite/java/ovic/demo/app/res/values/dimens.xml diff --git a/tensorflow/contrib/lite/java/ovic/demo/app/res/values/strings.xml b/tensorflow/lite/java/ovic/demo/app/res/values/strings.xml similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/app/res/values/strings.xml rename to tensorflow/lite/java/ovic/demo/app/res/values/strings.xml diff --git a/tensorflow/contrib/lite/java/ovic/demo/build.gradle b/tensorflow/lite/java/ovic/demo/build.gradle similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/build.gradle rename to tensorflow/lite/java/ovic/demo/build.gradle diff --git a/tensorflow/contrib/lite/java/ovic/demo/gradle.properties b/tensorflow/lite/java/ovic/demo/gradle.properties similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/gradle.properties rename to tensorflow/lite/java/ovic/demo/gradle.properties diff --git a/tensorflow/contrib/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.jar b/tensorflow/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.jar rename to tensorflow/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.jar diff --git a/tensorflow/contrib/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.properties b/tensorflow/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.properties rename to tensorflow/lite/java/ovic/demo/gradle/wrapper/gradle-wrapper.properties diff --git a/tensorflow/contrib/lite/java/ovic/demo/gradlew b/tensorflow/lite/java/ovic/demo/gradlew similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/gradlew rename to tensorflow/lite/java/ovic/demo/gradlew diff --git a/tensorflow/contrib/lite/java/ovic/demo/gradlew.bat b/tensorflow/lite/java/ovic/demo/gradlew.bat similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/gradlew.bat rename to tensorflow/lite/java/ovic/demo/gradlew.bat diff --git a/tensorflow/contrib/lite/java/ovic/demo/settings.gradle b/tensorflow/lite/java/ovic/demo/settings.gradle similarity index 100% rename from tensorflow/contrib/lite/java/ovic/demo/settings.gradle rename to tensorflow/lite/java/ovic/demo/settings.gradle diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/BoundingBox.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/BoundingBox.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/BoundingBox.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/BoundingBox.java diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicBenchmarker.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicBenchmarker.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicBenchmarker.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicBenchmarker.java diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassificationResult.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassificationResult.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassificationResult.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassificationResult.java diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassifier.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassifier.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassifier.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassifier.java diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassifierBenchmarker.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassifierBenchmarker.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassifierBenchmarker.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicClassifierBenchmarker.java diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetectionResult.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetectionResult.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetectionResult.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetectionResult.java diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetector.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetector.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetector.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetector.java diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetectorBenchmarker.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetectorBenchmarker.java similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetectorBenchmarker.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicDetectorBenchmarker.java diff --git a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicValidator.java b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicValidator.java similarity index 98% rename from tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicValidator.java rename to tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicValidator.java index 5756380abb751f69107690bb787bbfe199d68a09..0a7aee043271b822bd3a684955f334b7edc2ad64 100644 --- a/tensorflow/contrib/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicValidator.java +++ b/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/OvicValidator.java @@ -47,7 +47,7 @@ public class OvicValidator { final boolean isDetection = taskString.equals("detect"); // Label file for detection is never used, so the same label file is used for both tasks. final String labelPath = - "tensorflow/contrib/lite/java/ovic/src/testdata/labels.txt"; + "tensorflow/lite/java/ovic/src/testdata/labels.txt"; try { MappedByteBuffer model = loadModelFile(modelFile); diff --git a/tensorflow/contrib/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicClassifierTest.java b/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicClassifierTest.java similarity index 98% rename from tensorflow/contrib/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicClassifierTest.java rename to tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicClassifierTest.java index 99e874ca786a22f55ca1d50b01887ab7bb487f1f..c309c5bd55114ba1d0dcdfc1d8c9129f467c46ba 100644 --- a/tensorflow/contrib/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicClassifierTest.java +++ b/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicClassifierTest.java @@ -45,7 +45,7 @@ public final class OvicClassifierTest { private ByteBuffer lowResTestImage = null; private OvicClassificationResult testResult = null; private static final String LABELS_PATH = - "tensorflow/contrib/lite/java/ovic/src/testdata/labels.txt"; + "tensorflow/lite/java/ovic/src/testdata/labels.txt"; private static final String QUANTIZED_MODEL_PATH = "external/tflite_ovic_testdata/quantized_model.lite"; private static final String LOW_RES_MODEL_PATH = diff --git a/tensorflow/contrib/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicDetectorTest.java b/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicDetectorTest.java similarity index 98% rename from tensorflow/contrib/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicDetectorTest.java rename to tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicDetectorTest.java index 489d7a0f2b87d98a25561d395487ebaab7175928..709f8fb5c3293366fe6f6dd26c6779fb422a8a16 100644 --- a/tensorflow/contrib/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicDetectorTest.java +++ b/tensorflow/lite/java/ovic/src/test/java/org/tensorflow/ovic/OvicDetectorTest.java @@ -41,7 +41,7 @@ public final class OvicDetectorTest { private ByteBuffer testImage = null; private static final String LABELS_PATH = - "tensorflow/contrib/lite/java/ovic/src/testdata/coco_labels.txt"; + "tensorflow/lite/java/ovic/src/testdata/coco_labels.txt"; private static final String MODEL_PATH = "external/tflite_ovic_testdata/quantized_detect.lite"; private static final String TEST_IMAGE_PATH = diff --git a/tensorflow/contrib/lite/java/ovic/src/testdata/BUILD b/tensorflow/lite/java/ovic/src/testdata/BUILD similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/testdata/BUILD rename to tensorflow/lite/java/ovic/src/testdata/BUILD diff --git a/tensorflow/contrib/lite/java/ovic/src/testdata/coco_labels.txt b/tensorflow/lite/java/ovic/src/testdata/coco_labels.txt similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/testdata/coco_labels.txt rename to tensorflow/lite/java/ovic/src/testdata/coco_labels.txt diff --git a/tensorflow/contrib/lite/java/ovic/src/testdata/labels.txt b/tensorflow/lite/java/ovic/src/testdata/labels.txt similarity index 100% rename from tensorflow/contrib/lite/java/ovic/src/testdata/labels.txt rename to tensorflow/lite/java/ovic/src/testdata/labels.txt diff --git a/tensorflow/contrib/lite/java/proguard.flags b/tensorflow/lite/java/proguard.flags similarity index 100% rename from tensorflow/contrib/lite/java/proguard.flags rename to tensorflow/lite/java/proguard.flags diff --git a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/DataType.java b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/DataType.java similarity index 100% rename from tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/DataType.java rename to tensorflow/lite/java/src/main/java/org/tensorflow/lite/DataType.java diff --git a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/Delegate.java b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/Delegate.java similarity index 100% rename from tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/Delegate.java rename to tensorflow/lite/java/src/main/java/org/tensorflow/lite/Delegate.java diff --git a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java similarity index 100% rename from tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java rename to tensorflow/lite/java/src/main/java/org/tensorflow/lite/Interpreter.java diff --git a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java similarity index 100% rename from tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java rename to tensorflow/lite/java/src/main/java/org/tensorflow/lite/NativeInterpreterWrapper.java diff --git a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/Tensor.java b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/Tensor.java similarity index 100% rename from tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/Tensor.java rename to tensorflow/lite/java/src/main/java/org/tensorflow/lite/Tensor.java diff --git a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/TensorFlowLite.java b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/TensorFlowLite.java similarity index 100% rename from tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/TensorFlowLite.java rename to tensorflow/lite/java/src/main/java/org/tensorflow/lite/TensorFlowLite.java diff --git a/tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/package-info.java b/tensorflow/lite/java/src/main/java/org/tensorflow/lite/package-info.java similarity index 100% rename from tensorflow/contrib/lite/java/src/main/java/org/tensorflow/lite/package-info.java rename to tensorflow/lite/java/src/main/java/org/tensorflow/lite/package-info.java diff --git a/tensorflow/contrib/lite/java/src/main/native/BUILD b/tensorflow/lite/java/src/main/native/BUILD similarity index 90% rename from tensorflow/contrib/lite/java/src/main/native/BUILD rename to tensorflow/lite/java/src/main/native/BUILD index f91345f369fe118839cd6e28032b36c346008f58..2abba24345824c1c47d5a5e9589924b78eca9e64 100644 --- a/tensorflow/contrib/lite/java/src/main/native/BUILD +++ b/tensorflow/lite/java/src/main/native/BUILD @@ -4,7 +4,7 @@ package(default_visibility = ["//visibility:public"]) -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") licenses(["notice"]) # Apache 2.0 @@ -40,9 +40,9 @@ cc_library( "-ldl", ], deps = [ - "//tensorflow/contrib/lite:context", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:schema_fbs_version", + "//tensorflow/lite:context", + "//tensorflow/lite:framework", + "//tensorflow/lite:schema_fbs_version", ], alwayslink = 1, ) @@ -99,7 +99,7 @@ cc_library( "-ldl", ], deps = [ - "//tensorflow/contrib/lite/testing:init_tensorflow", + "//tensorflow/lite/testing:init_tensorflow", ], alwayslink = 1, ) @@ -115,7 +115,7 @@ cc_library( copts = tflite_copts(), deps = [ ":native_framework_only", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite/kernels:builtin_ops", ], alwayslink = 1, ) diff --git a/tensorflow/contrib/lite/java/src/main/native/builtin_ops_jni.cc b/tensorflow/lite/java/src/main/native/builtin_ops_jni.cc similarity index 95% rename from tensorflow/contrib/lite/java/src/main/native/builtin_ops_jni.cc rename to tensorflow/lite/java/src/main/native/builtin_ops_jni.cc index cce356370fa770de3e44438f08470077fb07c04c..95bc0a4fa8d1d4c31b03c92d220c7a49b52baa58 100644 --- a/tensorflow/contrib/lite/java/src/main/native/builtin_ops_jni.cc +++ b/tensorflow/lite/java/src/main/native/builtin_ops_jni.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/register.h" +#include "tensorflow/lite/kernels/register.h" namespace tflite { diff --git a/tensorflow/contrib/lite/java/src/main/native/exception_jni.cc b/tensorflow/lite/java/src/main/native/exception_jni.cc similarity index 96% rename from tensorflow/contrib/lite/java/src/main/native/exception_jni.cc rename to tensorflow/lite/java/src/main/native/exception_jni.cc index 18d177f1a6d49a3365a9593cb8d410305559f5fe..5406c7197f0c6ba6fd17c3472a365ef2d56d07a4 100644 --- a/tensorflow/contrib/lite/java/src/main/native/exception_jni.cc +++ b/tensorflow/lite/java/src/main/native/exception_jni.cc @@ -17,7 +17,7 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/java/src/main/native/exception_jni.h" +#include "tensorflow/lite/java/src/main/native/exception_jni.h" const char kIllegalArgumentException[] = "java/lang/IllegalArgumentException"; const char kIllegalStateException[] = "java/lang/IllegalStateException"; diff --git a/tensorflow/contrib/lite/java/src/main/native/exception_jni.h b/tensorflow/lite/java/src/main/native/exception_jni.h similarity index 84% rename from tensorflow/contrib/lite/java/src/main/native/exception_jni.h rename to tensorflow/lite/java/src/main/native/exception_jni.h index 2a4bbdbeadcc64d76dc60a9e2642557bfd899bec..ebd91e875b5b58b675eb2c2c613260cb1df91e84 100644 --- a/tensorflow/contrib/lite/java/src/main/native/exception_jni.h +++ b/tensorflow/lite/java/src/main/native/exception_jni.h @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_EXCEPTION_JNI_H_ -#define TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_EXCEPTION_JNI_H_ +#ifndef TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_EXCEPTION_JNI_H_ +#define TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_EXCEPTION_JNI_H_ #include -#include "tensorflow/contrib/lite/error_reporter.h" +#include "tensorflow/lite/error_reporter.h" #ifdef __cplusplus extern "C" { @@ -47,4 +47,4 @@ class BufferErrorReporter : public tflite::ErrorReporter { #ifdef __cplusplus } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_EXCEPTION_JNI_H_ +#endif // TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_EXCEPTION_JNI_H_ diff --git a/tensorflow/contrib/lite/java/src/main/native/init_tensorflow_jni.cc b/tensorflow/lite/java/src/main/native/init_tensorflow_jni.cc similarity index 85% rename from tensorflow/contrib/lite/java/src/main/native/init_tensorflow_jni.cc rename to tensorflow/lite/java/src/main/native/init_tensorflow_jni.cc index 74aa384df30334ec09cb8e0813d4f6bc94210a4d..1fa9d1f50e50d23945ea4003b3218e7a3f04c83a 100644 --- a/tensorflow/contrib/lite/java/src/main/native/init_tensorflow_jni.cc +++ b/tensorflow/lite/java/src/main/native/init_tensorflow_jni.cc @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/java/src/main/native/init_tensorflow_jni.h" -#include "tensorflow/contrib/lite/testing/init_tensorflow.h" +#include "tensorflow/lite/java/src/main/native/init_tensorflow_jni.h" +#include "tensorflow/lite/testing/init_tensorflow.h" JNIEXPORT void JNICALL Java_org_tensorflow_lite_TensorFlowLite_initTensorFlow( JNIEnv* env, jclass clazz) { diff --git a/tensorflow/contrib/lite/java/src/main/native/init_tensorflow_jni.h b/tensorflow/lite/java/src/main/native/init_tensorflow_jni.h similarity index 81% rename from tensorflow/contrib/lite/java/src/main/native/init_tensorflow_jni.h rename to tensorflow/lite/java/src/main/native/init_tensorflow_jni.h index 4689eb05fedcf86e76c9ddef8b58f4fc67ffc5bd..1454d6d4633d4f2d8aa695f637bcec024208b176 100644 --- a/tensorflow/contrib/lite/java/src/main/native/init_tensorflow_jni.h +++ b/tensorflow/lite/java/src/main/native/init_tensorflow_jni.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_INIT_TENSORFLOW_JNI_H_ -#define TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_INIT_TENSORFLOW_JNI_H_ +#ifndef TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_INIT_TENSORFLOW_JNI_H_ +#define TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_INIT_TENSORFLOW_JNI_H_ #include @@ -33,4 +33,4 @@ JNIEXPORT void JNICALL Java_org_tensorflow_lite_TensorFlowLite_initTensorFlow( } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_INIT_TENSORFLOW_JNI_H_ +#endif // TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_INIT_TENSORFLOW_JNI_H_ diff --git a/tensorflow/contrib/lite/java/src/main/native/nativeinterpreterwrapper_jni.cc b/tensorflow/lite/java/src/main/native/nativeinterpreterwrapper_jni.cc similarity index 99% rename from tensorflow/contrib/lite/java/src/main/native/nativeinterpreterwrapper_jni.cc rename to tensorflow/lite/java/src/main/native/nativeinterpreterwrapper_jni.cc index 83c6c9cb456f24675373edca5490fa240906a811..100eb81510d7374c03c6a225a4a919a30c94aa58 100644 --- a/tensorflow/contrib/lite/java/src/main/native/nativeinterpreterwrapper_jni.cc +++ b/tensorflow/lite/java/src/main/native/nativeinterpreterwrapper_jni.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/java/src/main/native/nativeinterpreterwrapper_jni.h" +#include "tensorflow/lite/java/src/main/native/nativeinterpreterwrapper_jni.h" namespace { tflite::Interpreter* convertLongToInterpreter(JNIEnv* env, jlong handle) { diff --git a/tensorflow/contrib/lite/java/src/main/native/nativeinterpreterwrapper_jni.h b/tensorflow/lite/java/src/main/native/nativeinterpreterwrapper_jni.h similarity index 93% rename from tensorflow/contrib/lite/java/src/main/native/nativeinterpreterwrapper_jni.h rename to tensorflow/lite/java/src/main/native/nativeinterpreterwrapper_jni.h index 5086bf8c2825fc49371c0edc09438a690dd92e16..e184b8f1a783d56c803ac0619b323a62491ba93f 100644 --- a/tensorflow/contrib/lite/java/src/main/native/nativeinterpreterwrapper_jni.h +++ b/tensorflow/lite/java/src/main/native/nativeinterpreterwrapper_jni.h @@ -13,18 +13,18 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_NATIVEINTERPRETERWRAPPER_JNI_H_ -#define TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_NATIVEINTERPRETERWRAPPER_JNI_H_ +#ifndef TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_NATIVEINTERPRETERWRAPPER_JNI_H_ +#define TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_NATIVEINTERPRETERWRAPPER_JNI_H_ #include #include #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/java/src/main/native/exception_jni.h" -#include "tensorflow/contrib/lite/java/src/main/native/tensor_jni.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/java/src/main/native/exception_jni.h" +#include "tensorflow/lite/java/src/main/native/tensor_jni.h" +#include "tensorflow/lite/model.h" namespace tflite { // This is to be provided at link-time by a library. @@ -245,4 +245,4 @@ JNIEXPORT void JNICALL Java_org_tensorflow_lite_NativeInterpreterWrapper_delete( #ifdef __cplusplus } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_NATIVEINTERPRETERWRAPPER_JNI_H_ +#endif // TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_NATIVEINTERPRETERWRAPPER_JNI_H_ diff --git a/tensorflow/contrib/lite/java/src/main/native/tensor_jni.cc b/tensorflow/lite/java/src/main/native/tensor_jni.cc similarity index 98% rename from tensorflow/contrib/lite/java/src/main/native/tensor_jni.cc rename to tensorflow/lite/java/src/main/native/tensor_jni.cc index d3378f5f145deef375b38777fa27046993e15a6c..1d813d50da44de07d4b9238f53dca432330eb3ae 100644 --- a/tensorflow/contrib/lite/java/src/main/native/tensor_jni.cc +++ b/tensorflow/lite/java/src/main/native/tensor_jni.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/java/src/main/native/tensor_jni.h" +#include "tensorflow/lite/java/src/main/native/tensor_jni.h" #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/java/src/main/native/exception_jni.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/java/src/main/native/exception_jni.h" namespace { diff --git a/tensorflow/contrib/lite/java/src/main/native/tensor_jni.h b/tensorflow/lite/java/src/main/native/tensor_jni.h similarity index 93% rename from tensorflow/contrib/lite/java/src/main/native/tensor_jni.h rename to tensorflow/lite/java/src/main/native/tensor_jni.h index c5e9690e9a04bac8be9c047fa6e8a8251879711b..ec0442e93f6f9d8b7e90eb1cf6b6556abac0097b 100644 --- a/tensorflow/contrib/lite/java/src/main/native/tensor_jni.h +++ b/tensorflow/lite/java/src/main/native/tensor_jni.h @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_TENSOR_JNI_H_ -#define TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_TENSOR_JNI_H_ +#ifndef TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_TENSOR_JNI_H_ +#define TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_TENSOR_JNI_H_ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" #ifdef __cplusplus extern "C" { @@ -109,4 +109,4 @@ Java_org_tensorflow_lite_Tensor_writeMultiDimensionalArray(JNIEnv* env, #ifdef __cplusplus } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_TENSOR_JNI_H_ +#endif // TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_TENSOR_JNI_H_ diff --git a/tensorflow/contrib/lite/java/src/main/native/tensorflow_lite_jni.cc b/tensorflow/lite/java/src/main/native/tensorflow_lite_jni.cc similarity index 88% rename from tensorflow/contrib/lite/java/src/main/native/tensorflow_lite_jni.cc rename to tensorflow/lite/java/src/main/native/tensorflow_lite_jni.cc index 2e7f2f56921b871a6ace2b6cb984fcd185a4d2ab..2b8cf4201cea950f0c8698e07787a185a179ac03 100644 --- a/tensorflow/contrib/lite/java/src/main/native/tensorflow_lite_jni.cc +++ b/tensorflow/lite/java/src/main/native/tensorflow_lite_jni.cc @@ -15,8 +15,8 @@ limitations under the License. #include -#include "tensorflow/contrib/lite/java/src/main/native/tensorflow_lite_jni.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/java/src/main/native/tensorflow_lite_jni.h" +#include "tensorflow/lite/version.h" JNIEXPORT jstring JNICALL Java_org_tensorflow_lite_TensorFlowLite_version(JNIEnv* env, jclass /*clazz*/) { diff --git a/tensorflow/contrib/lite/java/src/main/native/tensorflow_lite_jni.h b/tensorflow/lite/java/src/main/native/tensorflow_lite_jni.h similarity index 81% rename from tensorflow/contrib/lite/java/src/main/native/tensorflow_lite_jni.h rename to tensorflow/lite/java/src/main/native/tensorflow_lite_jni.h index 5e2a7ded1b495ed349b90d6ad440b0358a5b377f..de3e703110c455ceec9e1ed944318b9c0916ab1e 100644 --- a/tensorflow/contrib/lite/java/src/main/native/tensorflow_lite_jni.h +++ b/tensorflow/lite/java/src/main/native/tensorflow_lite_jni.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_TENSORFLOW_LITE_JNI_H_ -#define TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_TENSORFLOW_LITE_JNI_H_ +#ifndef TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_TENSORFLOW_LITE_JNI_H_ +#define TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_TENSORFLOW_LITE_JNI_H_ #include @@ -33,4 +33,4 @@ Java_org_tensorflow_lite_TensorFlowLite_version(JNIEnv*, jclass); #ifdef __cplusplus } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_JAVA_SRC_MAIN_NATIVE_TENSORFLOW_LITE_JNI_H_ +#endif // TENSORFLOW_LITE_JAVA_SRC_MAIN_NATIVE_TENSORFLOW_LITE_JNI_H_ diff --git a/tensorflow/contrib/lite/java/src/main/native/version_script.lds b/tensorflow/lite/java/src/main/native/version_script.lds similarity index 100% rename from tensorflow/contrib/lite/java/src/main/native/version_script.lds rename to tensorflow/lite/java/src/main/native/version_script.lds diff --git a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/DataTypeTest.java b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/DataTypeTest.java similarity index 100% rename from tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/DataTypeTest.java rename to tensorflow/lite/java/src/test/java/org/tensorflow/lite/DataTypeTest.java diff --git a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterFlexTest.java b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/InterpreterFlexTest.java similarity index 96% rename from tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterFlexTest.java rename to tensorflow/lite/java/src/test/java/org/tensorflow/lite/InterpreterFlexTest.java index 3b3d9f0e7fc0706c35045b85b316bcb16296cd90..b22399a4a47dcf0b625be5d0c86e6fe07f920144 100644 --- a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterFlexTest.java +++ b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/InterpreterFlexTest.java @@ -30,7 +30,7 @@ import org.junit.runners.JUnit4; public final class InterpreterFlexTest { private static final File FLEX_MODEL_FILE = - new File("tensorflow/contrib/lite/testdata/multi_add_flex.bin"); + new File("tensorflow/lite/testdata/multi_add_flex.bin"); /** Smoke test validating that flex model loading works when the flex delegate is linked. */ @Test diff --git a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java similarity index 98% rename from tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java rename to tensorflow/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java index d5e0347402a4e768c459018504ebff223aaab63b..612229d172736a6e80a585d4c987b4e0691f9197 100644 --- a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java +++ b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/InterpreterTest.java @@ -38,13 +38,13 @@ import org.junit.runners.JUnit4; public final class InterpreterTest { private static final File MODEL_FILE = - new File("tensorflow/contrib/lite/java/src/testdata/add.bin"); + new File("tensorflow/lite/java/src/testdata/add.bin"); private static final File MOBILENET_MODEL_FILE = - new File("tensorflow/contrib/lite/java/src/testdata/mobilenet.tflite.bin"); + new File("tensorflow/lite/java/src/testdata/mobilenet.tflite.bin"); private static final File FLEX_MODEL_FILE = - new File("tensorflow/contrib/lite/testdata/multi_add_flex.bin"); + new File("tensorflow/lite/testdata/multi_add_flex.bin"); @Test public void testInterpreter() throws Exception { diff --git a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/NativeInterpreterWrapperTest.java b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/NativeInterpreterWrapperTest.java similarity index 97% rename from tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/NativeInterpreterWrapperTest.java rename to tensorflow/lite/java/src/test/java/org/tensorflow/lite/NativeInterpreterWrapperTest.java index 270bd6703a101db39202ca03e700138fcc237932..07d334c33b233705df167eeafb80496b04730b18 100644 --- a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/NativeInterpreterWrapperTest.java +++ b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/NativeInterpreterWrapperTest.java @@ -32,28 +32,28 @@ import org.junit.runners.JUnit4; public final class NativeInterpreterWrapperTest { private static final String FLOAT_MODEL_PATH = - "tensorflow/contrib/lite/java/src/testdata/add.bin"; + "tensorflow/lite/java/src/testdata/add.bin"; private static final String INT_MODEL_PATH = - "tensorflow/contrib/lite/java/src/testdata/int32.bin"; + "tensorflow/lite/java/src/testdata/int32.bin"; private static final String LONG_MODEL_PATH = - "tensorflow/contrib/lite/java/src/testdata/int64.bin"; + "tensorflow/lite/java/src/testdata/int64.bin"; private static final String BYTE_MODEL_PATH = - "tensorflow/contrib/lite/java/src/testdata/uint8.bin"; + "tensorflow/lite/java/src/testdata/uint8.bin"; private static final String QUANTIZED_MODEL_PATH = - "tensorflow/contrib/lite/java/src/testdata/quantized.bin"; + "tensorflow/lite/java/src/testdata/quantized.bin"; private static final String INVALID_MODEL_PATH = - "tensorflow/contrib/lite/java/src/testdata/invalid_model.bin"; + "tensorflow/lite/java/src/testdata/invalid_model.bin"; private static final String MODEL_WITH_CUSTOM_OP_PATH = - "tensorflow/contrib/lite/java/src/testdata/with_custom_op.lite"; + "tensorflow/lite/java/src/testdata/with_custom_op.lite"; private static final String NONEXISTING_MODEL_PATH = - "tensorflow/contrib/lite/java/src/testdata/nonexisting_model.bin"; + "tensorflow/lite/java/src/testdata/nonexisting_model.bin"; @Test public void testConstructor() { diff --git a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/TensorFlowLiteTest.java b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/TensorFlowLiteTest.java similarity index 100% rename from tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/TensorFlowLiteTest.java rename to tensorflow/lite/java/src/test/java/org/tensorflow/lite/TensorFlowLiteTest.java diff --git a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/TensorTest.java b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/TensorTest.java similarity index 99% rename from tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/TensorTest.java rename to tensorflow/lite/java/src/test/java/org/tensorflow/lite/TensorTest.java index 56a38ea3e225e9d11d36f9fcfe58a3cc8f280ac2..35ff4328b83e3b6bfc83c2bedf3f20c4ebed9b89 100644 --- a/tensorflow/contrib/lite/java/src/test/java/org/tensorflow/lite/TensorTest.java +++ b/tensorflow/lite/java/src/test/java/org/tensorflow/lite/TensorTest.java @@ -33,7 +33,7 @@ import org.junit.runners.JUnit4; public final class TensorTest { private static final String MODEL_PATH = - "tensorflow/contrib/lite/java/src/testdata/add.bin"; + "tensorflow/lite/java/src/testdata/add.bin"; private NativeInterpreterWrapper wrapper; private Tensor tensor; diff --git a/tensorflow/contrib/lite/java/src/test/native/BUILD b/tensorflow/lite/java/src/test/native/BUILD similarity index 70% rename from tensorflow/contrib/lite/java/src/test/native/BUILD rename to tensorflow/lite/java/src/test/native/BUILD index 17a10587dc35559cca8b2ea61efcd7bd2c7a1487..27fc95f1f7f8d28c6e5eb23e63bac2498bccbde3 100644 --- a/tensorflow/contrib/lite/java/src/test/native/BUILD +++ b/tensorflow/lite/java/src/test/native/BUILD @@ -5,7 +5,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Apache 2.0 -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_jni_binary") +load("//tensorflow/lite:build_def.bzl", "tflite_jni_binary") cc_library( name = "native", @@ -17,11 +17,11 @@ cc_library( # For non-Android toolchains, generate jni.h and jni_md.h. "//tensorflow:android": [], "//conditions:default": [ - "//tensorflow/contrib/lite/java/src/main/native:jni.h", - "//tensorflow/contrib/lite/java/src/main/native:jni_md.h", + "//tensorflow/lite/java/src/main/native:jni.h", + "//tensorflow/lite/java/src/main/native:jni_md.h", ], }), - deps = ["//tensorflow/contrib/lite/c:c_api_internal"], + deps = ["//tensorflow/lite/c:c_api_internal"], ) tflite_jni_binary( diff --git a/tensorflow/contrib/lite/java/src/test/native/interpreter_test_jni.cc b/tensorflow/lite/java/src/test/native/interpreter_test_jni.cc similarity index 98% rename from tensorflow/contrib/lite/java/src/test/native/interpreter_test_jni.cc rename to tensorflow/lite/java/src/test/native/interpreter_test_jni.cc index 6aad4973f778af22388db464f7ad6f2b36de8cee..954b1144f2d950d9ed27604da6cabdead0f714c6 100644 --- a/tensorflow/contrib/lite/java/src/test/native/interpreter_test_jni.cc +++ b/tensorflow/lite/java/src/test/native/interpreter_test_jni.cc @@ -14,7 +14,7 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" #ifdef __cplusplus extern "C" { diff --git a/tensorflow/contrib/lite/java/src/testdata/add.bin b/tensorflow/lite/java/src/testdata/add.bin similarity index 100% rename from tensorflow/contrib/lite/java/src/testdata/add.bin rename to tensorflow/lite/java/src/testdata/add.bin diff --git a/tensorflow/contrib/lite/java/src/testdata/float32.bin b/tensorflow/lite/java/src/testdata/float32.bin similarity index 100% rename from tensorflow/contrib/lite/java/src/testdata/float32.bin rename to tensorflow/lite/java/src/testdata/float32.bin diff --git a/tensorflow/contrib/lite/java/src/testdata/int32.bin b/tensorflow/lite/java/src/testdata/int32.bin similarity index 100% rename from tensorflow/contrib/lite/java/src/testdata/int32.bin rename to tensorflow/lite/java/src/testdata/int32.bin diff --git a/tensorflow/contrib/lite/java/src/testdata/int64.bin b/tensorflow/lite/java/src/testdata/int64.bin similarity index 100% rename from tensorflow/contrib/lite/java/src/testdata/int64.bin rename to tensorflow/lite/java/src/testdata/int64.bin diff --git a/tensorflow/contrib/lite/java/src/testdata/invalid_model.bin b/tensorflow/lite/java/src/testdata/invalid_model.bin similarity index 100% rename from tensorflow/contrib/lite/java/src/testdata/invalid_model.bin rename to tensorflow/lite/java/src/testdata/invalid_model.bin diff --git a/tensorflow/contrib/lite/java/src/testdata/quantized.bin b/tensorflow/lite/java/src/testdata/quantized.bin similarity index 100% rename from tensorflow/contrib/lite/java/src/testdata/quantized.bin rename to tensorflow/lite/java/src/testdata/quantized.bin diff --git a/tensorflow/contrib/lite/java/src/testdata/uint8.bin b/tensorflow/lite/java/src/testdata/uint8.bin similarity index 100% rename from tensorflow/contrib/lite/java/src/testdata/uint8.bin rename to tensorflow/lite/java/src/testdata/uint8.bin diff --git a/tensorflow/contrib/lite/java/src/testdata/with_custom_op.lite b/tensorflow/lite/java/src/testdata/with_custom_op.lite similarity index 100% rename from tensorflow/contrib/lite/java/src/testdata/with_custom_op.lite rename to tensorflow/lite/java/src/testdata/with_custom_op.lite diff --git a/tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD b/tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD similarity index 85% rename from tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD rename to tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD index af1d99ef41e6413d8ef2c6f478aaa8f9e3931ff8..88641c86ed64e7e8fe33c0abe017fb372cce74b7 100644 --- a/tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD +++ b/tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/BUILD @@ -15,6 +15,6 @@ android_library( ], ), deps = [ - "//tensorflow/contrib/lite/java:tensorflowlite_java", + "//tensorflow/lite/java:tensorflowlite_java", ], ) diff --git a/tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite/TestHelper.java b/tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/TestHelper.java similarity index 100% rename from tensorflow/contrib/lite/java/src/testhelper/java/org/tensorflow/lite/TestHelper.java rename to tensorflow/lite/java/src/testhelper/java/org/tensorflow/lite/TestHelper.java diff --git a/tensorflow/contrib/lite/kernels/BUILD b/tensorflow/lite/kernels/BUILD similarity index 68% rename from tensorflow/contrib/lite/kernels/BUILD rename to tensorflow/lite/kernels/BUILD index 363e7ed2e821970eb9a2a6e7ae824712b1825c79..010ba834661f7df7856cd7d2eebe396ba8746987 100644 --- a/tensorflow/contrib/lite/kernels/BUILD +++ b/tensorflow/lite/kernels/BUILD @@ -4,8 +4,8 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") -load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") load("//tensorflow:tensorflow.bzl", "tf_cc_test", "tf_opts_nortti_if_android") # Suppress warnings that are introduced by Eigen Tensor. @@ -31,8 +31,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -44,12 +44,12 @@ cc_library( hdrs = ["test_util.h"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels/internal:tensor_utils", - "//tensorflow/contrib/lite/testing:util", "//tensorflow/core:tflite_portable_logging", + "//tensorflow/lite:framework", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels/internal:tensor_utils", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -65,9 +65,9 @@ cc_library( copts = tflite_copts() + EXTRA_EIGEN_COPTS, deps = [ ":op_macros", - "//tensorflow/contrib/lite:arena_planner", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels/internal:optimized", + "//tensorflow/lite:arena_planner", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels/internal:optimized", ], ) @@ -82,7 +82,7 @@ cc_library( copts = tflite_copts(), deps = [ ":op_macros", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", "@gemmlowp", ], ) @@ -93,7 +93,7 @@ cc_library( "activation_functor.h", ], deps = [ - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ], ) @@ -113,9 +113,9 @@ cc_library( "kernel_util.h", ], deps = [ - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels/internal:round", - "//tensorflow/contrib/lite/kernels/internal:types", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels/internal:round", + "//tensorflow/lite/kernels/internal:types", ], ) @@ -129,7 +129,7 @@ tf_cc_test( ], deps = [ ":kernel_util", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -144,7 +144,7 @@ tf_cc_test( ], deps = [ ":test_util", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -154,7 +154,7 @@ cc_library( srcs = [], hdrs = ["padding.h"], deps = [ - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ], ) @@ -243,18 +243,18 @@ cc_library( ":lstm_eval", ":op_macros", ":padding", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:gemm_support", - "//tensorflow/contrib/lite/kernels/internal:audio_utils", - "//tensorflow/contrib/lite/kernels/internal:kernel_utils", - "//tensorflow/contrib/lite/kernels/internal:optimized", - "//tensorflow/contrib/lite/kernels/internal:optimized_base", - "//tensorflow/contrib/lite/kernels/internal:quantization_util", - "//tensorflow/contrib/lite/kernels/internal:reference_base", - "//tensorflow/contrib/lite/kernels/internal:tensor", - "//tensorflow/contrib/lite/kernels/internal:tensor_utils", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:gemm_support", + "//tensorflow/lite/kernels/internal:audio_utils", + "//tensorflow/lite/kernels/internal:kernel_utils", + "//tensorflow/lite/kernels/internal:optimized", + "//tensorflow/lite/kernels/internal:optimized_base", + "//tensorflow/lite/kernels/internal:quantization_util", + "//tensorflow/lite/kernels/internal:reference_base", + "//tensorflow/lite/kernels/internal:tensor", + "//tensorflow/lite/kernels/internal:tensor_utils", "@farmhash_archive//:farmhash", "@flatbuffers", ], @@ -266,9 +266,9 @@ cc_library( hdrs = ["lstm_eval.h"], deps = [ ":op_macros", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels/internal:kernel_utils", - "//tensorflow/contrib/lite/kernels/internal:tensor_utils", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels/internal:kernel_utils", + "//tensorflow/lite/kernels/internal:tensor_utils", ], ) @@ -278,9 +278,9 @@ cc_library( hdrs = ["register.h"], deps = [ ":builtin_op_kernels", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:util", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite:framework", + "//tensorflow/lite:util", + "//tensorflow/lite/c:c_api_internal", ], ) @@ -294,8 +294,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@flatbuffers", ], @@ -311,8 +311,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@flatbuffers", ], @@ -328,8 +328,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@flatbuffers", ], @@ -345,8 +345,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@flatbuffers", ], @@ -362,8 +362,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@flatbuffers", ], @@ -376,8 +376,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -389,8 +389,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -405,8 +405,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -421,8 +421,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -437,8 +437,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -453,10 +453,10 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", - "//tensorflow/contrib/lite/kernels/internal:reference", - "//tensorflow/contrib/lite/kernels/internal:reference_base", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", + "//tensorflow/lite/kernels/internal:reference", + "//tensorflow/lite/kernels/internal:reference_base", "@com_google_googletest//:gtest", ], ) @@ -471,8 +471,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -487,8 +487,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -503,8 +503,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -516,8 +516,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -529,8 +529,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_absl//absl/memory", "@com_google_googletest//:gtest", ], @@ -543,8 +543,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_absl//absl/memory", "@com_google_googletest//:gtest", ], @@ -560,8 +560,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_absl//absl/memory", "@com_google_googletest//:gtest", ], @@ -574,8 +574,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -590,9 +590,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", - "//tensorflow/contrib/lite/schema:schema_fbs", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", + "//tensorflow/lite/schema:schema_fbs", "@com_google_googletest//:gtest", ], ) @@ -607,8 +607,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -623,8 +623,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -639,8 +639,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -655,8 +655,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -671,8 +671,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -684,8 +684,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -700,8 +700,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -716,8 +716,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -732,8 +732,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -748,8 +748,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -761,8 +761,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -777,8 +777,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -790,8 +790,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -806,9 +806,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -823,9 +823,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -837,8 +837,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -850,8 +850,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -863,8 +863,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -876,8 +876,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -889,8 +889,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -902,9 +902,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", - "//tensorflow/contrib/lite/kernels/internal:tensor_utils", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", + "//tensorflow/lite/kernels/internal:tensor_utils", "@com_google_absl//absl/memory", "@com_google_googletest//:gtest", ], @@ -917,8 +917,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -930,8 +930,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -943,9 +943,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", - "//tensorflow/contrib/lite/kernels/internal:reference_base", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", + "//tensorflow/lite/kernels/internal:reference_base", "@com_google_googletest//:gtest", ], ) @@ -960,9 +960,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", - "//tensorflow/contrib/lite/kernels/internal:reference_base", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", + "//tensorflow/lite/kernels/internal:reference_base", "@com_google_googletest//:gtest", ], ) @@ -974,8 +974,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -987,9 +987,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1001,8 +1001,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@flatbuffers", ], @@ -1015,8 +1015,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1028,9 +1028,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1042,8 +1042,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1058,8 +1058,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1074,8 +1074,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1090,8 +1090,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1106,9 +1106,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1125,8 +1125,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1141,8 +1141,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1159,8 +1159,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1177,8 +1177,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1193,8 +1193,8 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_absl//absl/memory", "@com_google_googletest//:gtest", ], @@ -1210,9 +1210,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1227,9 +1227,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1244,9 +1244,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1261,9 +1261,9 @@ tf_cc_test( ], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1275,9 +1275,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1289,8 +1289,8 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1302,9 +1302,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1316,9 +1316,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1330,9 +1330,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1344,9 +1344,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1358,9 +1358,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -1372,9 +1372,9 @@ tf_cc_test( tags = ["tflite_not_portable_ios"], deps = [ ":builtin_ops", - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/kernels/activation_functor.h b/tensorflow/lite/kernels/activation_functor.h similarity index 86% rename from tensorflow/contrib/lite/kernels/activation_functor.h rename to tensorflow/lite/kernels/activation_functor.h index e075dc705410bb3e0dd2a4fc9c626107529817cf..60e93c185a9c07a4d63cf233625df475a6a3f67a 100644 --- a/tensorflow/contrib/lite/kernels/activation_functor.h +++ b/tensorflow/lite/kernels/activation_functor.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_ACTIVATION_FUNCTOR_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_ACTIVATION_FUNCTOR_H_ +#ifndef TENSORFLOW_LITE_KERNELS_ACTIVATION_FUNCTOR_H_ +#define TENSORFLOW_LITE_KERNELS_ACTIVATION_FUNCTOR_H_ #include #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" namespace tflite { @@ -55,4 +55,4 @@ class ActivationFunctor { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_ACTIVATION_FUNCTOR_H_ +#endif // TENSORFLOW_LITE_KERNELS_ACTIVATION_FUNCTOR_H_ diff --git a/tensorflow/contrib/lite/kernels/activations.cc b/tensorflow/lite/kernels/activations.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/activations.cc rename to tensorflow/lite/kernels/activations.cc index 9aed4f09b82cc0ac70c68a4da46706a6244084aa..9c525d964077eb7007a27a004786961e67ea21dd 100644 --- a/tensorflow/contrib/lite/kernels/activations.cc +++ b/tensorflow/lite/kernels/activations.cc @@ -19,14 +19,14 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/activations_test.cc b/tensorflow/lite/kernels/activations_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/activations_test.cc rename to tensorflow/lite/kernels/activations_test.cc index 9fa47e190a1dc797264e31979b9a6603ce8c5498..fff4121dc0c265d9dc3fe50521683b0be4ab4f94 100644 --- a/tensorflow/contrib/lite/kernels/activations_test.cc +++ b/tensorflow/lite/kernels/activations_test.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/add.cc b/tensorflow/lite/kernels/add.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/add.cc rename to tensorflow/lite/kernels/add.cc index b4393e8097f7f5e28e654269371a54097333c75f..f4bfd8d32481789a1ea706ec7c7fe8de06e9f5bc 100644 --- a/tensorflow/contrib/lite/kernels/add.cc +++ b/tensorflow/lite/kernels/add.cc @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/add_test.cc b/tensorflow/lite/kernels/add_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/add_test.cc rename to tensorflow/lite/kernels/add_test.cc index 261dd36ef0c517bd7880f79948b8ac9682f9bab4..1d33adf1999ecde581badf041276ec15b4370689 100644 --- a/tensorflow/contrib/lite/kernels/add_test.cc +++ b/tensorflow/lite/kernels/add_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/arg_min_max.cc b/tensorflow/lite/kernels/arg_min_max.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/arg_min_max.cc rename to tensorflow/lite/kernels/arg_min_max.cc index 531f4e1f1b057f2ca387f50718454aff9188a874..eea2de27f74af8bf73df92c28ed6042e4d8fa4ff 100644 --- a/tensorflow/contrib/lite/kernels/arg_min_max.cc +++ b/tensorflow/lite/kernels/arg_min_max.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/arg_min_max_test.cc b/tensorflow/lite/kernels/arg_min_max_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/arg_min_max_test.cc rename to tensorflow/lite/kernels/arg_min_max_test.cc index c8181efc360c7f5e12faa3367e8f66a86b642817..dcdff74cc6f376b3418b64c025e8eb4a36c429a0 100644 --- a/tensorflow/contrib/lite/kernels/arg_min_max_test.cc +++ b/tensorflow/lite/kernels/arg_min_max_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/audio_spectrogram.cc b/tensorflow/lite/kernels/audio_spectrogram.cc similarity index 91% rename from tensorflow/contrib/lite/kernels/audio_spectrogram.cc rename to tensorflow/lite/kernels/audio_spectrogram.cc index 0d2d5e775f82a281cedcd9abd1541820246b8299..5a995b31ca5e6f2c6666df1bbb539a1bd538a511 100644 --- a/tensorflow/contrib/lite/kernels/audio_spectrogram.cc +++ b/tensorflow/lite/kernels/audio_spectrogram.cc @@ -13,14 +13,14 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/spectrogram.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/spectrogram.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" #include "flatbuffers/flexbuffers.h" // TF:flatbuffers diff --git a/tensorflow/contrib/lite/kernels/audio_spectrogram_test.cc b/tensorflow/lite/kernels/audio_spectrogram_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/audio_spectrogram_test.cc rename to tensorflow/lite/kernels/audio_spectrogram_test.cc index 7e4ff6fc16f26d74d6decab9bc534accc8607a19..527af2767b1bfbc7995252d3f2f307ac4fb46671 100644 --- a/tensorflow/contrib/lite/kernels/audio_spectrogram_test.cc +++ b/tensorflow/lite/kernels/audio_spectrogram_test.cc @@ -19,10 +19,10 @@ limitations under the License. #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/basic_rnn.cc b/tensorflow/lite/kernels/basic_rnn.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/basic_rnn.cc rename to tensorflow/lite/kernels/basic_rnn.cc index 7ec92ad401cc15def82c3a5df7ce14f65c377773..7c66ce1992f4c341d7518742cd209a53fa1de16b 100644 --- a/tensorflow/contrib/lite/kernels/basic_rnn.cc +++ b/tensorflow/lite/kernels/basic_rnn.cc @@ -15,12 +15,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/internal/kernel_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/internal/kernel_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/basic_rnn_test.cc b/tensorflow/lite/kernels/basic_rnn_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/basic_rnn_test.cc rename to tensorflow/lite/kernels/basic_rnn_test.cc index d1797354044c2f2086f1af0cffb7f1edff65f24c..240057d18a176dbb77e4962b48493c1a8d2dddab 100644 --- a/tensorflow/contrib/lite/kernels/basic_rnn_test.cc +++ b/tensorflow/lite/kernels/basic_rnn_test.cc @@ -21,10 +21,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/batch_to_space_nd.cc b/tensorflow/lite/kernels/batch_to_space_nd.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/batch_to_space_nd.cc rename to tensorflow/lite/kernels/batch_to_space_nd.cc index fe2865dfb9a9934962dfb1c4c2f7f8817815b3f9..34fdf34f70c9660266e23260bd5a6b645a3c5ccb 100644 --- a/tensorflow/contrib/lite/kernels/batch_to_space_nd.cc +++ b/tensorflow/lite/kernels/batch_to_space_nd.cc @@ -14,13 +14,13 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/batch_to_space_nd_test.cc b/tensorflow/lite/kernels/batch_to_space_nd_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/batch_to_space_nd_test.cc rename to tensorflow/lite/kernels/batch_to_space_nd_test.cc index 95b025c1b30cc627cf5858ec17f8ff7c57f7bd95..a3e06d4c89327050625ac514d41bc29c4f6493f3 100644 --- a/tensorflow/contrib/lite/kernels/batch_to_space_nd_test.cc +++ b/tensorflow/lite/kernels/batch_to_space_nd_test.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/bidirectional_sequence_lstm.cc b/tensorflow/lite/kernels/bidirectional_sequence_lstm.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/bidirectional_sequence_lstm.cc rename to tensorflow/lite/kernels/bidirectional_sequence_lstm.cc index f8660fbaa237e827ad5d2a3fbfeada114ca5df82..2c345bba69e4879586c6204dab21c1d28e404870 100644 --- a/tensorflow/contrib/lite/kernels/bidirectional_sequence_lstm.cc +++ b/tensorflow/lite/kernels/bidirectional_sequence_lstm.cc @@ -20,14 +20,14 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/internal/kernel_utils.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/lstm_eval.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/internal/kernel_utils.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/lstm_eval.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/bidirectional_sequence_lstm_test.cc b/tensorflow/lite/kernels/bidirectional_sequence_lstm_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/bidirectional_sequence_lstm_test.cc rename to tensorflow/lite/kernels/bidirectional_sequence_lstm_test.cc index db98d6c49d42ac9991d2512de54a60c093cf5799..b865322682a6dbe2aa7337af0692830fe79efe23 100644 --- a/tensorflow/contrib/lite/kernels/bidirectional_sequence_lstm_test.cc +++ b/tensorflow/lite/kernels/bidirectional_sequence_lstm_test.cc @@ -21,11 +21,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/bidirectional_sequence_rnn.cc b/tensorflow/lite/kernels/bidirectional_sequence_rnn.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/bidirectional_sequence_rnn.cc rename to tensorflow/lite/kernels/bidirectional_sequence_rnn.cc index 8b281b174e3e1a7332b8b3d1e1c170985e0b07df..5194c2463092eedd41f634dda8b8db201b03e699 100644 --- a/tensorflow/contrib/lite/kernels/bidirectional_sequence_rnn.cc +++ b/tensorflow/lite/kernels/bidirectional_sequence_rnn.cc @@ -19,12 +19,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/internal/kernel_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/internal/kernel_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/bidirectional_sequence_rnn_test.cc b/tensorflow/lite/kernels/bidirectional_sequence_rnn_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/bidirectional_sequence_rnn_test.cc rename to tensorflow/lite/kernels/bidirectional_sequence_rnn_test.cc index d0d04428c9594dab8d86342223bac15c0eefe298..5bad8e02c29608fa058d0d1104acbf09626f1b66 100644 --- a/tensorflow/contrib/lite/kernels/bidirectional_sequence_rnn_test.cc +++ b/tensorflow/lite/kernels/bidirectional_sequence_rnn_test.cc @@ -19,10 +19,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/cast.cc b/tensorflow/lite/kernels/cast.cc similarity index 91% rename from tensorflow/contrib/lite/kernels/cast.cc rename to tensorflow/lite/kernels/cast.cc index a7972140ac9f228ad8137804653194cc62265736..ac6c85b96921dc1f9a5b9204c7b19cd6fce1943f 100644 --- a/tensorflow/contrib/lite/kernels/cast.cc +++ b/tensorflow/lite/kernels/cast.cc @@ -15,13 +15,13 @@ limitations under the License. #include #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/cast_test.cc b/tensorflow/lite/kernels/cast_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/cast_test.cc rename to tensorflow/lite/kernels/cast_test.cc index 954f998206563a38c74a1382092851cfbee1013b..acdc331a7ea78e90f93ea3adc6105396f484e81e 100644 --- a/tensorflow/contrib/lite/kernels/cast_test.cc +++ b/tensorflow/lite/kernels/cast_test.cc @@ -15,10 +15,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/comparisons.cc b/tensorflow/lite/kernels/comparisons.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/comparisons.cc rename to tensorflow/lite/kernels/comparisons.cc index 3926af5b973947f0cfd079825e8633ed931f9cd8..125397c50999cec0573d22c244c81f3d870240ee 100644 --- a/tensorflow/contrib/lite/kernels/comparisons.cc +++ b/tensorflow/lite/kernels/comparisons.cc @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/comparisons_test.cc b/tensorflow/lite/kernels/comparisons_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/comparisons_test.cc rename to tensorflow/lite/kernels/comparisons_test.cc index 04c8bf2e3017bf5ec19ff8ebf6313918a60c838a..3c278c1f9e10977e4605d36acf029a806c86dadf 100644 --- a/tensorflow/contrib/lite/kernels/comparisons_test.cc +++ b/tensorflow/lite/kernels/comparisons_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/concatenation.cc b/tensorflow/lite/kernels/concatenation.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/concatenation.cc rename to tensorflow/lite/kernels/concatenation.cc index 7ad3399ffd39339f8f46964a6e99b6f4de0eb27d..a8dd160c8dbb42ba2c2363af55b30eb0b79f86af 100644 --- a/tensorflow/contrib/lite/kernels/concatenation.cc +++ b/tensorflow/lite/kernels/concatenation.cc @@ -19,13 +19,13 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/concatenation_test.cc b/tensorflow/lite/kernels/concatenation_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/concatenation_test.cc rename to tensorflow/lite/kernels/concatenation_test.cc index 467ff6f7e149e35ae1fd11031c10d7087c4b398c..422380a03eaf9073958d4984eb2234890d555780 100644 --- a/tensorflow/contrib/lite/kernels/concatenation_test.cc +++ b/tensorflow/lite/kernels/concatenation_test.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/conv.cc b/tensorflow/lite/kernels/conv.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/conv.cc rename to tensorflow/lite/kernels/conv.cc index 6695282a924b130366c2793b8e04c1bc4f8fe5a4..0c14b9eb65692fa25dbd5784a65ebc4bded8853c 100644 --- a/tensorflow/contrib/lite/kernels/conv.cc +++ b/tensorflow/lite/kernels/conv.cc @@ -20,20 +20,20 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/eigen_support.h" -#include "tensorflow/contrib/lite/kernels/gemm_support.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/cblas_conv.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/multithreaded_conv.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/kernels/padding.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/eigen_support.h" +#include "tensorflow/lite/kernels/gemm_support.h" +#include "tensorflow/lite/kernels/internal/optimized/cblas_conv.h" +#include "tensorflow/lite/kernels/internal/optimized/multithreaded_conv.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/padding.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/conv_test.cc b/tensorflow/lite/kernels/conv_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/conv_test.cc rename to tensorflow/lite/kernels/conv_test.cc index f7e6f083ed23f8be5fd00ce1e8b202ba63305334..eebf9f9de4694352cf3bf959f0f639380a3054f7 100644 --- a/tensorflow/contrib/lite/kernels/conv_test.cc +++ b/tensorflow/lite/kernels/conv_test.cc @@ -16,10 +16,10 @@ limitations under the License. #include #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/depthwise_conv.cc b/tensorflow/lite/kernels/depthwise_conv.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/depthwise_conv.cc rename to tensorflow/lite/kernels/depthwise_conv.cc index 19958844a1af876bf26251d5ef3ff249a087ffcc..3f4ae5087b267a62d4d4237a8f5f534ff346a493 100644 --- a/tensorflow/contrib/lite/kernels/depthwise_conv.cc +++ b/tensorflow/lite/kernels/depthwise_conv.cc @@ -19,17 +19,17 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_float.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_float.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_uint8.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/kernels/padding.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/depthwiseconv_float.h" +#include "tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h" +#include "tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/padding.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/depthwise_conv_test.cc b/tensorflow/lite/kernels/depthwise_conv_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/depthwise_conv_test.cc rename to tensorflow/lite/kernels/depthwise_conv_test.cc index 4a33a0319d0dc3fd56cd3a173518d4fe49ace3ec..d924e6f700781e4aceef3d8554ed3d88d17ed774 100644 --- a/tensorflow/contrib/lite/kernels/depthwise_conv_test.cc +++ b/tensorflow/lite/kernels/depthwise_conv_test.cc @@ -15,10 +15,10 @@ limitations under the License. #include #include #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/dequantize.cc b/tensorflow/lite/kernels/dequantize.cc similarity index 90% rename from tensorflow/contrib/lite/kernels/dequantize.cc rename to tensorflow/lite/kernels/dequantize.cc index 59bf64e0afabc44a984a9797cabbcfcde531f1f6..b2825bb9ea5a57789bf6f3aa312b09c43f07bbf7 100644 --- a/tensorflow/contrib/lite/kernels/dequantize.cc +++ b/tensorflow/lite/kernels/dequantize.cc @@ -15,12 +15,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/dequantize_test.cc b/tensorflow/lite/kernels/dequantize_test.cc similarity index 90% rename from tensorflow/contrib/lite/kernels/dequantize_test.cc rename to tensorflow/lite/kernels/dequantize_test.cc index fcd74206177a0a97db168338e3619d4b95c052a9..55265d93e527fdf69d8958c14ab9e347d57b3ce0 100644 --- a/tensorflow/contrib/lite/kernels/dequantize_test.cc +++ b/tensorflow/lite/kernels/dequantize_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/detection_postprocess.cc b/tensorflow/lite/kernels/detection_postprocess.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/detection_postprocess.cc rename to tensorflow/lite/kernels/detection_postprocess.cc index b24231eb06361b954cbfc29c5b264b5d6b2245bf..84e2a0efb27c5e2381d76dba89ddf3445077576c 100644 --- a/tensorflow/contrib/lite/kernels/detection_postprocess.cc +++ b/tensorflow/lite/kernels/detection_postprocess.cc @@ -16,13 +16,13 @@ limitations under the License. #include #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/detection_postprocess_test.cc b/tensorflow/lite/kernels/detection_postprocess_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/detection_postprocess_test.cc rename to tensorflow/lite/kernels/detection_postprocess_test.cc index 4d7ddd64bee4808840ffe47739e0b8e096b78e36..d7ffaf1d82b542ab591fa0637f0657f050dfdc04 100644 --- a/tensorflow/contrib/lite/kernels/detection_postprocess_test.cc +++ b/tensorflow/lite/kernels/detection_postprocess_test.cc @@ -18,10 +18,10 @@ limitations under the License. #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/div.cc b/tensorflow/lite/kernels/div.cc similarity index 91% rename from tensorflow/contrib/lite/kernels/div.cc rename to tensorflow/lite/kernels/div.cc index 8d4bb5100664a3397c5d70809884294551aedd4d..fb40953123505afa1fc311b5e16c2c98dbe3be72 100644 --- a/tensorflow/contrib/lite/kernels/div.cc +++ b/tensorflow/lite/kernels/div.cc @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/div_test.cc b/tensorflow/lite/kernels/div_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/div_test.cc rename to tensorflow/lite/kernels/div_test.cc index 97aa2fe04e27416b99f48ab61ece54b745597ae3..68a8855dd1346fb157e8bb3f2dd16ee136b539d9 100644 --- a/tensorflow/contrib/lite/kernels/div_test.cc +++ b/tensorflow/lite/kernels/div_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/eigen_support.cc b/tensorflow/lite/kernels/eigen_support.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/eigen_support.cc rename to tensorflow/lite/kernels/eigen_support.cc index e542ad076528fa30152abba074a5c7dcd6ca1f48..44e0086ad88303a5214161e533313923f9aed301 100644 --- a/tensorflow/contrib/lite/kernels/eigen_support.cc +++ b/tensorflow/lite/kernels/eigen_support.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/eigen_support.h" +#include "tensorflow/lite/kernels/eigen_support.h" #include -#include "tensorflow/contrib/lite/arena_planner.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/eigen_spatial_convolutions.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/arena_planner.h" +#include "tensorflow/lite/kernels/internal/optimized/eigen_spatial_convolutions.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace eigen_support { diff --git a/tensorflow/contrib/lite/kernels/eigen_support.h b/tensorflow/lite/kernels/eigen_support.h similarity index 85% rename from tensorflow/contrib/lite/kernels/eigen_support.h rename to tensorflow/lite/kernels/eigen_support.h index feb1543f7be348995ecd406428e2d0016ce1cc58..c24ae6896a7e9783ddd32bc510881ccc1a5d27bf 100644 --- a/tensorflow/contrib/lite/kernels/eigen_support.h +++ b/tensorflow/lite/kernels/eigen_support.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_EIGEN_SUPPORT_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_EIGEN_SUPPORT_H_ +#ifndef TENSORFLOW_LITE_KERNELS_EIGEN_SUPPORT_H_ +#define TENSORFLOW_LITE_KERNELS_EIGEN_SUPPORT_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace EigenForTFLite { struct ThreadPoolDevice; @@ -38,4 +38,4 @@ const EigenForTFLite::ThreadPoolDevice* GetThreadPoolDevice( } // namespace eigen_support } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_EIGEN_SUPPORT_H_ +#endif // TENSORFLOW_LITE_KERNELS_EIGEN_SUPPORT_H_ diff --git a/tensorflow/contrib/lite/kernels/elementwise.cc b/tensorflow/lite/kernels/elementwise.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/elementwise.cc rename to tensorflow/lite/kernels/elementwise.cc index 8c624b320808d2d2c4f7feb8e75d59a548d67160..416a69eb0ed824783f03975c50b744bfce118117 100644 --- a/tensorflow/contrib/lite/kernels/elementwise.cc +++ b/tensorflow/lite/kernels/elementwise.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/elementwise_test.cc b/tensorflow/lite/kernels/elementwise_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/elementwise_test.cc rename to tensorflow/lite/kernels/elementwise_test.cc index 5dd89a0eaec13b94a8acd326a8c3b0b2e5be3e37..52df8dc3cca0b0550702f1904bfd15c282aaed73 100644 --- a/tensorflow/contrib/lite/kernels/elementwise_test.cc +++ b/tensorflow/lite/kernels/elementwise_test.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/embedding_lookup.cc b/tensorflow/lite/kernels/embedding_lookup.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/embedding_lookup.cc rename to tensorflow/lite/kernels/embedding_lookup.cc index 1d0c71ad48e36cf5df71f7f8909adaf97e9db989..fad32607b4980ce5d0e6b6a8540adf3b19529403 100644 --- a/tensorflow/contrib/lite/kernels/embedding_lookup.cc +++ b/tensorflow/lite/kernels/embedding_lookup.cc @@ -37,10 +37,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/embedding_lookup_sparse.cc b/tensorflow/lite/kernels/embedding_lookup_sparse.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/embedding_lookup_sparse.cc rename to tensorflow/lite/kernels/embedding_lookup_sparse.cc index 0b076941ea2164bc41797f123bf71425f8b1d583..72bfe5b4f5d71fd9725923514788d6056132ab23 100644 --- a/tensorflow/contrib/lite/kernels/embedding_lookup_sparse.cc +++ b/tensorflow/lite/kernels/embedding_lookup_sparse.cc @@ -65,11 +65,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/embedding_lookup_sparse_test.cc b/tensorflow/lite/kernels/embedding_lookup_sparse_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/embedding_lookup_sparse_test.cc rename to tensorflow/lite/kernels/embedding_lookup_sparse_test.cc index ef2b5422253ea880a9ded4d3c0efc5cec07178a9..0c555fdd7de61fa0ea6fd4e08f2b103f35bff92f 100644 --- a/tensorflow/contrib/lite/kernels/embedding_lookup_sparse_test.cc +++ b/tensorflow/lite/kernels/embedding_lookup_sparse_test.cc @@ -19,10 +19,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/embedding_lookup_test.cc b/tensorflow/lite/kernels/embedding_lookup_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/embedding_lookup_test.cc rename to tensorflow/lite/kernels/embedding_lookup_test.cc index 4a88d168c60203f10802e634def9b1d1316c9c6d..8ea98a5f0dcbfbcec826c0b9dee0d28cd0bd2885 100644 --- a/tensorflow/contrib/lite/kernels/embedding_lookup_test.cc +++ b/tensorflow/lite/kernels/embedding_lookup_test.cc @@ -20,10 +20,10 @@ License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/exp.cc b/tensorflow/lite/kernels/exp.cc similarity index 88% rename from tensorflow/contrib/lite/kernels/exp.cc rename to tensorflow/lite/kernels/exp.cc index 673e7be90a6d5747246e5af4c0656c1142a14bae..607b398ebd73f67e1707d5a4b1260d490beffa7e 100644 --- a/tensorflow/contrib/lite/kernels/exp.cc +++ b/tensorflow/lite/kernels/exp.cc @@ -14,12 +14,12 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/exp_test.cc b/tensorflow/lite/kernels/exp_test.cc similarity index 91% rename from tensorflow/contrib/lite/kernels/exp_test.cc rename to tensorflow/lite/kernels/exp_test.cc index eed67369a1f30e57cd29a3975a899db41938def0..fa71fe351a421a35258101b1ffe26a4baa9c7c61 100644 --- a/tensorflow/contrib/lite/kernels/exp_test.cc +++ b/tensorflow/lite/kernels/exp_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/expand_dims.cc b/tensorflow/lite/kernels/expand_dims.cc similarity index 90% rename from tensorflow/contrib/lite/kernels/expand_dims.cc rename to tensorflow/lite/kernels/expand_dims.cc index fa1140b19c09ddc25530b7776849c239d5dd4241..dd2479f34e6e8f0e28ac3ed6885ce2302e993141 100644 --- a/tensorflow/contrib/lite/kernels/expand_dims.cc +++ b/tensorflow/lite/kernels/expand_dims.cc @@ -15,12 +15,12 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { namespace builtin { diff --git a/tensorflow/contrib/lite/kernels/expand_dims_test.cc b/tensorflow/lite/kernels/expand_dims_test.cc similarity index 90% rename from tensorflow/contrib/lite/kernels/expand_dims_test.cc rename to tensorflow/lite/kernels/expand_dims_test.cc index a3bc1813dbc776718ad180a863e363272fbb5ec2..ea0c6c0fc830ec4a033215eff18a66d52c8e12c1 100644 --- a/tensorflow/contrib/lite/kernels/expand_dims_test.cc +++ b/tensorflow/lite/kernels/expand_dims_test.cc @@ -14,11 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/fake_quant.cc b/tensorflow/lite/kernels/fake_quant.cc similarity index 89% rename from tensorflow/contrib/lite/kernels/fake_quant.cc rename to tensorflow/lite/kernels/fake_quant.cc index b51af72fe66a6945e9fee64000a0c09a5dd608bc..9c799a7ec2247d56927da10f0140cffa09b63b3c 100644 --- a/tensorflow/contrib/lite/kernels/fake_quant.cc +++ b/tensorflow/lite/kernels/fake_quant.cc @@ -14,12 +14,12 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/fake_quant_test.cc b/tensorflow/lite/kernels/fake_quant_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/fake_quant_test.cc rename to tensorflow/lite/kernels/fake_quant_test.cc index 11a02f7ed7474e05b887955c111179d2d403f0e6..ce14703421e1cd8bced21aacdd0324352724b2c5 100644 --- a/tensorflow/contrib/lite/kernels/fake_quant_test.cc +++ b/tensorflow/lite/kernels/fake_quant_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/floor.cc b/tensorflow/lite/kernels/floor.cc similarity index 88% rename from tensorflow/contrib/lite/kernels/floor.cc rename to tensorflow/lite/kernels/floor.cc index 59ff77f35b8d3f1e4abb41687b2985cd75dd45a2..aa117e3cacfc4624d347ba812e23801c223bae7b 100644 --- a/tensorflow/contrib/lite/kernels/floor.cc +++ b/tensorflow/lite/kernels/floor.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/floor_div.cc b/tensorflow/lite/kernels/floor_div.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/floor_div.cc rename to tensorflow/lite/kernels/floor_div.cc index 5d62cd27550f4f78d33e2f357cf6553a15fd2356..9d404af5b0b5e94d56c17c2be49a91ad2bb60b2e 100644 --- a/tensorflow/contrib/lite/kernels/floor_div.cc +++ b/tensorflow/lite/kernels/floor_div.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/floor_div_test.cc b/tensorflow/lite/kernels/floor_div_test.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/floor_div_test.cc rename to tensorflow/lite/kernels/floor_div_test.cc index eea69b61ac161ea66d62e06e6d778666f289f510..8816260d9b45da705285f540914d8436019b8e3b 100644 --- a/tensorflow/contrib/lite/kernels/floor_div_test.cc +++ b/tensorflow/lite/kernels/floor_div_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/floor_mod.cc b/tensorflow/lite/kernels/floor_mod.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/floor_mod.cc rename to tensorflow/lite/kernels/floor_mod.cc index b6bf054443b09ac1d2c3428e92b8c0e879aeb476..a1ac2317368a3babe59aec991ef7687bf9dc4bae 100644 --- a/tensorflow/contrib/lite/kernels/floor_mod.cc +++ b/tensorflow/lite/kernels/floor_mod.cc @@ -14,11 +14,11 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" // TODO(b/117523611): We should factor out a binary_op and put binary ops there. namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/floor_mod_test.cc b/tensorflow/lite/kernels/floor_mod_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/floor_mod_test.cc rename to tensorflow/lite/kernels/floor_mod_test.cc index c581a5393648dba693e71c5baaeb2709e37df942..9d75f5ce2e3ef82dc5f11084af83c11eb188f77b 100644 --- a/tensorflow/contrib/lite/kernels/floor_mod_test.cc +++ b/tensorflow/lite/kernels/floor_mod_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/floor_test.cc b/tensorflow/lite/kernels/floor_test.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/floor_test.cc rename to tensorflow/lite/kernels/floor_test.cc index b71e0400b6dc92899721342fc4ebbd51a8876455..9bcbdba8a4f0b20213715c02112f47eca0ce013d 100644 --- a/tensorflow/contrib/lite/kernels/floor_test.cc +++ b/tensorflow/lite/kernels/floor_test.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/fully_connected.cc b/tensorflow/lite/kernels/fully_connected.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/fully_connected.cc rename to tensorflow/lite/kernels/fully_connected.cc index cac556db33a6fad43ae51736f10df2435ee17152..63cca1cf5427f9c328b68868a4cfbef3fec08bf9 100644 --- a/tensorflow/contrib/lite/kernels/fully_connected.cc +++ b/tensorflow/lite/kernels/fully_connected.cc @@ -20,17 +20,17 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/gemm_support.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/gemm_support.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/fully_connected_test.cc b/tensorflow/lite/kernels/fully_connected_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/fully_connected_test.cc rename to tensorflow/lite/kernels/fully_connected_test.cc index 08b43209466a1b85613ae41d5aa776194f992c60..3351a30b123b12751f2411f71037f2ecfb1d4b43 100644 --- a/tensorflow/contrib/lite/kernels/fully_connected_test.cc +++ b/tensorflow/lite/kernels/fully_connected_test.cc @@ -21,11 +21,11 @@ limitations under the License. #include #include #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/gather.cc b/tensorflow/lite/kernels/gather.cc similarity index 92% rename from tensorflow/contrib/lite/kernels/gather.cc rename to tensorflow/lite/kernels/gather.cc index b5afeb1a7bd5528328bd5585d9696b3362cbe3a3..11b2a6622a57016428c9032a55d949e0beba83dd 100644 --- a/tensorflow/contrib/lite/kernels/gather.cc +++ b/tensorflow/lite/kernels/gather.cc @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/gather_test.cc b/tensorflow/lite/kernels/gather_test.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/gather_test.cc rename to tensorflow/lite/kernels/gather_test.cc index 1b48884e0907c67919f65680ab2f096481551eb7..ca2dd0d48d4f3045807c61af48fa4069be8ef4fa 100644 --- a/tensorflow/contrib/lite/kernels/gather_test.cc +++ b/tensorflow/lite/kernels/gather_test.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/gemm_support.cc b/tensorflow/lite/kernels/gemm_support.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/gemm_support.cc rename to tensorflow/lite/kernels/gemm_support.cc index ed334af2da877edf9f591612478e22f04cf15931..cc224cb88401255950e678815776090b8031fa3d 100644 --- a/tensorflow/contrib/lite/kernels/gemm_support.cc +++ b/tensorflow/lite/kernels/gemm_support.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/gemm_support.h" +#include "tensorflow/lite/kernels/gemm_support.h" #include -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace gemm_support { diff --git a/tensorflow/contrib/lite/kernels/gemm_support.h b/tensorflow/lite/kernels/gemm_support.h similarity index 89% rename from tensorflow/contrib/lite/kernels/gemm_support.h rename to tensorflow/lite/kernels/gemm_support.h index 43cd2b3055c5c3ac8b4952a06aa346aa52d4ed01..1feb638952acb0414697117b9863d4b785cdfe20 100644 --- a/tensorflow/contrib/lite/kernels/gemm_support.h +++ b/tensorflow/lite/kernels/gemm_support.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_GEMM_SUPPORT_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_GEMM_SUPPORT_H_ +#ifndef TENSORFLOW_LITE_KERNELS_GEMM_SUPPORT_H_ +#define TENSORFLOW_LITE_KERNELS_GEMM_SUPPORT_H_ #include "public/gemmlowp.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { namespace gemm_support { @@ -48,4 +48,4 @@ void DecrementUsageCounter(TfLiteContext* context); } // namespace gemm_support } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_GEMM_SUPPORT_H_ +#endif // TENSORFLOW_LITE_KERNELS_GEMM_SUPPORT_H_ diff --git a/tensorflow/contrib/lite/kernels/hashtable_lookup.cc b/tensorflow/lite/kernels/hashtable_lookup.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/hashtable_lookup.cc rename to tensorflow/lite/kernels/hashtable_lookup.cc index c0b3c3c0c5beae934b508d49e2424d958b8c9230..b6ae7a3d1a5479e8ac6996815de9cb02b472acaf 100644 --- a/tensorflow/contrib/lite/kernels/hashtable_lookup.cc +++ b/tensorflow/lite/kernels/hashtable_lookup.cc @@ -39,11 +39,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/hashtable_lookup_test.cc b/tensorflow/lite/kernels/hashtable_lookup_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/hashtable_lookup_test.cc rename to tensorflow/lite/kernels/hashtable_lookup_test.cc index ba0ed5ce06392613238b757308dddc2b22e7eb30..d2ca76a206783f561c659faa3cd7632225b08d68 100644 --- a/tensorflow/contrib/lite/kernels/hashtable_lookup_test.cc +++ b/tensorflow/lite/kernels/hashtable_lookup_test.cc @@ -19,11 +19,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/internal/BUILD b/tensorflow/lite/kernels/internal/BUILD similarity index 89% rename from tensorflow/contrib/lite/kernels/internal/BUILD rename to tensorflow/lite/kernels/internal/BUILD index 9f8f224094d818f062442b0ece410f41fd368bbc..32f61e02807d6ff6d22c77d2d0c119fe6ec28826 100644 --- a/tensorflow/contrib/lite/kernels/internal/BUILD +++ b/tensorflow/lite/kernels/internal/BUILD @@ -4,8 +4,8 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") -load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") tflite_deps_intel = [ "@arm_neon_2_x86_sse", @@ -44,7 +44,7 @@ cc_library( "types.h", ], deps = [ - "//tensorflow/contrib/lite/kernels:op_macros", + "//tensorflow/lite/kernels:op_macros", "@com_google_absl//absl/base:core_headers", ], ) @@ -58,7 +58,7 @@ cc_library( "types.h", ], deps = [ - "//tensorflow/contrib/lite/kernels:op_macros", + "//tensorflow/lite/kernels:op_macros", "@com_google_absl//absl/base:core_headers", ], ) @@ -181,7 +181,7 @@ cc_library( ":tensor_utils", "//third_party/eigen3", "@gemmlowp", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ] + select({ ":haswell": tflite_deps_intel, ":ios_x86_64": tflite_deps_intel, @@ -217,7 +217,7 @@ cc_library( ":round", "//third_party/eigen3", "@gemmlowp", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ] + select({ ":haswell": tflite_deps_intel, ":ios_x86_64": tflite_deps_intel, @@ -247,7 +247,7 @@ cc_library( ":optimized_base", ":tensor", ":types", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", "//third_party/eigen3", ], ) @@ -281,7 +281,7 @@ cc_library( deps = [ ":round", ":types", - "//tensorflow/contrib/lite/kernels:op_macros", + "//tensorflow/lite/kernels:op_macros", ], ) @@ -326,8 +326,8 @@ cc_library( ":strided_slice_logic", ":types", "@gemmlowp", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:op_macros", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:op_macros", ] + select({ ":haswell": tflite_deps_intel, ":ios_x86_64": tflite_deps_intel, @@ -360,8 +360,8 @@ cc_library( ":legacy_types", ":types", "@gemmlowp", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:op_macros", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:op_macros", ] + select({ ":haswell": tflite_deps_intel, ":ios_x86_64": tflite_deps_intel, @@ -383,7 +383,7 @@ cc_library( ], deps = [ ":types", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ], ) @@ -396,7 +396,7 @@ cc_library( ], deps = [ ":types", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ], ) @@ -410,9 +410,9 @@ cc_library( ], deps = [ ":round", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:activation_functor", - "//tensorflow/contrib/lite/kernels:op_macros", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:activation_functor", + "//tensorflow/lite/kernels:op_macros", ], ) @@ -435,9 +435,9 @@ cc_library( ":cpu_check", ":round", ":types", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:activation_functor", - "//tensorflow/contrib/lite/kernels:op_macros", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:activation_functor", + "//tensorflow/lite/kernels:op_macros", "@arm_neon_2_x86_sse", "@gemmlowp", ], @@ -449,7 +449,7 @@ cc_library( hdrs = ["kernel_utils.h"], deps = [ ":tensor_utils", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", ], ) @@ -492,9 +492,9 @@ cc_library( copts = NEON_FLAGS_IF_APPLICABLE, deps = [ "@com_google_absl//absl/base:core_headers", - "//tensorflow/contrib/lite/c:c_api_internal", + "//tensorflow/lite/c:c_api_internal", "@arm_neon_2_x86_sse", - "//tensorflow/contrib/lite/kernels:op_macros", + "//tensorflow/lite/kernels:op_macros", "@gemmlowp", ] + select({ ":arm": [ @@ -548,7 +548,7 @@ cc_library( hdrs = ["test_util.h"], deps = [ ":types", - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:string", ], ) @@ -569,8 +569,8 @@ cc_test( ], deps = [ ":tensor_utils", - "//tensorflow/contrib/lite/c:c_api_internal", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite/c:c_api_internal", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest_main", ], ) @@ -648,7 +648,7 @@ cc_test( ":quantization_util", ":reference_base", ":test_util", - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:string", "@com_google_googletest//:gtest_main", ], ) @@ -668,7 +668,7 @@ cc_test( ":quantization_util", ":reference_base", ":test_util", - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:string", "@com_google_googletest//:gtest_main", ], ) @@ -680,7 +680,7 @@ cc_test( deps = [ ":optimized_base", ":reference_base", - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:string", "@com_google_googletest//:gtest_main", ], ) diff --git a/tensorflow/contrib/lite/kernels/internal/batch_to_space_nd_test.cc b/tensorflow/lite/kernels/internal/batch_to_space_nd_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/internal/batch_to_space_nd_test.cc rename to tensorflow/lite/kernels/internal/batch_to_space_nd_test.cc index 5a2901ac8c297265e542cc30d3127fe774c19e78..5fc2c93ba0e3a78a8950c17fee2051e207e7a83a 100644 --- a/tensorflow/contrib/lite/kernels/internal/batch_to_space_nd_test.cc +++ b/tensorflow/lite/kernels/internal/batch_to_space_nd_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" #include diff --git a/tensorflow/contrib/lite/kernels/internal/common.h b/tensorflow/lite/kernels/internal/common.h similarity index 97% rename from tensorflow/contrib/lite/kernels/internal/common.h rename to tensorflow/lite/kernels/internal/common.h index e67fee11b8d24d386d3b7c5efa4b07463fb8024a..e31f47d2cea16cb17aca6685f4236c234243e873 100644 --- a/tensorflow/contrib/lite/kernels/internal/common.h +++ b/tensorflow/lite/kernels/internal/common.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_COMMON_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_COMMON_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_COMMON_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_COMMON_H_ #ifndef ALLOW_SLOW_GENERIC_DEPTHWISECONV_FALLBACK #ifdef GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK @@ -46,7 +46,7 @@ limitations under the License. #endif #include "fixedpoint/fixedpoint.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { @@ -266,4 +266,4 @@ inline void NdArrayDescsForElementwiseBroadcast( } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_COMMON_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_COMMON_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/compatibility.h b/tensorflow/lite/kernels/internal/compatibility.h similarity index 92% rename from tensorflow/contrib/lite/kernels/internal/compatibility.h rename to tensorflow/lite/kernels/internal/compatibility.h index 7c176e0fa1c8e8c8b6a094dbeb1025f2be091b3d..bfd021ac48df5bc4103b86c58c1ecc8d35c35a5c 100644 --- a/tensorflow/contrib/lite/kernels/internal/compatibility.h +++ b/tensorflow/lite/kernels/internal/compatibility.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_COMPATIBILITY_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_COMPATIBILITY_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_COMPATIBILITY_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_COMPATIBILITY_H_ #include -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/op_macros.h" #ifndef TFLITE_DCHECK #define TFLITE_DCHECK(condition) (condition) ? (void)0 : TFLITE_ASSERT_FALSE @@ -107,4 +107,4 @@ using uint32 = std::uint32_t; #define TFLITE_DEPRECATED(message) #endif -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_COMPATIBILITY_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_COMPATIBILITY_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/depthwiseconv_float_test.cc b/tensorflow/lite/kernels/internal/depthwiseconv_float_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/internal/depthwiseconv_float_test.cc rename to tensorflow/lite/kernels/internal/depthwiseconv_float_test.cc index 41862a21a6ed5a1985c7689bf78da7a0c9c141ea..3602b9ffd8435763d5392840c98d47bf6bf6ecf0 100644 --- a/tensorflow/contrib/lite/kernels/internal/depthwiseconv_float_test.cc +++ b/tensorflow/lite/kernels/internal/depthwiseconv_float_test.cc @@ -17,13 +17,13 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/test_util.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/test_util.h" +#include "tensorflow/lite/kernels/internal/types.h" #define ALLOW_SLOW_GENERIC_DEPTHWISECONV_FALLBACK -#include "tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_float.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_float.h" +#include "tensorflow/lite/kernels/internal/optimized/depthwiseconv_float.h" +#include "tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/internal/depthwiseconv_quantized_test.cc b/tensorflow/lite/kernels/internal/depthwiseconv_quantized_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/internal/depthwiseconv_quantized_test.cc rename to tensorflow/lite/kernels/internal/depthwiseconv_quantized_test.cc index fd0413715086c70a5e50d803ee02983b9feed402..3682499d494cc4e63712b6c57d80482899b2185d 100644 --- a/tensorflow/contrib/lite/kernels/internal/depthwiseconv_quantized_test.cc +++ b/tensorflow/lite/kernels/internal/depthwiseconv_quantized_test.cc @@ -22,13 +22,13 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/test_util.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/test_util.h" +#include "tensorflow/lite/kernels/internal/types.h" #define ALLOW_SLOW_GENERIC_DEPTHWISECONV_FALLBACK -#include "tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_uint8.h" +#include "tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h" +#include "tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h" +#include "tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/internal/kernel_utils.cc b/tensorflow/lite/kernels/internal/kernel_utils.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/kernel_utils.cc rename to tensorflow/lite/kernels/internal/kernel_utils.cc index 7875b23979e33c2e7b5268c8d525dd4f46442b28..0836a3b662d356a0e068ce9403fdc44033afce2e 100644 --- a/tensorflow/contrib/lite/kernels/internal/kernel_utils.cc +++ b/tensorflow/lite/kernels/internal/kernel_utils.cc @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/kernel_utils.h" +#include "tensorflow/lite/kernels/internal/kernel_utils.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" namespace tflite { namespace kernel_utils { diff --git a/tensorflow/contrib/lite/kernels/internal/kernel_utils.h b/tensorflow/lite/kernels/internal/kernel_utils.h similarity index 94% rename from tensorflow/contrib/lite/kernels/internal/kernel_utils.h rename to tensorflow/lite/kernels/internal/kernel_utils.h index 0387d753e5abf1a2f4e067f4d046997b39606c87..ebb91678fecd94e0ada3783d52660bf14b3e638b 100644 --- a/tensorflow/contrib/lite/kernels/internal/kernel_utils.h +++ b/tensorflow/lite/kernels/internal/kernel_utils.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_KERNEL_UTILS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_KERNEL_UTILS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_KERNEL_UTILS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_KERNEL_UTILS_H_ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" namespace tflite { namespace kernel_utils { @@ -86,4 +86,4 @@ void RnnBatchStep( } // namespace kernel_utils } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_KERNEL_UTILS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_KERNEL_UTILS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/legacy_types.h b/tensorflow/lite/kernels/internal/legacy_types.h similarity index 74% rename from tensorflow/contrib/lite/kernels/internal/legacy_types.h rename to tensorflow/lite/kernels/internal/legacy_types.h index 2e4d3137f5c6acfdd7a0942510433323e5fee5ed..c19a1adb90f48cee4730a315345480cbe710e651 100644 --- a/tensorflow/contrib/lite/kernels/internal/legacy_types.h +++ b/tensorflow/lite/kernels/internal/legacy_types.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_LEGACY_TYPES_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_LEGACY_TYPES_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_LEGACY_TYPES_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_LEGACY_TYPES_H_ -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { @@ -23,4 +23,4 @@ namespace tflite { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_LEGACY_TYPES_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_LEGACY_TYPES_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/log_quantized_test.cc b/tensorflow/lite/kernels/internal/log_quantized_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/internal/log_quantized_test.cc rename to tensorflow/lite/kernels/internal/log_quantized_test.cc index 8963abb9afd9d51473fe5a22d8e88d314b385ad9..8c39350ab1dd8996799e6539755f040399974106 100644 --- a/tensorflow/contrib/lite/kernels/internal/log_quantized_test.cc +++ b/tensorflow/lite/kernels/internal/log_quantized_test.cc @@ -27,9 +27,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/string.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/internal/logsoftmax_quantized_test.cc b/tensorflow/lite/kernels/internal/logsoftmax_quantized_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/internal/logsoftmax_quantized_test.cc rename to tensorflow/lite/kernels/internal/logsoftmax_quantized_test.cc index 2252ca1bcc2190d03de84c8389d586f6f423582f..889a726f3a915fb592511d34c036b9726542fee9 100644 --- a/tensorflow/contrib/lite/kernels/internal/logsoftmax_quantized_test.cc +++ b/tensorflow/lite/kernels/internal/logsoftmax_quantized_test.cc @@ -23,11 +23,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/test_util.h" -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/test_util.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/internal/mfcc.cc b/tensorflow/lite/kernels/internal/mfcc.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/internal/mfcc.cc rename to tensorflow/lite/kernels/internal/mfcc.cc index eafe0c7afee6fabd5a4a258aa5176e23f5e8d62a..fddd4c46b6094a5fb4a51ed326f5f8dabd781281 100644 --- a/tensorflow/contrib/lite/kernels/internal/mfcc.cc +++ b/tensorflow/lite/kernels/internal/mfcc.cc @@ -15,7 +15,7 @@ limitations under the License. #include -#include "tensorflow/contrib/lite/kernels/internal/mfcc.h" +#include "tensorflow/lite/kernels/internal/mfcc.h" namespace tflite { namespace internal { diff --git a/tensorflow/contrib/lite/kernels/internal/mfcc.h b/tensorflow/lite/kernels/internal/mfcc.h similarity index 88% rename from tensorflow/contrib/lite/kernels/internal/mfcc.h rename to tensorflow/lite/kernels/internal/mfcc.h index d8500ecdcf38e5dcfe9eb89915501678455b3dd9..8dae91efdeb542109c151f7e01ef4cf63f722e9c 100644 --- a/tensorflow/contrib/lite/kernels/internal/mfcc.h +++ b/tensorflow/lite/kernels/internal/mfcc.h @@ -15,13 +15,13 @@ limitations under the License. // Basic class for computing MFCCs from spectrogram slices. -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_H_ #include -#include "tensorflow/contrib/lite/kernels/internal/mfcc_dct.h" -#include "tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.h" +#include "tensorflow/lite/kernels/internal/mfcc_dct.h" +#include "tensorflow/lite/kernels/internal/mfcc_mel_filterbank.h" namespace tflite { namespace internal { @@ -75,4 +75,4 @@ class Mfcc { } // namespace internal } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/mfcc_dct.cc b/tensorflow/lite/kernels/internal/mfcc_dct.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/internal/mfcc_dct.cc rename to tensorflow/lite/kernels/internal/mfcc_dct.cc index b0b7d181bdcf01688a387f33a3e64fc904324b50..c249fdb020a3ac8e40c1b90db76993cd0864a94a 100644 --- a/tensorflow/contrib/lite/kernels/internal/mfcc_dct.cc +++ b/tensorflow/lite/kernels/internal/mfcc_dct.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/mfcc_dct.h" +#include "tensorflow/lite/kernels/internal/mfcc_dct.h" #include diff --git a/tensorflow/contrib/lite/kernels/internal/mfcc_dct.h b/tensorflow/lite/kernels/internal/mfcc_dct.h similarity index 86% rename from tensorflow/contrib/lite/kernels/internal/mfcc_dct.h rename to tensorflow/lite/kernels/internal/mfcc_dct.h index a53f5cbd9bb70c7c9dd49672681140bb9cbd2f4f..f2947b506b2aedb21ec423173480074864680edc 100644 --- a/tensorflow/contrib/lite/kernels/internal/mfcc_dct.h +++ b/tensorflow/lite/kernels/internal/mfcc_dct.h @@ -15,8 +15,8 @@ limitations under the License. // Basic minimal DCT class for MFCC speech processing. -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_DCT_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_DCT_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_DCT_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_DCT_H_ #include @@ -40,4 +40,4 @@ class MfccDct { } // namespace internal } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_DCT_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_DCT_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.cc b/tensorflow/lite/kernels/internal/mfcc_mel_filterbank.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.cc rename to tensorflow/lite/kernels/internal/mfcc_mel_filterbank.cc index c3deb33d91a47bfe54b7c84d2a615df2422f90cc..9748da39862edd7565fdb2bcce2ce92b9d767429 100644 --- a/tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.cc +++ b/tensorflow/lite/kernels/internal/mfcc_mel_filterbank.cc @@ -28,7 +28,7 @@ limitations under the License. // channels may end up with no contributing FFT bins. The resulting mel // spectrum output will have some channels that are always zero. -#include "tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.h" +#include "tensorflow/lite/kernels/internal/mfcc_mel_filterbank.h" #include diff --git a/tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.h b/tensorflow/lite/kernels/internal/mfcc_mel_filterbank.h similarity index 91% rename from tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.h rename to tensorflow/lite/kernels/internal/mfcc_mel_filterbank.h index c1db28243eea39a694b7613ac7144dce9b294897..53d05bff5f45e4c183389f3eccd2e5bf865a456f 100644 --- a/tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.h +++ b/tensorflow/lite/kernels/internal/mfcc_mel_filterbank.h @@ -15,8 +15,8 @@ limitations under the License. // Basic class for applying a mel-scale mapping to a power spectrum. -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_MEL_FILTERBANK_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_MEL_FILTERBANK_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_MEL_FILTERBANK_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_MEL_FILTERBANK_H_ #include @@ -60,4 +60,4 @@ class MfccMelFilterbank { } // namespace internal } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_MFCC_MEL_FILTERBANK_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_MFCC_MEL_FILTERBANK_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/cblas_conv.h b/tensorflow/lite/kernels/internal/optimized/cblas_conv.h similarity index 90% rename from tensorflow/contrib/lite/kernels/internal/optimized/cblas_conv.h rename to tensorflow/lite/kernels/internal/optimized/cblas_conv.h index 2d96da65c33bd4d1d132501dfaa49148f2c26484..53772050503b2b1947af29ba08903ef3bc92e896 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/cblas_conv.h +++ b/tensorflow/lite/kernels/internal/optimized/cblas_conv.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_CONV_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_CONV_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_CONV_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_CONV_H_ // The Conv implementation based on CBLAS interface. This is only used on iOS // for now, utilizing Apple's Accelerate framework. @@ -22,11 +22,11 @@ limitations under the License. #if TFLITE_USE_APPLE_ACCELERATE_FOR_CONV #include #else -#include "tensorflow/contrib/lite/kernels/internal/optimized/cblas_reference.h" +#include "tensorflow/lite/kernels/internal/optimized/cblas_reference.h" #endif -#include "tensorflow/contrib/lite/kernels/internal/optimized/multithreaded_conv.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/optimized/multithreaded_conv.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" namespace tflite { namespace cblas_ops { @@ -106,4 +106,4 @@ inline void Conv(const ConvParams& params, const RuntimeShape& input_shape, } // namespace cblas_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_CONV_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_CONV_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/cblas_reference.h b/tensorflow/lite/kernels/internal/optimized/cblas_reference.h similarity index 89% rename from tensorflow/contrib/lite/kernels/internal/optimized/cblas_reference.h rename to tensorflow/lite/kernels/internal/optimized/cblas_reference.h index 6acc513805c9398c304f3e24175d3bd6c96938f6..fa07578612aaa56c77c39c9c6280c81e8657d86f 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/cblas_reference.h +++ b/tensorflow/lite/kernels/internal/optimized/cblas_reference.h @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_REFERENCE_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_REFERENCE_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_REFERENCE_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_REFERENCE_H_ -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" // The reference implementation for a small subset of CBLAS interface. // This is only used for testing CBLAS implementation, and should never be used @@ -66,4 +66,4 @@ void cblas_sgemm(const enum CBLAS_ORDER order, } // namespace cblas_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_REFERENCE_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CBLAS_REFERENCE_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/cpu_check.h b/tensorflow/lite/kernels/internal/optimized/cpu_check.h similarity index 89% rename from tensorflow/contrib/lite/kernels/internal/optimized/cpu_check.h rename to tensorflow/lite/kernels/internal/optimized/cpu_check.h index 934308ef291956babcfa288668354e924fb6cd5a..ac4ea7d6dae04532ac92f73b34f75096724a5137 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/cpu_check.h +++ b/tensorflow/lite/kernels/internal/optimized/cpu_check.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CPU_CHECK_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CPU_CHECK_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CPU_CHECK_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CPU_CHECK_H_ namespace tflite { @@ -58,4 +58,4 @@ inline bool TestCPUFeatureNeon() { return false; } : Portable##funcname(__VA_ARGS__) #endif -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_CPU_CHECK_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_CPU_CHECK_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_float.h b/tensorflow/lite/kernels/internal/optimized/depthwiseconv_float.h similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_float.h rename to tensorflow/lite/kernels/internal/optimized/depthwiseconv_float.h index 4e21805048b703df6c6a182159024b517037cf67..25b66d4b5537f58e9a8795e05128e4cb4b3d2890 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_float.h +++ b/tensorflow/lite/kernels/internal/optimized/depthwiseconv_float.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_FLOAT_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_FLOAT_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_FLOAT_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_FLOAT_H_ #include "public/gemmlowp.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace optimized_ops { @@ -1068,4 +1068,4 @@ inline void DepthwiseConv( } // namespace optimized_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_FLOAT_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_FLOAT_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8.h b/tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8.h rename to tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h index 3c8d447c6d88c9040383fe3f7ceabf9ad42e5569..5317cea88439231a6a4dc24206987f8db6fa7b77 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8.h +++ b/tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_H_ #include "fixedpoint/fixedpoint.h" #include "public/gemmlowp.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace optimized_ops { @@ -1994,4 +1994,4 @@ inline void DepthwiseConv( } // namespace optimized_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h b/tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h rename to tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h index f437487fc2a5128ba1a837f8ba615938baf1abde..3f2ed0b1f0eb3c009048550f879ae3726519c518 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h +++ b/tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8_3x3_filter.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_3X3_FILTER_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_3X3_FILTER_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_3X3_FILTER_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_3X3_FILTER_H_ #include "fixedpoint/fixedpoint.h" #include "public/gemmlowp.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace optimized_ops { @@ -3446,4 +3446,4 @@ inline void DepthwiseConv3x3Filter( } // namespace optimized_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_3X3_FILTER_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_DEPTHWISECONV_UINT8_3X3_FILTER_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/eigen_spatial_convolutions.h b/tensorflow/lite/kernels/internal/optimized/eigen_spatial_convolutions.h similarity index 95% rename from tensorflow/contrib/lite/kernels/internal/optimized/eigen_spatial_convolutions.h rename to tensorflow/lite/kernels/internal/optimized/eigen_spatial_convolutions.h index ce3cde76999c77e1f9bf1eaccdba7e84ed508dda..29e3f534a38d4295381bb5a013612cce020704df 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/eigen_spatial_convolutions.h +++ b/tensorflow/lite/kernels/internal/optimized/eigen_spatial_convolutions.h @@ -16,8 +16,8 @@ limitations under the License. // Copied from tensorflow/core/kernels/eigen_spatial_convolutions.h. // TODO(petewarden) - move this to a common location in Eigen itself. -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_SPATIAL_CONVOLUTIONS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_SPATIAL_CONVOLUTIONS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_SPATIAL_CONVOLUTIONS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_SPATIAL_CONVOLUTIONS_H_ #define EIGEN_USE_CUSTOM_THREAD_POOL #define EIGEN_USE_THREADS @@ -32,9 +32,9 @@ limitations under the License. #define TFLITE_REDUCE_INSTANTIATIONS_OPEN_SOURCE #define Eigen EigenForTFLite #if defined(TFLITE_REDUCE_INSTANTIATIONS_GOOGLE) -#include "tensorflow/contrib/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_google.h" +#include "tensorflow/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_google.h" #elif defined(TFLITE_REDUCE_INSTANTIATIONS_OPEN_SOURCE) -#include "tensorflow/contrib/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_oss.h" +#include "tensorflow/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_oss.h" #else #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" #endif @@ -226,4 +226,4 @@ EIGEN_DEVICE_FUNC // clang-format on -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_SPATIAL_CONVOLUTIONS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_SPATIAL_CONVOLUTIONS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_google.h b/tensorflow/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_google.h similarity index 95% rename from tensorflow/contrib/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_google.h rename to tensorflow/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_google.h index 6443f425b7d6436d2f4c5b98d5512875785864dc..f71ddbf3220db5d7d80afe198d0c13edc4a5448e 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_google.h +++ b/tensorflow/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_google.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_GOOGLE_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_GOOGLE_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_GOOGLE_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_GOOGLE_H_ #define EIGEN_USE_CUSTOM_THREAD_POOL #define EIGEN_USE_THREADS @@ -140,4 +140,4 @@ limitations under the License. #include "third_party/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h" #include "Eigen/src/Core/util/ReenableStupidWarnings.h" -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_GOOGLE_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_GOOGLE_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_oss.h b/tensorflow/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_oss.h similarity index 95% rename from tensorflow/contrib/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_oss.h rename to tensorflow/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_oss.h index d34708b8fd0c0732c13ddbd8d70c87a278c40ff8..5e83b7b846e33b6c463edb93aade48b315b84dfe 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_oss.h +++ b/tensorflow/lite/kernels/internal/optimized/eigen_tensor_reduced_instantiations_oss.h @@ -19,8 +19,8 @@ limitations under the License. // clang-format off -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_OSS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_OSS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_OSS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_OSS_H_ #include "Eigen/Core" @@ -164,4 +164,4 @@ typedef unsigned __int64 uint64_t; #include "Eigen/src/Core/util/ReenableStupidWarnings.h" -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_OSS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_EIGEN_TENSOR_REDUCED_INSTANTIATIONS_OSS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/legacy_optimized_ops.h b/tensorflow/lite/kernels/internal/optimized/legacy_optimized_ops.h similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/optimized/legacy_optimized_ops.h rename to tensorflow/lite/kernels/internal/optimized/legacy_optimized_ops.h index 4218be20a4a08f76c112675ac059fb7374539194..5485d907c29399ca8f4663f090e6b26b8a9be7ed 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/legacy_optimized_ops.h +++ b/tensorflow/lite/kernels/internal/optimized/legacy_optimized_ops.h @@ -12,18 +12,18 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_LEGACY_OPTIMIZED_OPS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_LEGACY_OPTIMIZED_OPS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_LEGACY_OPTIMIZED_OPS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_LEGACY_OPTIMIZED_OPS_H_ #include #include -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_float.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/depthwiseconv_uint8.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/legacy_reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/optimized/depthwiseconv_float.h" +#include "tensorflow/lite/kernels/internal/optimized/depthwiseconv_uint8.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/legacy_reference_ops.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace optimized_ops { @@ -1869,4 +1869,4 @@ void TensorFlowMaximum(const T* input1_data, const Dims<4>& input1_dims, } // namespace optimized_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_LEGACY_OPTIMIZED_OPS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_LEGACY_OPTIMIZED_OPS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/multithreaded_conv.h b/tensorflow/lite/kernels/internal/optimized/multithreaded_conv.h similarity index 92% rename from tensorflow/contrib/lite/kernels/internal/optimized/multithreaded_conv.h rename to tensorflow/lite/kernels/internal/optimized/multithreaded_conv.h index 4139cf4eba98d1191854453bc200642a035e4669..12dfd1abb619729491661f87d4d82c7ea73b5932 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/multithreaded_conv.h +++ b/tensorflow/lite/kernels/internal/optimized/multithreaded_conv.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_MULTITHREADED_CONV_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_MULTITHREADED_CONV_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_MULTITHREADED_CONV_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_MULTITHREADED_CONV_H_ #include #include @@ -26,11 +26,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/eigen_spatial_convolutions.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/optimized/eigen_spatial_convolutions.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace multithreaded_ops { @@ -174,4 +174,4 @@ inline void Conv(const Eigen::ThreadPoolDevice& device, } // namespace multithreaded_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_MULTITHREADED_CONV_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_MULTITHREADED_CONV_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/neon_tensor_utils.cc b/tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/internal/optimized/neon_tensor_utils.cc rename to tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.cc index 36c15dbc5789308b2eb2ee579e26b1fe14535b3f..cf40ebb241d013a4853854f57fd55ebbce8a1752 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/neon_tensor_utils.cc +++ b/tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.cc @@ -15,12 +15,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/tensor_utils_impl.h" -#include "tensorflow/contrib/lite/kernels/internal/round.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/optimized/tensor_utils_impl.h" +#include "tensorflow/lite/kernels/internal/round.h" #ifdef USE_NEON diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/neon_tensor_utils.h b/tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.h similarity index 93% rename from tensorflow/contrib/lite/kernels/internal/optimized/neon_tensor_utils.h rename to tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.h index 630a6bbf2970866a4f3f7e49fb58cf3878f4095a..903f4c80139cd326b354ef6292a393c75af11608 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/neon_tensor_utils.h +++ b/tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_NEON_TENSOR_UTILS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_NEON_TENSOR_UTILS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_NEON_TENSOR_UTILS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_NEON_TENSOR_UTILS_H_ // TODO(ghodrat): Remove this header file and the dependency to internal data // structure. -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/cpu_check.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/tensor_utils_impl.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/kernels/internal/optimized/cpu_check.h" +#include "tensorflow/lite/kernels/internal/optimized/tensor_utils_impl.h" namespace tflite { namespace tensor_utils { @@ -153,4 +153,4 @@ void MeanStddevNormalization(const float* input_vector, float* output_vector, } // namespace tensor_utils } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_NEON_TENSOR_UTILS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_NEON_TENSOR_UTILS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h b/tensorflow/lite/kernels/internal/optimized/optimized_ops.h similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h rename to tensorflow/lite/kernels/internal/optimized/optimized_ops.h index 7d2f53fbe663193f316c86884cac891f2f4748e4..6f7031b36d25e82383400333ae35b67c96b56b5b 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h +++ b/tensorflow/lite/kernels/internal/optimized/optimized_ops.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_OPTIMIZED_OPS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_OPTIMIZED_OPS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_OPTIMIZED_OPS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_OPTIMIZED_OPS_H_ #include #include @@ -29,13 +29,13 @@ limitations under the License. #include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor" #include "fixedpoint/fixedpoint.h" #include "public/gemmlowp.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/round.h" -#include "tensorflow/contrib/lite/kernels/internal/strided_slice_logic.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/round.h" +#include "tensorflow/lite/kernels/internal/strided_slice_logic.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace optimized_ops { @@ -5990,4 +5990,4 @@ inline void ResizeNearestNeighbor( #pragma GCC diagnostic pop #endif -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_OPTIMIZED_OPS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_OPTIMIZED_OPS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/optimized/tensor_utils_impl.h b/tensorflow/lite/kernels/internal/optimized/tensor_utils_impl.h similarity index 96% rename from tensorflow/contrib/lite/kernels/internal/optimized/tensor_utils_impl.h rename to tensorflow/lite/kernels/internal/optimized/tensor_utils_impl.h index f87760a6c3e4a512d5e16828ce1c2dc46f8053d8..8f52ef131dedf4d0270c0346b1094add57f52dfc 100644 --- a/tensorflow/contrib/lite/kernels/internal/optimized/tensor_utils_impl.h +++ b/tensorflow/lite/kernels/internal/optimized/tensor_utils_impl.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_TENSOR_UTILS_IMPL_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_TENSOR_UTILS_IMPL_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_TENSOR_UTILS_IMPL_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_TENSOR_UTILS_IMPL_H_ // TODO(ghodrat): Remove this header file and the dependency to internal data // structure. -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" #if defined(_MSC_VER) #define __restrict__ __restrict @@ -183,4 +183,4 @@ void PortableMeanStddevNormalization(const float* input_vector, } // namespace tensor_utils } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_OPTIMIZED_TENSOR_UTILS_IMPL_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_OPTIMIZED_TENSOR_UTILS_IMPL_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/quantization_util.cc b/tensorflow/lite/kernels/internal/quantization_util.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/internal/quantization_util.cc rename to tensorflow/lite/kernels/internal/quantization_util.cc index 544ef16ce18a36e52acb8813021800189150b13f..0279d2a9229e02721c01d15d380db1919b7bfd23 100644 --- a/tensorflow/contrib/lite/kernels/internal/quantization_util.cc +++ b/tensorflow/lite/kernels/internal/quantization_util.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/round.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/round.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/internal/quantization_util.h b/tensorflow/lite/kernels/internal/quantization_util.h similarity index 96% rename from tensorflow/contrib/lite/kernels/internal/quantization_util.h rename to tensorflow/lite/kernels/internal/quantization_util.h index d74a1bac97f86cba1e63e9141a9d00ded3c63c8f..bf313f39cd8b407f6fb57dcbdf0540e98d96b7e8 100644 --- a/tensorflow/contrib/lite/kernels/internal/quantization_util.h +++ b/tensorflow/lite/kernels/internal/quantization_util.h @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_QUANTIZATION_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_QUANTIZATION_UTIL_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_QUANTIZATION_UTIL_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_QUANTIZATION_UTIL_H_ #include #include #include -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" -#include "tensorflow/contrib/lite/kernels/internal/round.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/round.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { @@ -277,4 +277,4 @@ bool CheckedLog2(const float x, int* log2_result); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_QUANTIZATION_UTIL_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_QUANTIZATION_UTIL_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/quantization_util_test.cc b/tensorflow/lite/kernels/internal/quantization_util_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/quantization_util_test.cc rename to tensorflow/lite/kernels/internal/quantization_util_test.cc index 25ea72b886a06ea31d35d468441e82814813aee3..2f8f7713795bf0e736fe85fcb582744974654b9e 100644 --- a/tensorflow/contrib/lite/kernels/internal/quantization_util_test.cc +++ b/tensorflow/lite/kernels/internal/quantization_util_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" #include #include diff --git a/tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_float.h b/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h similarity index 90% rename from tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_float.h rename to tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h index 11224270a4b17f4299703eaaa0dfd49b42b2a321..0cecb16b48c9199655b393acdd347ea2e54817da 100644 --- a/tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_float.h +++ b/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_FLOAT_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_FLOAT_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_FLOAT_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_FLOAT_H_ -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace reference_ops { @@ -97,4 +97,4 @@ inline void DepthwiseConv( } // end namespace reference_ops } // end namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_FLOAT_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_FLOAT_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_uint8.h b/tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h similarity index 91% rename from tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_uint8.h rename to tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h index eab28e6c84c77fd9a12a97203e05b79c3ab5fb31..002444b6810925910a651dd5c919a46ac8e5fb47 100644 --- a/tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_uint8.h +++ b/tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_UINT8_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_UINT8_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_UINT8_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_UINT8_H_ #include #include "fixedpoint/fixedpoint.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace reference_ops { @@ -109,4 +109,4 @@ inline void DepthwiseConv( } // end namespace reference_ops } // end namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_UINT8_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_DEPTHWISECONV_UINT8_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/reference/fully_connected.h b/tensorflow/lite/kernels/internal/reference/fully_connected.h similarity index 96% rename from tensorflow/contrib/lite/kernels/internal/reference/fully_connected.h rename to tensorflow/lite/kernels/internal/reference/fully_connected.h index 3c7fd2925671311ce3e4bf15ce18c749f630db3c..8495452220b8e7692a5e0e3e2c841c33d8425597 100644 --- a/tensorflow/contrib/lite/kernels/internal/reference/fully_connected.h +++ b/tensorflow/lite/kernels/internal/reference/fully_connected.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_FULLY_CONNECTED_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_FULLY_CONNECTED_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_FULLY_CONNECTED_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_FULLY_CONNECTED_H_ #include "fixedpoint/fixedpoint.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/round.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/round.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace reference_ops { @@ -323,4 +323,4 @@ inline void ShuffledFullyConnected( } // namespace reference_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_FULLY_CONNECTED_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_FULLY_CONNECTED_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/reference/legacy_reference_ops.h b/tensorflow/lite/kernels/internal/reference/legacy_reference_ops.h similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/reference/legacy_reference_ops.h rename to tensorflow/lite/kernels/internal/reference/legacy_reference_ops.h index c8b64cfd96798c6cf5e57064f9a9af139fa37471..bee3ec77755ca61f092827c3c579b1e0d38a472b 100644 --- a/tensorflow/contrib/lite/kernels/internal/reference/legacy_reference_ops.h +++ b/tensorflow/lite/kernels/internal/reference/legacy_reference_ops.h @@ -12,17 +12,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_LEGACY_REFERENCE_OPS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_LEGACY_REFERENCE_OPS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_LEGACY_REFERENCE_OPS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_LEGACY_REFERENCE_OPS_H_ #include #include -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/legacy_types.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_float.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/depthwiseconv_uint8.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/legacy_types.h" +#include "tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h" +#include "tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" namespace tflite { @@ -2122,4 +2122,4 @@ inline void Slice(const T* input_data, const Dims<4>& input_dims, } // namespace reference_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_LEGACY_REFERENCE_OPS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_LEGACY_REFERENCE_OPS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/reference/portable_tensor_utils.cc b/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/internal/reference/portable_tensor_utils.cc rename to tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc index 70d25c4bd9357ac842027429e91663e2603ecb69..d692063a968dab654eaf46b9956ddcd338b64410 100644 --- a/tensorflow/contrib/lite/kernels/internal/reference/portable_tensor_utils.cc +++ b/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc @@ -16,10 +16,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/internal/round.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/internal/round.h" +#include "tensorflow/lite/kernels/op_macros.h" #if defined(_MSC_VER) #define __restrict__ __restrict diff --git a/tensorflow/contrib/lite/kernels/internal/reference/portable_tensor_utils.h b/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.h similarity index 97% rename from tensorflow/contrib/lite/kernels/internal/reference/portable_tensor_utils.h rename to tensorflow/lite/kernels/internal/reference/portable_tensor_utils.h index 714b1164ee2d84ae5a580c2b4137bd07124f8946..a06ebc1600d4fe47cf054b4e157bc21a5f70ddfc 100644 --- a/tensorflow/contrib/lite/kernels/internal/reference/portable_tensor_utils.h +++ b/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_PORTABLE_TENSOR_UTILS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_PORTABLE_TENSOR_UTILS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_PORTABLE_TENSOR_UTILS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_PORTABLE_TENSOR_UTILS_H_ // TODO(ghodrat): Remove this header file and the dependency to internal data // structure. -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" #if defined(_MSC_VER) #define __restrict__ __restrict @@ -265,4 +265,4 @@ void MeanStddevNormalization(const float* input_vector, float* output_vector, } // namespace tensor_utils } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_PORTABLE_TENSOR_UTILS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_PORTABLE_TENSOR_UTILS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h b/tensorflow/lite/kernels/internal/reference/reference_ops.h similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h rename to tensorflow/lite/kernels/internal/reference/reference_ops.h index 6bee1439a98c080f7f190541cb2682d299eec424..e5e43ad6c8175698a7eea18e8cf179d1bf11c7ce 100644 --- a/tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h +++ b/tensorflow/lite/kernels/internal/reference/reference_ops.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_REFERENCE_OPS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_REFERENCE_OPS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_REFERENCE_OPS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_REFERENCE_OPS_H_ #include #include @@ -26,13 +26,13 @@ limitations under the License. #include "fixedpoint/fixedpoint.h" #include "public/gemmlowp.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/fully_connected.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/softmax.h" -#include "tensorflow/contrib/lite/kernels/internal/round.h" -#include "tensorflow/contrib/lite/kernels/internal/strided_slice_logic.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/fully_connected.h" +#include "tensorflow/lite/kernels/internal/reference/softmax.h" +#include "tensorflow/lite/kernels/internal/round.h" +#include "tensorflow/lite/kernels/internal/strided_slice_logic.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { @@ -4467,4 +4467,4 @@ inline void ResizeNearestNeighbor( } // namespace reference_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_REFERENCE_OPS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_REFERENCE_OPS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/reference/softmax.h b/tensorflow/lite/kernels/internal/reference/softmax.h similarity index 92% rename from tensorflow/contrib/lite/kernels/internal/reference/softmax.h rename to tensorflow/lite/kernels/internal/reference/softmax.h index 7d442961349e349b3101d8a1798ee7dd388426d3..51de6b51aa5308b69dd5b9ad6bf29cd18c0550ba 100644 --- a/tensorflow/contrib/lite/kernels/internal/reference/softmax.h +++ b/tensorflow/lite/kernels/internal/reference/softmax.h @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_SOFTMAX_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_SOFTMAX_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_SOFTMAX_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_SOFTMAX_H_ #include "fixedpoint/fixedpoint.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/round.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/round.h" +#include "tensorflow/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace reference_ops { @@ -176,4 +176,4 @@ inline void Softmax(const float* in, const int input_size, const int batch_size, } // namespace reference_ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_REFERENCE_SOFTMAX_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_SOFTMAX_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/resize_bilinear_test.cc b/tensorflow/lite/kernels/internal/resize_bilinear_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/internal/resize_bilinear_test.cc rename to tensorflow/lite/kernels/internal/resize_bilinear_test.cc index 15df31f75a69b9c0076eb4978e06707b5966417d..1c5ac1992f0f649ca47e2a5bc81ea332abc46bf5 100644 --- a/tensorflow/contrib/lite/kernels/internal/resize_bilinear_test.cc +++ b/tensorflow/lite/kernels/internal/resize_bilinear_test.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/test_util.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/test_util.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/internal/resize_nearest_neighbor_test.cc b/tensorflow/lite/kernels/internal/resize_nearest_neighbor_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/internal/resize_nearest_neighbor_test.cc rename to tensorflow/lite/kernels/internal/resize_nearest_neighbor_test.cc index a26410e78c67f17eaed11df2038f8b4794f6af4d..102ee04e6a89bd5ca53452a8567464bca95e4675 100644 --- a/tensorflow/contrib/lite/kernels/internal/resize_nearest_neighbor_test.cc +++ b/tensorflow/lite/kernels/internal/resize_nearest_neighbor_test.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/test_util.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/test_util.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/internal/round.h b/tensorflow/lite/kernels/internal/round.h similarity index 86% rename from tensorflow/contrib/lite/kernels/internal/round.h rename to tensorflow/lite/kernels/internal/round.h index f299d0bd8733dc603c4950091c8ac3d7890548a7..cb494bfd5374d90bac0c8f444e186f137f45a91f 100644 --- a/tensorflow/contrib/lite/kernels/internal/round.h +++ b/tensorflow/lite/kernels/internal/round.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_ROUND_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_ROUND_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_ROUND_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_ROUND_H_ #include @@ -36,4 +36,4 @@ inline T TfLiteRound(const T x) { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_ROUND_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_ROUND_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/softmax_quantized_test.cc b/tensorflow/lite/kernels/internal/softmax_quantized_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/internal/softmax_quantized_test.cc rename to tensorflow/lite/kernels/internal/softmax_quantized_test.cc index 831fb3c24353b2e321c15808c1cac78ca9e9a093..743ce0355c96fd2766fd2315299c2419703f11b7 100644 --- a/tensorflow/contrib/lite/kernels/internal/softmax_quantized_test.cc +++ b/tensorflow/lite/kernels/internal/softmax_quantized_test.cc @@ -23,11 +23,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/test_util.h" -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/test_util.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/internal/spectrogram.cc b/tensorflow/lite/kernels/internal/spectrogram.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/spectrogram.cc rename to tensorflow/lite/kernels/internal/spectrogram.cc index 20abcb725859d03f83c969369bddf1429895e0ba..58769ad8cc7a06b414cfde65b7b86738307f9b20 100644 --- a/tensorflow/contrib/lite/kernels/internal/spectrogram.cc +++ b/tensorflow/lite/kernels/internal/spectrogram.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/spectrogram.h" +#include "tensorflow/lite/kernels/internal/spectrogram.h" #include #include diff --git a/tensorflow/contrib/lite/kernels/internal/spectrogram.h b/tensorflow/lite/kernels/internal/spectrogram.h similarity index 95% rename from tensorflow/contrib/lite/kernels/internal/spectrogram.h rename to tensorflow/lite/kernels/internal/spectrogram.h index b77a68f7dfe6edb07ec4e5db540c673b2d6f6d6e..b885b9d7d2d84584faa8e2af02216d2d2bc72e56 100644 --- a/tensorflow/contrib/lite/kernels/internal/spectrogram.h +++ b/tensorflow/lite/kernels/internal/spectrogram.h @@ -28,8 +28,8 @@ limitations under the License. // window = hann(window_length_samples, 'periodic'); // S = abs(spectrogram(audio, window, overlap_samples)).^2; -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_ #include #include @@ -107,4 +107,4 @@ class Spectrogram { } // namespace internal } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_SPECTROGRAM_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/strided_slice_logic.h b/tensorflow/lite/kernels/internal/strided_slice_logic.h similarity index 94% rename from tensorflow/contrib/lite/kernels/internal/strided_slice_logic.h rename to tensorflow/lite/kernels/internal/strided_slice_logic.h index af5db1064c1b7b13665edadf16425b8e8e8247f6..e7fd5ca93195562cdfa0bd2533ab0efba34b9412 100644 --- a/tensorflow/contrib/lite/kernels/internal/strided_slice_logic.h +++ b/tensorflow/lite/kernels/internal/strided_slice_logic.h @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_STRIDED_SLICE_LOGIC_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_STRIDED_SLICE_LOGIC_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_STRIDED_SLICE_LOGIC_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_STRIDED_SLICE_LOGIC_H_ #include #include -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { namespace strided_slice { @@ -195,4 +195,4 @@ inline tflite::StridedSliceParams BuildStridedSliceParams( } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_STRIDED_SLICE_LOGIC_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_STRIDED_SLICE_LOGIC_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/tensor.h b/tensorflow/lite/kernels/internal/tensor.h similarity index 91% rename from tensorflow/contrib/lite/kernels/internal/tensor.h rename to tensorflow/lite/kernels/internal/tensor.h index 689cea03e75875c27e72a40701da25391bfbd32b..b806753d886132d996d57c20d80e7616da758497 100644 --- a/tensorflow/contrib/lite/kernels/internal/tensor.h +++ b/tensorflow/lite/kernels/internal/tensor.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_H_ #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_ctypes.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { @@ -111,4 +111,4 @@ class VectorOfQuantizedTensors : public VectorOfTensors { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/tensor_ctypes.h b/tensorflow/lite/kernels/internal/tensor_ctypes.h similarity index 89% rename from tensorflow/contrib/lite/kernels/internal/tensor_ctypes.h rename to tensorflow/lite/kernels/internal/tensor_ctypes.h index 9f5b33d21753512df7b6d3bbfc5abdbec1bc71b7..d24dca9bfbbee78498f797713dac8b67a232923a 100644 --- a/tensorflow/contrib/lite/kernels/internal/tensor_ctypes.h +++ b/tensorflow/lite/kernels/internal/tensor_ctypes.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_CTYPES_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_CTYPES_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_CTYPES_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_CTYPES_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { @@ -99,4 +99,4 @@ inline RuntimeShape GetTensorShape(const TfLiteTensor* tensor) { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_CTYPES_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_CTYPES_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/tensor_test.cc b/tensorflow/lite/kernels/internal/tensor_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/internal/tensor_test.cc rename to tensorflow/lite/kernels/internal/tensor_test.cc index 2ed73ba82d6473b6756de712b7d8232ae9d20d3f..7bfe280d6f883ca03dbd2d517509355e578e4375 100644 --- a/tensorflow/contrib/lite/kernels/internal/tensor_test.cc +++ b/tensorflow/lite/kernels/internal/tensor_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/internal/tensor.h" #include #include diff --git a/tensorflow/contrib/lite/kernels/internal/tensor_utils.cc b/tensorflow/lite/kernels/internal/tensor_utils.cc similarity index 74% rename from tensorflow/contrib/lite/kernels/internal/tensor_utils.cc rename to tensorflow/lite/kernels/internal/tensor_utils.cc index f4181b18a8f46fd9bef4b81a210a6b8134a4e9d0..701e5a66aa1bac15dedfa677ec34c8142c0a4309 100644 --- a/tensorflow/contrib/lite/kernels/internal/tensor_utils.cc +++ b/tensorflow/lite/kernels/internal/tensor_utils.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/internal/common.h" #ifndef USE_NEON #if defined(__ARM_NEON__) || defined(__ARM_NEON) @@ -22,7 +22,7 @@ limitations under the License. #endif // USE_NEON #ifdef USE_NEON -#include "tensorflow/contrib/lite/kernels/internal/optimized/neon_tensor_utils.h" +#include "tensorflow/lite/kernels/internal/optimized/neon_tensor_utils.h" #else -#include "tensorflow/contrib/lite/kernels/internal/reference/portable_tensor_utils.h" +#include "tensorflow/lite/kernels/internal/reference/portable_tensor_utils.h" #endif // USE_NEON diff --git a/tensorflow/contrib/lite/kernels/internal/tensor_utils.h b/tensorflow/lite/kernels/internal/tensor_utils.h similarity index 96% rename from tensorflow/contrib/lite/kernels/internal/tensor_utils.h rename to tensorflow/lite/kernels/internal/tensor_utils.h index b0fe5adf65de83269af55781b48f9fd9bd819a5e..71ae69522f9a45745a9ed9eae211db3d048ba43d 100644 --- a/tensorflow/contrib/lite/kernels/internal/tensor_utils.h +++ b/tensorflow/lite/kernels/internal/tensor_utils.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_UTILS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_UTILS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_UTILS_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_UTILS_H_ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" #if defined(_MSC_VER) #define __restrict__ __restrict @@ -165,4 +165,4 @@ void MeanStddevNormalization(const float* input_vector, float* output_vector, } // namespace tensor_utils } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TENSOR_UTILS_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_TENSOR_UTILS_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/tensor_utils_test.cc b/tensorflow/lite/kernels/internal/tensor_utils_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/internal/tensor_utils_test.cc rename to tensorflow/lite/kernels/internal/tensor_utils_test.cc index 6458af714b8c714f7132dc17adf4eca20ece3e37..29866d066406e58e06e6caa2e5b410460564c966 100644 --- a/tensorflow/contrib/lite/kernels/internal/tensor_utils_test.cc +++ b/tensorflow/lite/kernels/internal/tensor_utils_test.cc @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/kernels/test_util.h" namespace tflite { namespace tensor_utils { diff --git a/tensorflow/contrib/lite/kernels/internal/test_util.cc b/tensorflow/lite/kernels/internal/test_util.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/internal/test_util.cc rename to tensorflow/lite/kernels/internal/test_util.cc index 390d57a01088700f7abf9f53b08f5fbf742b22f7..4462775ddbdd250c00b65b15de2082e1219e358b 100644 --- a/tensorflow/contrib/lite/kernels/internal/test_util.cc +++ b/tensorflow/lite/kernels/internal/test_util.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/test_util.h" +#include "tensorflow/lite/kernels/internal/test_util.h" #include #include diff --git a/tensorflow/contrib/lite/kernels/internal/test_util.h b/tensorflow/lite/kernels/internal/test_util.h similarity index 93% rename from tensorflow/contrib/lite/kernels/internal/test_util.h rename to tensorflow/lite/kernels/internal/test_util.h index e4a383bedfc034a5398a3a1a78082e49c38f4afe..766a627c99e03b37cbb780d0bebe231ea3a6f256 100644 --- a/tensorflow/contrib/lite/kernels/internal/test_util.h +++ b/tensorflow/lite/kernels/internal/test_util.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TEST_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TEST_UTIL_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_TEST_UTIL_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_TEST_UTIL_H_ #include #include @@ -22,7 +22,7 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace tflite { @@ -100,4 +100,4 @@ void FillRandomSkyscraper(std::vector* vec, int depth, } } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TEST_UTIL_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_TEST_UTIL_H_ diff --git a/tensorflow/contrib/lite/kernels/internal/types.h b/tensorflow/lite/kernels/internal/types.h similarity index 98% rename from tensorflow/contrib/lite/kernels/internal/types.h rename to tensorflow/lite/kernels/internal/types.h index 694c1797da27e965397e60b66b198c1a50c0e471..04b95ddc63d7a651ff57417e476320f6d3a53ffb 100644 --- a/tensorflow/contrib/lite/kernels/internal/types.h +++ b/tensorflow/lite/kernels/internal/types.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TYPES_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TYPES_H_ +#ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_TYPES_H_ +#define TENSORFLOW_LITE_KERNELS_INTERNAL_TYPES_H_ #include #include -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" namespace tflite { @@ -86,7 +86,7 @@ enum class FullyConnectedWeightsFormat : uint8 { // bytes before using them in signed arithmetic, see this file for more // explanations on the 'signed int8 trick' in matrix multiplication kernels: // - // tensorflow/contrib/lite/toco/graph_transformations/ensure_uint8_weights_safe_for_fast_int8_kernels.cc + // tensorflow/lite/toco/graph_transformations/ensure_uint8_weights_safe_for_fast_int8_kernels.cc // kShuffled4x16Int8, }; @@ -1033,4 +1033,4 @@ inline void GetActivationParams(const P& params, float* min, float* max) { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_INTERNAL_TYPES_H_ +#endif // TENSORFLOW_LITE_KERNELS_INTERNAL_TYPES_H_ diff --git a/tensorflow/contrib/lite/kernels/kernel_util.cc b/tensorflow/lite/kernels/kernel_util.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/kernel_util.cc rename to tensorflow/lite/kernels/kernel_util.cc index 503ef28459191208fb16d3abf8b04b9f9abb1332..2ac3fbe4f5d7d608eb9c9cd453913e6875b01505 100644 --- a/tensorflow/contrib/lite/kernels/kernel_util.cc +++ b/tensorflow/lite/kernels/kernel_util.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/kernel_util.h" #include #include #include -#include "tensorflow/contrib/lite/kernels/internal/round.h" +#include "tensorflow/lite/kernels/internal/round.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/kernel_util.h b/tensorflow/lite/kernels/kernel_util.h similarity index 95% rename from tensorflow/contrib/lite/kernels/kernel_util.h rename to tensorflow/lite/kernels/kernel_util.h index e9a5fd7a4052cd63db5c3b92e5b5235d3d369668..3cc00588d63feddc90d17997cebe2c8d063c45eb 100644 --- a/tensorflow/contrib/lite/kernels/kernel_util.h +++ b/tensorflow/lite/kernels/kernel_util.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_KERNEL_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_KERNEL_UTIL_H_ +#ifndef TENSORFLOW_LITE_KERNELS_KERNEL_UTIL_H_ +#define TENSORFLOW_LITE_KERNELS_KERNEL_UTIL_H_ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { @@ -135,4 +135,4 @@ TfLiteStatus CalculateShapeForBroadcast(TfLiteContext* context, TfLiteIntArray** output_shape); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_KERNEL_UTIL_H_ +#endif // TENSORFLOW_LITE_KERNELS_KERNEL_UTIL_H_ diff --git a/tensorflow/contrib/lite/kernels/kernel_util_test.cc b/tensorflow/lite/kernels/kernel_util_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/kernel_util_test.cc rename to tensorflow/lite/kernels/kernel_util_test.cc index bf6f249acc85ee050681eb6f33067be2a1aa037e..70eb18365891097686d579bde4a5457703e84aee 100644 --- a/tensorflow/contrib/lite/kernels/kernel_util_test.cc +++ b/tensorflow/lite/kernels/kernel_util_test.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/kernel_util.h" #include #include -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/l2norm.cc b/tensorflow/lite/kernels/l2norm.cc similarity index 90% rename from tensorflow/contrib/lite/kernels/l2norm.cc rename to tensorflow/lite/kernels/l2norm.cc index e02d7df9ef1a383bcb930d345f33e798724bb921..19a4824e9398decec862bb7f5d20ac05b2652226 100644 --- a/tensorflow/contrib/lite/kernels/l2norm.cc +++ b/tensorflow/lite/kernels/l2norm.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/l2norm_test.cc b/tensorflow/lite/kernels/l2norm_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/l2norm_test.cc rename to tensorflow/lite/kernels/l2norm_test.cc index 070ed60040997f18f7e8053acc9532adc2377400..50108a5a264c3624bbd9c230f50c65f5897480bb 100644 --- a/tensorflow/contrib/lite/kernels/l2norm_test.cc +++ b/tensorflow/lite/kernels/l2norm_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/layer_norm_lstm.cc b/tensorflow/lite/kernels/layer_norm_lstm.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/layer_norm_lstm.cc rename to tensorflow/lite/kernels/layer_norm_lstm.cc index 48dd03e7ae7e2a8bd4d89e5210a434eccec08030..5b0046a7b31c9c2e805c6de48572776cf8d3883c 100644 --- a/tensorflow/contrib/lite/kernels/layer_norm_lstm.cc +++ b/tensorflow/lite/kernels/layer_norm_lstm.cc @@ -17,9 +17,9 @@ limitations under the License. // deviation to the activation of the LSTM layers. Please see // https://arxiv.org/abs/1607.06450 for details. #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/layer_norm_lstm_test.cc b/tensorflow/lite/kernels/layer_norm_lstm_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/layer_norm_lstm_test.cc rename to tensorflow/lite/kernels/layer_norm_lstm_test.cc index 1535f750f94e725061265f76209fbaa213558346..e89bce50c311eb0bf685a7da487c18704e831c91 100644 --- a/tensorflow/contrib/lite/kernels/layer_norm_lstm_test.cc +++ b/tensorflow/lite/kernels/layer_norm_lstm_test.cc @@ -20,10 +20,10 @@ limitations under the License. #include #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/local_response_norm.cc b/tensorflow/lite/kernels/local_response_norm.cc similarity index 89% rename from tensorflow/contrib/lite/kernels/local_response_norm.cc rename to tensorflow/lite/kernels/local_response_norm.cc index 334d2a2788d10f072b30990ed9a0245d6204af81..5cbf5d9eae700fa52b7fc74f2066df3c68483cd8 100644 --- a/tensorflow/contrib/lite/kernels/local_response_norm.cc +++ b/tensorflow/lite/kernels/local_response_norm.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/local_response_norm_test.cc b/tensorflow/lite/kernels/local_response_norm_test.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/local_response_norm_test.cc rename to tensorflow/lite/kernels/local_response_norm_test.cc index d75ce258a04c820d8f82735988c01d0154ef36f2..bd644e07f46562f8bbdc6c9cada709337feae889 100644 --- a/tensorflow/contrib/lite/kernels/local_response_norm_test.cc +++ b/tensorflow/lite/kernels/local_response_norm_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/log_softmax_test.cc b/tensorflow/lite/kernels/log_softmax_test.cc similarity index 91% rename from tensorflow/contrib/lite/kernels/log_softmax_test.cc rename to tensorflow/lite/kernels/log_softmax_test.cc index 1acc966cdc947cc68d3f58be08fabd9ef7679f88..fb126295e6afdf485a7633c5e0373e89277ab794 100644 --- a/tensorflow/contrib/lite/kernels/log_softmax_test.cc +++ b/tensorflow/lite/kernels/log_softmax_test.cc @@ -20,11 +20,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/logical.cc b/tensorflow/lite/kernels/logical.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/logical.cc rename to tensorflow/lite/kernels/logical.cc index f770cb35d1b9ffa3f8164f8a76d7a69e4713162d..582bcff64a882e4431b3682b78a596b29701ad76 100644 --- a/tensorflow/contrib/lite/kernels/logical.cc +++ b/tensorflow/lite/kernels/logical.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/logical_test.cc b/tensorflow/lite/kernels/logical_test.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/logical_test.cc rename to tensorflow/lite/kernels/logical_test.cc index 206cbde98fa48ec5f7c863bbced9dccc9cab5207..b31616452717b14c1688f43c1264ee2f01577136 100644 --- a/tensorflow/contrib/lite/kernels/logical_test.cc +++ b/tensorflow/lite/kernels/logical_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/lsh_projection.cc b/tensorflow/lite/kernels/lsh_projection.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/lsh_projection.cc rename to tensorflow/lite/kernels/lsh_projection.cc index 9fa1c5f1002d893daa776528d53a6249bfe0ac98..f68ff4d634a7c959c74b3ed7f3f4137af40313c1 100644 --- a/tensorflow/contrib/lite/kernels/lsh_projection.cc +++ b/tensorflow/lite/kernels/lsh_projection.cc @@ -59,10 +59,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/lsh_projection_test.cc b/tensorflow/lite/kernels/lsh_projection_test.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/lsh_projection_test.cc rename to tensorflow/lite/kernels/lsh_projection_test.cc index 414d728dfc153058ec878d3c766f58e86815cd3f..cb2724a6ccebd9d620ede38fbaae1fab0a1f31c0 100644 --- a/tensorflow/contrib/lite/kernels/lsh_projection_test.cc +++ b/tensorflow/lite/kernels/lsh_projection_test.cc @@ -16,10 +16,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/lstm.cc b/tensorflow/lite/kernels/lstm.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/lstm.cc rename to tensorflow/lite/kernels/lstm.cc index 3666122e941f550b57ba9be4d4a1b93028519790..b57e2883b05232325d55ae9e6a08ed142b9a2dbb 100644 --- a/tensorflow/contrib/lite/kernels/lstm.cc +++ b/tensorflow/lite/kernels/lstm.cc @@ -20,17 +20,17 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/gemm_support.h" -#include "tensorflow/contrib/lite/kernels/internal/kernel_utils.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/lstm_eval.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/gemm_support.h" +#include "tensorflow/lite/kernels/internal/kernel_utils.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/lstm_eval.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/lstm_eval.cc b/tensorflow/lite/kernels/lstm_eval.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/lstm_eval.cc rename to tensorflow/lite/kernels/lstm_eval.cc index f2ba7b46d9b053358f71b076fbdfc17a3e423f38..f179ecb195e4dd999cb6e3ed0582e6385a3436b0 100644 --- a/tensorflow/contrib/lite/kernels/lstm_eval.cc +++ b/tensorflow/lite/kernels/lstm_eval.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/lstm_eval.h" +#include "tensorflow/lite/kernels/lstm_eval.h" #include -#include "tensorflow/contrib/lite/kernels/internal/kernel_utils.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/internal/kernel_utils.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/lstm_eval.h b/tensorflow/lite/kernels/lstm_eval.h similarity index 93% rename from tensorflow/contrib/lite/kernels/lstm_eval.h rename to tensorflow/lite/kernels/lstm_eval.h index 8d8b97aead63f2e42979c9068c696dbd38269294..c8a4d284f3c431e88fd0d52c98807161de14cba9 100644 --- a/tensorflow/contrib/lite/kernels/lstm_eval.h +++ b/tensorflow/lite/kernels/lstm_eval.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_LSTM_EVAL_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_LSTM_EVAL_H_ +#ifndef TENSORFLOW_LITE_KERNELS_LSTM_EVAL_H_ +#define TENSORFLOW_LITE_KERNELS_LSTM_EVAL_H_ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { namespace ops { @@ -78,4 +78,4 @@ TfLiteStatus EvalHybrid( } // namespace builtin } // namespace ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_LSTM_EVAL_H_ +#endif // TENSORFLOW_LITE_KERNELS_LSTM_EVAL_H_ diff --git a/tensorflow/contrib/lite/kernels/lstm_test.cc b/tensorflow/lite/kernels/lstm_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/lstm_test.cc rename to tensorflow/lite/kernels/lstm_test.cc index f8947db724217421aba637ae884bedb5d412b2db..03ad2e899d29b17d430bf51721e9b8b75cdb79d4 100644 --- a/tensorflow/contrib/lite/kernels/lstm_test.cc +++ b/tensorflow/lite/kernels/lstm_test.cc @@ -22,10 +22,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/maximum_minimum.cc b/tensorflow/lite/kernels/maximum_minimum.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/maximum_minimum.cc rename to tensorflow/lite/kernels/maximum_minimum.cc index 7cb01465eef45cead2bcd4cbeffc70b599937dff..3bcaabf675eba4f528fe73b01610d915e7780f85 100644 --- a/tensorflow/contrib/lite/kernels/maximum_minimum.cc +++ b/tensorflow/lite/kernels/maximum_minimum.cc @@ -14,12 +14,12 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/maximum_minimum_test.cc b/tensorflow/lite/kernels/maximum_minimum_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/maximum_minimum_test.cc rename to tensorflow/lite/kernels/maximum_minimum_test.cc index fd4d5367c5a6369b5ffeeea30a910262bc0796a9..acb74e09d3fb47c33c6c146af4d0b1b1030491be 100644 --- a/tensorflow/contrib/lite/kernels/maximum_minimum_test.cc +++ b/tensorflow/lite/kernels/maximum_minimum_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/mfcc.cc b/tensorflow/lite/kernels/mfcc.cc similarity index 89% rename from tensorflow/contrib/lite/kernels/mfcc.cc rename to tensorflow/lite/kernels/mfcc.cc index 5153ce5634c33e829c3742e4d11a22a18f0d2f79..f5b0212728e02b83bfb69a562ca948a7f44b2002 100644 --- a/tensorflow/contrib/lite/kernels/mfcc.cc +++ b/tensorflow/lite/kernels/mfcc.cc @@ -12,17 +12,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/internal/mfcc.h" +#include "tensorflow/lite/kernels/internal/mfcc.h" #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/mfcc_dct.h" -#include "tensorflow/contrib/lite/kernels/internal/mfcc_mel_filterbank.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/mfcc_dct.h" +#include "tensorflow/lite/kernels/internal/mfcc_mel_filterbank.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/mfcc_test.cc b/tensorflow/lite/kernels/mfcc_test.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/mfcc_test.cc rename to tensorflow/lite/kernels/mfcc_test.cc index fe692232227966e42008856ad5c0dd5c041ad0e2..ade5bf53d11f7dd26a80fd33a85599834fe0293f 100644 --- a/tensorflow/contrib/lite/kernels/mfcc_test.cc +++ b/tensorflow/lite/kernels/mfcc_test.cc @@ -19,10 +19,10 @@ limitations under the License. #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/mul.cc b/tensorflow/lite/kernels/mul.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/mul.cc rename to tensorflow/lite/kernels/mul.cc index e0aac8a84244ddb048e6055aa16c6a34e0f1e2c3..b405dee47ef01e4c84b1b6081faf917c9ed1328f 100644 --- a/tensorflow/contrib/lite/kernels/mul.cc +++ b/tensorflow/lite/kernels/mul.cc @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/mul_test.cc b/tensorflow/lite/kernels/mul_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/mul_test.cc rename to tensorflow/lite/kernels/mul_test.cc index 0f9c0c2eee51e7ca2c70aa58edf38d1cc35363f2..200cc26dadc3527813a7dabd3b9ca4811d4c8856 100644 --- a/tensorflow/contrib/lite/kernels/mul_test.cc +++ b/tensorflow/lite/kernels/mul_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/neg.cc b/tensorflow/lite/kernels/neg.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/neg.cc rename to tensorflow/lite/kernels/neg.cc index 0ddd0644f5a1cc9e271e9feb04f2b0053ffe0937..e9a1aa232542308e4ee091f9b7cb9e8e75330bfd 100644 --- a/tensorflow/contrib/lite/kernels/neg.cc +++ b/tensorflow/lite/kernels/neg.cc @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/neg_test.cc b/tensorflow/lite/kernels/neg_test.cc similarity index 91% rename from tensorflow/contrib/lite/kernels/neg_test.cc rename to tensorflow/lite/kernels/neg_test.cc index 3d3594c60bbe1684dff7b1816f5f8a715b1abc60..d461ede3c480e2b9611cade2e8eeb5189387b264 100644 --- a/tensorflow/contrib/lite/kernels/neg_test.cc +++ b/tensorflow/lite/kernels/neg_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/one_hot.cc b/tensorflow/lite/kernels/one_hot.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/one_hot.cc rename to tensorflow/lite/kernels/one_hot.cc index 910aed6f142dc9c8af446fe83cacb4f714882357..2ac12fe9308f382357bd708263640793b0eec371 100644 --- a/tensorflow/contrib/lite/kernels/one_hot.cc +++ b/tensorflow/lite/kernels/one_hot.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/one_hot_test.cc b/tensorflow/lite/kernels/one_hot_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/one_hot_test.cc rename to tensorflow/lite/kernels/one_hot_test.cc index 6b604ec7a7f86b333805d91a95cb5054f0257ae4..85438327e7e3a31ec22a0361e7f503e78b465ffb 100644 --- a/tensorflow/contrib/lite/kernels/one_hot_test.cc +++ b/tensorflow/lite/kernels/one_hot_test.cc @@ -16,10 +16,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/op_macros.h b/tensorflow/lite/kernels/op_macros.h similarity index 88% rename from tensorflow/contrib/lite/kernels/op_macros.h rename to tensorflow/lite/kernels/op_macros.h index d0c5630649c98f9d220063fdd3b1d6c795397952..1a54a378b03d6440a254ee12ac51d5976cc0a815 100644 --- a/tensorflow/contrib/lite/kernels/op_macros.h +++ b/tensorflow/lite/kernels/op_macros.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_OP_MACROS_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_OP_MACROS_H_ +#ifndef TENSORFLOW_LITE_KERNELS_OP_MACROS_H_ +#define TENSORFLOW_LITE_KERNELS_OP_MACROS_H_ // If we're on a platform without standard IO functions, fall back to a // non-portable function. #ifdef TF_LITE_MCU_DEBUG_LOG -#include "tensorflow/contrib/lite/experimental/micro/micro_error_reporter.h" +#include "tensorflow/lite/experimental/micro/micro_error_reporter.h" #define DEBUG_LOG(x) \ do { \ @@ -67,4 +67,4 @@ inline void InfiniteLoop() { if ((x) != (y)) TF_LITE_FATAL(#x " didn't equal " #y); \ } while (0) -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_OP_MACROS_H_ +#endif // TENSORFLOW_LITE_KERNELS_OP_MACROS_H_ diff --git a/tensorflow/contrib/lite/kernels/optional_tensor_test.cc b/tensorflow/lite/kernels/optional_tensor_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/optional_tensor_test.cc rename to tensorflow/lite/kernels/optional_tensor_test.cc index 90a915bb023b2b3db86e8334e93e2f1d41e0a9f2..a09f86015894c457525c5ce7638aa4a05b77a211 100644 --- a/tensorflow/contrib/lite/kernels/optional_tensor_test.cc +++ b/tensorflow/lite/kernels/optional_tensor_test.cc @@ -20,10 +20,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/pack.cc b/tensorflow/lite/kernels/pack.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/pack.cc rename to tensorflow/lite/kernels/pack.cc index c368582ef76c725d575e1b2c50d08d656c876eca..309d96d802cb312fbf367378e4ba850e076dd306 100644 --- a/tensorflow/contrib/lite/kernels/pack.cc +++ b/tensorflow/lite/kernels/pack.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/pack_test.cc b/tensorflow/lite/kernels/pack_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/pack_test.cc rename to tensorflow/lite/kernels/pack_test.cc index c70dbd2764b615530a9587b521a3616eece92cb6..a47e9ff40d079ba13c99891f10b372a5f0841daa 100644 --- a/tensorflow/contrib/lite/kernels/pack_test.cc +++ b/tensorflow/lite/kernels/pack_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/pad.cc b/tensorflow/lite/kernels/pad.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/pad.cc rename to tensorflow/lite/kernels/pad.cc index a3cefe99ccb4041f2bab02919d3ad61daaa1b19e..8e6ed6e741f782f070714164a7af7b4f98a1558f 100644 --- a/tensorflow/contrib/lite/kernels/pad.cc +++ b/tensorflow/lite/kernels/pad.cc @@ -14,13 +14,13 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/pad_test.cc b/tensorflow/lite/kernels/pad_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/pad_test.cc rename to tensorflow/lite/kernels/pad_test.cc index 9c55767f69ce3dec31cbc3d2ef6b2095fe22fef6..109e4b7519164d25082e1fe09d3622c7eef23b76 100644 --- a/tensorflow/contrib/lite/kernels/pad_test.cc +++ b/tensorflow/lite/kernels/pad_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/padding.h b/tensorflow/lite/kernels/padding.h similarity index 90% rename from tensorflow/contrib/lite/kernels/padding.h rename to tensorflow/lite/kernels/padding.h index 42b6b45d3bfc4ae1c4b4fdc93f838a9b165ed580..30aa4f1bd330e2866091948b89786ea2b6290a9e 100644 --- a/tensorflow/contrib/lite/kernels/padding.h +++ b/tensorflow/lite/kernels/padding.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_PADDING_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_PADDING_H_ +#ifndef TENSORFLOW_LITE_KERNELS_PADDING_H_ +#define TENSORFLOW_LITE_KERNELS_PADDING_H_ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/builtin_op_data.h" namespace tflite { @@ -55,4 +55,4 @@ inline TfLitePaddingValues ComputePaddingHeightWidth( } } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_PADDING_H_ +#endif // TENSORFLOW_LITE_KERNELS_PADDING_H_ diff --git a/tensorflow/contrib/lite/kernels/pooling.cc b/tensorflow/lite/kernels/pooling.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/pooling.cc rename to tensorflow/lite/kernels/pooling.cc index 6451142391599e3279b7d20dd0c2a941c909dbdc..694a36ffbcf3c8c9d8fe65e1b922ca03921883b3 100644 --- a/tensorflow/contrib/lite/kernels/pooling.cc +++ b/tensorflow/lite/kernels/pooling.cc @@ -19,14 +19,14 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/kernels/padding.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/padding.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/pooling_test.cc b/tensorflow/lite/kernels/pooling_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/pooling_test.cc rename to tensorflow/lite/kernels/pooling_test.cc index 01c91b2ba905e249c36af19f175c68a7e7f17f6d..80eef02509009c3b553b2696ab5fc00aeccea972 100644 --- a/tensorflow/contrib/lite/kernels/pooling_test.cc +++ b/tensorflow/lite/kernels/pooling_test.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/pow.cc b/tensorflow/lite/kernels/pow.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/pow.cc rename to tensorflow/lite/kernels/pow.cc index 1e96cc80b167914a37aadf39739730a0f8793983..9f84e1cc5e6d838adc62c2f3a69fd122f6d3195c 100644 --- a/tensorflow/contrib/lite/kernels/pow.cc +++ b/tensorflow/lite/kernels/pow.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/pow_test.cc b/tensorflow/lite/kernels/pow_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/pow_test.cc rename to tensorflow/lite/kernels/pow_test.cc index 74b3aef5bd39d8bdb6375f24bd00d793889deef8..60d674e9779f0a94af667affb86e4d11e85a0a11 100644 --- a/tensorflow/contrib/lite/kernels/pow_test.cc +++ b/tensorflow/lite/kernels/pow_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/range.cc b/tensorflow/lite/kernels/range.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/range.cc rename to tensorflow/lite/kernels/range.cc index 241b40574522b847954968efc99b871523408de4..eefe5db1ecee7a762c88a97959adf35411726646 100644 --- a/tensorflow/contrib/lite/kernels/range.cc +++ b/tensorflow/lite/kernels/range.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_ctypes.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/internal/tensor_ctypes.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/range_test.cc b/tensorflow/lite/kernels/range_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/range_test.cc rename to tensorflow/lite/kernels/range_test.cc index 8faa092fb24d90561d70414257c7125a905af971..e1d4aaba433050c9b5c32651d1f317ef04134b10 100644 --- a/tensorflow/contrib/lite/kernels/range_test.cc +++ b/tensorflow/lite/kernels/range_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/reduce.cc b/tensorflow/lite/kernels/reduce.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/reduce.cc rename to tensorflow/lite/kernels/reduce.cc index 4732a37a65a37a295f0041634b65b9b5460a547c..ed2d475f6d7d3809a29da184ef5061e83507697c 100644 --- a/tensorflow/contrib/lite/kernels/reduce.cc +++ b/tensorflow/lite/kernels/reduce.cc @@ -15,13 +15,13 @@ limitations under the License. #include #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/reduce_test.cc b/tensorflow/lite/kernels/reduce_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/reduce_test.cc rename to tensorflow/lite/kernels/reduce_test.cc index fb2ec58ab28ebc12b511590a67181f472464d6e1..c1526bddb719e74a6396dc4aeac4b5827220a65a 100644 --- a/tensorflow/contrib/lite/kernels/reduce_test.cc +++ b/tensorflow/lite/kernels/reduce_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/register.cc b/tensorflow/lite/kernels/register.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/register.cc rename to tensorflow/lite/kernels/register.cc index 92eddf7d79df1b76e4041cb8809a6ab5aa112928..c6834537671034b5736c232486dd5eecfea75033 100644 --- a/tensorflow/contrib/lite/kernels/register.cc +++ b/tensorflow/lite/kernels/register.cc @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/util.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/register.h b/tensorflow/lite/kernels/register.h similarity index 78% rename from tensorflow/contrib/lite/kernels/register.h rename to tensorflow/lite/kernels/register.h index 61856ab9de6563b15232a88d8c198cdbc099d835..eb5ce667d4c9ebcc8e392d06b92736ea41432bd6 100644 --- a/tensorflow/contrib/lite/kernels/register.h +++ b/tensorflow/lite/kernels/register.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_REGISTER_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_REGISTER_H_ +#ifndef TENSORFLOW_LITE_KERNELS_REGISTER_H_ +#define TENSORFLOW_LITE_KERNELS_REGISTER_H_ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/mutable_op_resolver.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/mutable_op_resolver.h" namespace tflite { namespace ops { @@ -37,4 +37,4 @@ class BuiltinOpResolver : public MutableOpResolver { } // namespace ops } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_REGISTER_H_ +#endif // TENSORFLOW_LITE_KERNELS_REGISTER_H_ diff --git a/tensorflow/contrib/lite/kernels/relu1.cc b/tensorflow/lite/kernels/relu1.cc similarity index 92% rename from tensorflow/contrib/lite/kernels/relu1.cc rename to tensorflow/lite/kernels/relu1.cc index abafee2d576fd7f7958513218286afaa6b2f2fc9..5a55631405b6b32a602cfe21ba863d0dc92213ea 100644 --- a/tensorflow/contrib/lite/kernels/relu1.cc +++ b/tensorflow/lite/kernels/relu1.cc @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/relu1_test.cc b/tensorflow/lite/kernels/relu1_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/relu1_test.cc rename to tensorflow/lite/kernels/relu1_test.cc index b1d25a9f504fe290a308119fb1cef0d8f63b599c..f52d10b0b7f32af3444c702835f0674d7181bb7a 100644 --- a/tensorflow/contrib/lite/kernels/relu1_test.cc +++ b/tensorflow/lite/kernels/relu1_test.cc @@ -14,8 +14,8 @@ limitations under the License. ==============================================================================*/ #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/reshape.cc b/tensorflow/lite/kernels/reshape.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/reshape.cc rename to tensorflow/lite/kernels/reshape.cc index f41147b2d6433addc63538fbd8c4338d749535d3..9fcf33f9dd549234eec30ed5c0a607c2140273bb 100644 --- a/tensorflow/contrib/lite/kernels/reshape.cc +++ b/tensorflow/lite/kernels/reshape.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/reshape_test.cc b/tensorflow/lite/kernels/reshape_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/reshape_test.cc rename to tensorflow/lite/kernels/reshape_test.cc index cf60954880af37b45f5703bb514ad6e60d22521e..217fe3ac59fd3d37a65c89a5001f6d0cb7102ef9 100644 --- a/tensorflow/contrib/lite/kernels/reshape_test.cc +++ b/tensorflow/lite/kernels/reshape_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/resize_bilinear.cc b/tensorflow/lite/kernels/resize_bilinear.cc similarity index 92% rename from tensorflow/contrib/lite/kernels/resize_bilinear.cc rename to tensorflow/lite/kernels/resize_bilinear.cc index fb045d15f357350b38319e329d179668c7366761..d42cb188669587a957dd085f9ecb123f44b59437 100644 --- a/tensorflow/contrib/lite/kernels/resize_bilinear.cc +++ b/tensorflow/lite/kernels/resize_bilinear.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/resize_bilinear_test.cc b/tensorflow/lite/kernels/resize_bilinear_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/resize_bilinear_test.cc rename to tensorflow/lite/kernels/resize_bilinear_test.cc index f4289105f7931ae572f219a61b5479287aff926a..530bb32b946f07acf60f3ccbeab0248c7c2b5747 100644 --- a/tensorflow/contrib/lite/kernels/resize_bilinear_test.cc +++ b/tensorflow/lite/kernels/resize_bilinear_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/resize_nearest_neighbor.cc b/tensorflow/lite/kernels/resize_nearest_neighbor.cc similarity index 92% rename from tensorflow/contrib/lite/kernels/resize_nearest_neighbor.cc rename to tensorflow/lite/kernels/resize_nearest_neighbor.cc index 95c920f95c5ec729e7b082797a71861be4cfde93..a48d8004f8b6cead177286328082310237af515a 100644 --- a/tensorflow/contrib/lite/kernels/resize_nearest_neighbor.cc +++ b/tensorflow/lite/kernels/resize_nearest_neighbor.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/resize_nearest_neighbor_test.cc b/tensorflow/lite/kernels/resize_nearest_neighbor_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/resize_nearest_neighbor_test.cc rename to tensorflow/lite/kernels/resize_nearest_neighbor_test.cc index b2154ff72c4c169390e74732062a3f7742cae165..03e2effd84c4adb13db1bb3ada4f5cfe1c0b12c9 100644 --- a/tensorflow/contrib/lite/kernels/resize_nearest_neighbor_test.cc +++ b/tensorflow/lite/kernels/resize_nearest_neighbor_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/select.cc b/tensorflow/lite/kernels/select.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/select.cc rename to tensorflow/lite/kernels/select.cc index 4780a86ee51ee354be6c6baede16f8a40bba7726..4687ab44171fab73ff1b4ef93592b25680f3a59f 100644 --- a/tensorflow/contrib/lite/kernels/select.cc +++ b/tensorflow/lite/kernels/select.cc @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/select_test.cc b/tensorflow/lite/kernels/select_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/select_test.cc rename to tensorflow/lite/kernels/select_test.cc index 5b2e61cd29a7fd7c699fd81cb81e5f9a12c4b18f..5111300e479a92ad9cbf00628750dc61effc50d3 100644 --- a/tensorflow/contrib/lite/kernels/select_test.cc +++ b/tensorflow/lite/kernels/select_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/shape.cc b/tensorflow/lite/kernels/shape.cc similarity index 91% rename from tensorflow/contrib/lite/kernels/shape.cc rename to tensorflow/lite/kernels/shape.cc index 66d4c9e5c1a430b621d873012b6ba392afae4157..934f0846b9e8391ad183101811d08c6deabe679e 100644 --- a/tensorflow/contrib/lite/kernels/shape.cc +++ b/tensorflow/lite/kernels/shape.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/shape_test.cc b/tensorflow/lite/kernels/shape_test.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/shape_test.cc rename to tensorflow/lite/kernels/shape_test.cc index 27b48f4e992a8f02d56815bd1bd9074f5b41f400..0c13ff45b0a3c0a5f22644c68224c50fab3b018b 100644 --- a/tensorflow/contrib/lite/kernels/shape_test.cc +++ b/tensorflow/lite/kernels/shape_test.cc @@ -16,10 +16,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/skip_gram.cc b/tensorflow/lite/kernels/skip_gram.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/skip_gram.cc rename to tensorflow/lite/kernels/skip_gram.cc index de80a4016ecd6f88df99a5383739c2eb42a1f706..f20719ecaf6eda023f9a2826d7a995c1708e9577 100644 --- a/tensorflow/contrib/lite/kernels/skip_gram.cc +++ b/tensorflow/lite/kernels/skip_gram.cc @@ -33,11 +33,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/skip_gram_test.cc b/tensorflow/lite/kernels/skip_gram_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/skip_gram_test.cc rename to tensorflow/lite/kernels/skip_gram_test.cc index 185b64cb44969b57588ea5d0b40f55b6ddf8e11f..d4430b8a3430409d39c9c772b5384a46fe787b8f 100644 --- a/tensorflow/contrib/lite/kernels/skip_gram_test.cc +++ b/tensorflow/lite/kernels/skip_gram_test.cc @@ -16,11 +16,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/slice.cc b/tensorflow/lite/kernels/slice.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/slice.cc rename to tensorflow/lite/kernels/slice.cc index ccfee41b9ca58f59b7ece5da7feb7f7bf8d78c27..35e8b062144d14e49a4009540ffae3b6e98f028d 100644 --- a/tensorflow/contrib/lite/kernels/slice.cc +++ b/tensorflow/lite/kernels/slice.cc @@ -16,12 +16,12 @@ limitations under the License. #include #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/slice_test.cc b/tensorflow/lite/kernels/slice_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/slice_test.cc rename to tensorflow/lite/kernels/slice_test.cc index 4828f88f36bc1e7daf84ab6831a2ccc98bfaed40..563329ddb164d3aa5f13c8ee0d6482d79b84ed32 100644 --- a/tensorflow/contrib/lite/kernels/slice_test.cc +++ b/tensorflow/lite/kernels/slice_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/softmax_test.cc b/tensorflow/lite/kernels/softmax_test.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/softmax_test.cc rename to tensorflow/lite/kernels/softmax_test.cc index bd66980226cee0cfd3cf3e81476c60db3d58951c..eb9d7c1d9de69423d6917c83bb6820413604e65c 100644 --- a/tensorflow/contrib/lite/kernels/softmax_test.cc +++ b/tensorflow/lite/kernels/softmax_test.cc @@ -20,11 +20,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/space_to_batch_nd.cc b/tensorflow/lite/kernels/space_to_batch_nd.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/space_to_batch_nd.cc rename to tensorflow/lite/kernels/space_to_batch_nd.cc index 3a10d2e60cf6171ff2396984982ac7238dcedfd9..1c61b2ef30379e808085f3b0d16a5b1157bea314 100644 --- a/tensorflow/contrib/lite/kernels/space_to_batch_nd.cc +++ b/tensorflow/lite/kernels/space_to_batch_nd.cc @@ -14,13 +14,13 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/space_to_batch_nd_test.cc b/tensorflow/lite/kernels/space_to_batch_nd_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/space_to_batch_nd_test.cc rename to tensorflow/lite/kernels/space_to_batch_nd_test.cc index 5756573629a51917e39a312117a1fcd29c150dc0..4d55ba56b71c5e0c44f0145981db56cbef6ec99a 100644 --- a/tensorflow/contrib/lite/kernels/space_to_batch_nd_test.cc +++ b/tensorflow/lite/kernels/space_to_batch_nd_test.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/space_to_depth.cc b/tensorflow/lite/kernels/space_to_depth.cc similarity index 91% rename from tensorflow/contrib/lite/kernels/space_to_depth.cc rename to tensorflow/lite/kernels/space_to_depth.cc index 64c56c017b0b4a8a1a449309238df86dbec21d4b..79e28bf47d98b64572d9e7404f8d69788cd30e08 100644 --- a/tensorflow/contrib/lite/kernels/space_to_depth.cc +++ b/tensorflow/lite/kernels/space_to_depth.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/space_to_depth_test.cc b/tensorflow/lite/kernels/space_to_depth_test.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/space_to_depth_test.cc rename to tensorflow/lite/kernels/space_to_depth_test.cc index 997f354861a235fb511235e4d64544dc8c3ddb34..5744669b6d62af61a0b20e7723b78c72f6db952d 100644 --- a/tensorflow/contrib/lite/kernels/space_to_depth_test.cc +++ b/tensorflow/lite/kernels/space_to_depth_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/sparse_output_fully_connected.cc b/tensorflow/lite/kernels/sparse_output_fully_connected.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/sparse_output_fully_connected.cc rename to tensorflow/lite/kernels/sparse_output_fully_connected.cc index 66daf5e84a05670189aa57c9fc195af5c7c83294..73d850f0e2d094e9cc620f4f4733354d603b2a77 100644 --- a/tensorflow/contrib/lite/kernels/sparse_output_fully_connected.cc +++ b/tensorflow/lite/kernels/sparse_output_fully_connected.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ // SparseOutputFullyConnected is a fully connected layer that uses a single // row in the weights and bias via a lookup. -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/sparse_output_fully_connected_test.cc b/tensorflow/lite/kernels/sparse_output_fully_connected_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/sparse_output_fully_connected_test.cc rename to tensorflow/lite/kernels/sparse_output_fully_connected_test.cc index 365986a5c177ee58604138f279ca1186bacc742e..c25a32bde001e632afff2a34ad168467c092bcf5 100644 --- a/tensorflow/contrib/lite/kernels/sparse_output_fully_connected_test.cc +++ b/tensorflow/lite/kernels/sparse_output_fully_connected_test.cc @@ -19,8 +19,8 @@ limitations under the License. #include #include "flatbuffers/flexbuffers.h" // TF:flatbuffers -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/sparse_to_dense.cc b/tensorflow/lite/kernels/sparse_to_dense.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/sparse_to_dense.cc rename to tensorflow/lite/kernels/sparse_to_dense.cc index 349fa0bd281ce3d4d26ceb69565a0684151c8ad9..de4d863facb50b4e98f289a9a84ed91ebe8bc603 100644 --- a/tensorflow/contrib/lite/kernels/sparse_to_dense.cc +++ b/tensorflow/lite/kernels/sparse_to_dense.cc @@ -19,13 +19,13 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/kernels/padding.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/padding.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/sparse_to_dense_test.cc b/tensorflow/lite/kernels/sparse_to_dense_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/sparse_to_dense_test.cc rename to tensorflow/lite/kernels/sparse_to_dense_test.cc index a51ec17afcefd791680d7aa42cef467f481f6dbc..ee135c220ede171dabfcc1b23df9ececf67f8f26 100644 --- a/tensorflow/contrib/lite/kernels/sparse_to_dense_test.cc +++ b/tensorflow/lite/kernels/sparse_to_dense_test.cc @@ -15,10 +15,10 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/split.cc b/tensorflow/lite/kernels/split.cc similarity index 92% rename from tensorflow/contrib/lite/kernels/split.cc rename to tensorflow/lite/kernels/split.cc index dab887bf9ccac0ff43cb5f7bd11033657aaf1fd2..7902ed2a46d297cca6f076bf1bb48580f3c4bf40 100644 --- a/tensorflow/contrib/lite/kernels/split.cc +++ b/tensorflow/lite/kernels/split.cc @@ -14,13 +14,13 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/split_test.cc b/tensorflow/lite/kernels/split_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/split_test.cc rename to tensorflow/lite/kernels/split_test.cc index 61a0759c6475795c06a9b55d3586d2b818f298b2..f3d9ea3bf4158dd51b5102b942125b7561024c19 100644 --- a/tensorflow/contrib/lite/kernels/split_test.cc +++ b/tensorflow/lite/kernels/split_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/squeeze.cc b/tensorflow/lite/kernels/squeeze.cc similarity index 92% rename from tensorflow/contrib/lite/kernels/squeeze.cc rename to tensorflow/lite/kernels/squeeze.cc index 080c51cd18204ae3823cdceb80011e5ddcc32a2c..8be0c6b9de0810595ffb39f093eef438f8af459a 100644 --- a/tensorflow/contrib/lite/kernels/squeeze.cc +++ b/tensorflow/lite/kernels/squeeze.cc @@ -14,11 +14,11 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/squeeze_test.cc b/tensorflow/lite/kernels/squeeze_test.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/squeeze_test.cc rename to tensorflow/lite/kernels/squeeze_test.cc index a8aab88357cacbb72784a4bc6e860aeb47783eb3..4a02a8ee7e17ba8907faaaeb2ef258d0ffd56ebd 100644 --- a/tensorflow/contrib/lite/kernels/squeeze_test.cc +++ b/tensorflow/lite/kernels/squeeze_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/strided_slice.cc b/tensorflow/lite/kernels/strided_slice.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/strided_slice.cc rename to tensorflow/lite/kernels/strided_slice.cc index 06b36dd1967a0276e3a98f09d5006824b64029cd..c797a98e9f1bda8595e6822638949bab48cb2eab 100644 --- a/tensorflow/contrib/lite/kernels/strided_slice.cc +++ b/tensorflow/lite/kernels/strided_slice.cc @@ -15,12 +15,12 @@ limitations under the License. #include #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/strided_slice_test.cc b/tensorflow/lite/kernels/strided_slice_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/strided_slice_test.cc rename to tensorflow/lite/kernels/strided_slice_test.cc index c5d4f9affb46c82b4dec15bc0653d7315d132335..122e01b99ecbed1255ea4b2d29e82b57f04be80c 100644 --- a/tensorflow/contrib/lite/kernels/strided_slice_test.cc +++ b/tensorflow/lite/kernels/strided_slice_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/sub.cc b/tensorflow/lite/kernels/sub.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/sub.cc rename to tensorflow/lite/kernels/sub.cc index 1be0c83f17a34c7ec12f03c0a29f0bd7fa1a96a5..06a3b3499a005f19bfd1461dfe861835f8331b96 100644 --- a/tensorflow/contrib/lite/kernels/sub.cc +++ b/tensorflow/lite/kernels/sub.cc @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/sub_test.cc b/tensorflow/lite/kernels/sub_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/sub_test.cc rename to tensorflow/lite/kernels/sub_test.cc index 5978c574d35492eda6b903fd83d95ecbd6b62148..f0b9447ff61ced57638e182a6487d89d41a7edb4 100644 --- a/tensorflow/contrib/lite/kernels/sub_test.cc +++ b/tensorflow/lite/kernels/sub_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/svdf.cc b/tensorflow/lite/kernels/svdf.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/svdf.cc rename to tensorflow/lite/kernels/svdf.cc index 7e6d81239ce36ed533837e3bbd4795c9c4a8234e..f07937140e9ac4abfbae47a1679ddbfba4d30938 100644 --- a/tensorflow/contrib/lite/kernels/svdf.cc +++ b/tensorflow/lite/kernels/svdf.cc @@ -23,12 +23,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/svdf_test.cc b/tensorflow/lite/kernels/svdf_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/svdf_test.cc rename to tensorflow/lite/kernels/svdf_test.cc index 6d60dc63f401144a5eda84d9f88992ce1f9ee47e..8accaa465ca8a51f2b6e00648a6195f31039d3f7 100644 --- a/tensorflow/contrib/lite/kernels/svdf_test.cc +++ b/tensorflow/lite/kernels/svdf_test.cc @@ -19,10 +19,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/test_util.cc b/tensorflow/lite/kernels/test_util.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/test_util.cc rename to tensorflow/lite/kernels/test_util.cc index 0c0df133e2f464c8f5fbf53fb71e3bd2319535d1..6b2a1f89c37dd3dcccdf5aade53ed0f984263e3a 100644 --- a/tensorflow/contrib/lite/kernels/test_util.cc +++ b/tensorflow/lite/kernels/test_util.cc @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/test_util.h" +#include "tensorflow/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/version.h" #include "tensorflow/core/platform/logging.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/test_util.h b/tensorflow/lite/kernels/test_util.h similarity index 96% rename from tensorflow/contrib/lite/kernels/test_util.h rename to tensorflow/lite/kernels/test_util.h index 43d00129cc2217f6c379d468d95d9f6810a35469..f6444ccf79464d5a7291902ec5b815ce20fe0f73 100644 --- a/tensorflow/contrib/lite/kernels/test_util.h +++ b/tensorflow/lite/kernels/test_util.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_KERNELS_TEST_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_KERNELS_TEST_UTIL_H_ +#ifndef TENSORFLOW_LITE_KERNELS_TEST_UTIL_H_ +#define TENSORFLOW_LITE_KERNELS_TEST_UTIL_H_ #include #include @@ -21,12 +21,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/string_util.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/string_util.h" +#include "tensorflow/lite/testing/util.h" #include "tensorflow/core/platform/logging.h" namespace tflite { @@ -278,7 +278,7 @@ class SingleOpModel { private: // TODO(gavinbelson): sync this method with - // //tensorflow/contrib/lite/kernels/internal/quantization_util.h?l=31 + // //tensorflow/lite/kernels/internal/quantization_util.h?l=31 template std::pair QuantizationParams(float f_min, float f_max) { // These are required by many quantized operations. @@ -403,4 +403,4 @@ template <> std::vector SingleOpModel::ExtractVector(int index); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_KERNELS_TEST_UTIL_H_ +#endif // TENSORFLOW_LITE_KERNELS_TEST_UTIL_H_ diff --git a/tensorflow/contrib/lite/kernels/test_util_test.cc b/tensorflow/lite/kernels/test_util_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/test_util_test.cc rename to tensorflow/lite/kernels/test_util_test.cc index 236580347254d336609a3081736f54e069b5cb5a..7abb7011f9d23e52f370479b5351c0c8ad1a125d 100644 --- a/tensorflow/contrib/lite/kernels/test_util_test.cc +++ b/tensorflow/lite/kernels/test_util_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/kernels/test_util.h" +#include "tensorflow/lite/kernels/test_util.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/tile.cc b/tensorflow/lite/kernels/tile.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/tile.cc rename to tensorflow/lite/kernels/tile.cc index 49421eb87081626c05c78ad809d4adea1cdf1e8b..def709b2cc748cd653ba3ec9fe59dfe32994a3c6 100644 --- a/tensorflow/contrib/lite/kernels/tile.cc +++ b/tensorflow/lite/kernels/tile.cc @@ -14,12 +14,12 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { namespace builtin { diff --git a/tensorflow/contrib/lite/kernels/tile_test.cc b/tensorflow/lite/kernels/tile_test.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/tile_test.cc rename to tensorflow/lite/kernels/tile_test.cc index e73ca7b7504f6fe891f310d181b0039893f18852..d12a7c19a367bf655c4b7158b4960eb4ef3afb58 100644 --- a/tensorflow/contrib/lite/kernels/tile_test.cc +++ b/tensorflow/lite/kernels/tile_test.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/topk_v2.cc b/tensorflow/lite/kernels/topk_v2.cc similarity index 96% rename from tensorflow/contrib/lite/kernels/topk_v2.cc rename to tensorflow/lite/kernels/topk_v2.cc index 6c38b6739e8751c50394b2ed5d3974fb7479ae5f..444b01e7b2e055ab4e26a2ea1dce28642dc430b7 100644 --- a/tensorflow/contrib/lite/kernels/topk_v2.cc +++ b/tensorflow/lite/kernels/topk_v2.cc @@ -14,11 +14,11 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { namespace builtin { diff --git a/tensorflow/contrib/lite/kernels/topk_v2_test.cc b/tensorflow/lite/kernels/topk_v2_test.cc similarity index 94% rename from tensorflow/contrib/lite/kernels/topk_v2_test.cc rename to tensorflow/lite/kernels/topk_v2_test.cc index 16106fdafeeaaaf5206c2f4771f68a5075186e97..108b8123666aaddcc8ba8438bac82c91ce98d50d 100644 --- a/tensorflow/contrib/lite/kernels/topk_v2_test.cc +++ b/tensorflow/lite/kernels/topk_v2_test.cc @@ -14,11 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/transpose.cc b/tensorflow/lite/kernels/transpose.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/transpose.cc rename to tensorflow/lite/kernels/transpose.cc index e42a30420b278a5053224d8f0c87d8eebe6e5241..7a6d320674ad1c8302f8bf3a9d1d5153223deed3 100644 --- a/tensorflow/contrib/lite/kernels/transpose.cc +++ b/tensorflow/lite/kernels/transpose.cc @@ -14,12 +14,12 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/transpose_conv.cc b/tensorflow/lite/kernels/transpose_conv.cc similarity index 95% rename from tensorflow/contrib/lite/kernels/transpose_conv.cc rename to tensorflow/lite/kernels/transpose_conv.cc index f8c858d645398928502dd40a6ebd7b8db79b3292..59eee51068c0efcf26d66d933e13ee2f931463bc 100644 --- a/tensorflow/contrib/lite/kernels/transpose_conv.cc +++ b/tensorflow/lite/kernels/transpose_conv.cc @@ -19,14 +19,14 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/eigen_support.h" -#include "tensorflow/contrib/lite/kernels/internal/optimized/optimized_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" -#include "tensorflow/contrib/lite/kernels/padding.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/eigen_support.h" +#include "tensorflow/lite/kernels/internal/optimized/optimized_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" +#include "tensorflow/lite/kernels/padding.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/transpose_conv_test.cc b/tensorflow/lite/kernels/transpose_conv_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/transpose_conv_test.cc rename to tensorflow/lite/kernels/transpose_conv_test.cc index 07fca344d6a012d62a77a4b80b09edb8ba55638e..0520d84a30b50212bb3d86288236b49da523f4c2 100644 --- a/tensorflow/contrib/lite/kernels/transpose_conv_test.cc +++ b/tensorflow/lite/kernels/transpose_conv_test.cc @@ -15,10 +15,10 @@ limitations under the License. #include #include #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { diff --git a/tensorflow/contrib/lite/kernels/transpose_test.cc b/tensorflow/lite/kernels/transpose_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/transpose_test.cc rename to tensorflow/lite/kernels/transpose_test.cc index 79ef0a7c562d070f0f7e6edc4f5923894e1f896f..3ebaf3ca27ffd285ef86a81b2e63409fde565ef1 100644 --- a/tensorflow/contrib/lite/kernels/transpose_test.cc +++ b/tensorflow/lite/kernels/transpose_test.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/unidirectional_sequence_lstm.cc b/tensorflow/lite/kernels/unidirectional_sequence_lstm.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/unidirectional_sequence_lstm.cc rename to tensorflow/lite/kernels/unidirectional_sequence_lstm.cc index bd6d4d1f8845813e8203fb37c908cbf4bdcfa3ba..497777b9aff6c6bd5084f2d36b505c998b12273b 100644 --- a/tensorflow/contrib/lite/kernels/unidirectional_sequence_lstm.cc +++ b/tensorflow/lite/kernels/unidirectional_sequence_lstm.cc @@ -20,14 +20,14 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/internal/kernel_utils.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/lstm_eval.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/internal/kernel_utils.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/lstm_eval.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/unidirectional_sequence_lstm_test.cc b/tensorflow/lite/kernels/unidirectional_sequence_lstm_test.cc similarity index 99% rename from tensorflow/contrib/lite/kernels/unidirectional_sequence_lstm_test.cc rename to tensorflow/lite/kernels/unidirectional_sequence_lstm_test.cc index 1de14dd60db0c0a8fc321b4fa1cacf1035625b41..ae7dd6b2bee1da06d9dc48f259585f541c72842f 100644 --- a/tensorflow/contrib/lite/kernels/unidirectional_sequence_lstm_test.cc +++ b/tensorflow/lite/kernels/unidirectional_sequence_lstm_test.cc @@ -19,10 +19,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/unidirectional_sequence_rnn.cc b/tensorflow/lite/kernels/unidirectional_sequence_rnn.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/unidirectional_sequence_rnn.cc rename to tensorflow/lite/kernels/unidirectional_sequence_rnn.cc index 550a0bc02a195e2fb487862a60e40a36e6d69051..4c0fe00272a04ef3edc0787839f235f12aa546cb 100644 --- a/tensorflow/contrib/lite/kernels/unidirectional_sequence_rnn.cc +++ b/tensorflow/lite/kernels/unidirectional_sequence_rnn.cc @@ -19,12 +19,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/activation_functor.h" -#include "tensorflow/contrib/lite/kernels/internal/kernel_utils.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/op_macros.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/activation_functor.h" +#include "tensorflow/lite/kernels/internal/kernel_utils.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/op_macros.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/unidirectional_sequence_rnn_test.cc b/tensorflow/lite/kernels/unidirectional_sequence_rnn_test.cc similarity index 98% rename from tensorflow/contrib/lite/kernels/unidirectional_sequence_rnn_test.cc rename to tensorflow/lite/kernels/unidirectional_sequence_rnn_test.cc index 6b48e3fff7a9db3f54b6b3308354c0c263d63568..a2f82ac67b1b22b226e7046af7158ed6095dcc8e 100644 --- a/tensorflow/contrib/lite/kernels/unidirectional_sequence_rnn_test.cc +++ b/tensorflow/lite/kernels/unidirectional_sequence_rnn_test.cc @@ -19,10 +19,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/unpack.cc b/tensorflow/lite/kernels/unpack.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/unpack.cc rename to tensorflow/lite/kernels/unpack.cc index a7d3a9bc7672be897a174edfc8f056ff6a9f37d4..1caffe14f90b8ce9d13d8c781e87bf918c02b9f4 100644 --- a/tensorflow/contrib/lite/kernels/unpack.cc +++ b/tensorflow/lite/kernels/unpack.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/reference/reference_ops.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/reference/reference_ops.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/unpack_test.cc b/tensorflow/lite/kernels/unpack_test.cc similarity index 97% rename from tensorflow/contrib/lite/kernels/unpack_test.cc rename to tensorflow/lite/kernels/unpack_test.cc index 4efc92a0fdd68082164c5788f99226f81717f91c..9b60cce549804a59e343f3e26f978679a1624c00 100644 --- a/tensorflow/contrib/lite/kernels/unpack_test.cc +++ b/tensorflow/lite/kernels/unpack_test.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/kernels/zeros_like.cc b/tensorflow/lite/kernels/zeros_like.cc similarity index 93% rename from tensorflow/contrib/lite/kernels/zeros_like.cc rename to tensorflow/lite/kernels/zeros_like.cc index cce5240a9bdc9c1da8185db6b72627c73d898062..a187306fa251c4402b63ed657c9f27e34d3d2bc9 100644 --- a/tensorflow/contrib/lite/kernels/zeros_like.cc +++ b/tensorflow/lite/kernels/zeros_like.cc @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/kernels/internal/tensor.h" +#include "tensorflow/lite/kernels/kernel_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/kernels/zeros_like_test.cc b/tensorflow/lite/kernels/zeros_like_test.cc similarity index 92% rename from tensorflow/contrib/lite/kernels/zeros_like_test.cc rename to tensorflow/lite/kernels/zeros_like_test.cc index d3382d1d5b865ee811f235f8fd8abf78d5b66f38..0a1d9afe33f897e2a49cd1548bf34a69c96a7a91 100644 --- a/tensorflow/contrib/lite/kernels/zeros_like_test.cc +++ b/tensorflow/lite/kernels/zeros_like_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/lib_package/BUILD b/tensorflow/lite/lib_package/BUILD similarity index 100% rename from tensorflow/contrib/lite/lib_package/BUILD rename to tensorflow/lite/lib_package/BUILD diff --git a/tensorflow/contrib/lite/lib_package/concat_licenses.sh b/tensorflow/lite/lib_package/concat_licenses.sh similarity index 100% rename from tensorflow/contrib/lite/lib_package/concat_licenses.sh rename to tensorflow/lite/lib_package/concat_licenses.sh diff --git a/tensorflow/contrib/lite/lib_package/create_ios_frameworks.sh b/tensorflow/lite/lib_package/create_ios_frameworks.sh similarity index 87% rename from tensorflow/contrib/lite/lib_package/create_ios_frameworks.sh rename to tensorflow/lite/lib_package/create_ios_frameworks.sh index 6195426d6d441e858fbe225c132b409ac0a0be32..fa466ed5bc7ad31f371a7f1b67754d446b45063a 100755 --- a/tensorflow/contrib/lite/lib_package/create_ios_frameworks.sh +++ b/tensorflow/lite/lib_package/create_ios_frameworks.sh @@ -32,13 +32,13 @@ mkdir -p $FW_DIR_TFLITE_HDRS echo "Headers, populating: TensorFlow Lite" cd $TFLITE_DIR/../../.. -find tensorflow/contrib/lite -name '*.h' \ - -not -path 'tensorflow/contrib/lite/tools/*' \ - -not -path 'tensorflow/contrib/lite/examples/*' \ - -not -path 'tensorflow/contrib/lite/gen/*' \ - -not -path 'tensorflow/contrib/lite/toco/*' \ - -not -path 'tensorflow/contrib/lite/nnapi/*' \ - -not -path 'tensorflow/contrib/lite/java/*' \ +find tensorflow/lite -name '*.h' \ + -not -path 'tensorflow/lite/tools/*' \ + -not -path 'tensorflow/lite/examples/*' \ + -not -path 'tensorflow/lite/gen/*' \ + -not -path 'tensorflow/lite/toco/*' \ + -not -path 'tensorflow/lite/nnapi/*' \ + -not -path 'tensorflow/lite/java/*' \ | tar -cf $FW_DIR_TFLITE_HDRS/tmp.tar -T - cd $FW_DIR_TFLITE_HDRS tar xf tmp.tar diff --git a/tensorflow/contrib/lite/memory_planner.h b/tensorflow/lite/memory_planner.h similarity index 88% rename from tensorflow/contrib/lite/memory_planner.h rename to tensorflow/lite/memory_planner.h index 2d4707f849f5d1a7a8393d9fb7286f3c714e8a36..fa2a44a1c89d70da33d87d9f1b92209254b96c02 100644 --- a/tensorflow/contrib/lite/memory_planner.h +++ b/tensorflow/lite/memory_planner.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_MEMORY_PLANNER_H_ -#define TENSORFLOW_CONTRIB_LITE_MEMORY_PLANNER_H_ +#ifndef TENSORFLOW_LITE_MEMORY_PLANNER_H_ +#define TENSORFLOW_LITE_MEMORY_PLANNER_H_ -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { @@ -42,4 +42,4 @@ class MemoryPlanner { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_MEMORY_PLANNER_H_ +#endif // TENSORFLOW_LITE_MEMORY_PLANNER_H_ diff --git a/tensorflow/contrib/lite/mmap_allocation.cc b/tensorflow/lite/mmap_allocation.cc similarity index 94% rename from tensorflow/contrib/lite/mmap_allocation.cc rename to tensorflow/lite/mmap_allocation.cc index 92934d1fd15777b51c66fe9c0e4f94a11fe26044..11e59956996f262a63288c4daa3a7835fe7b3244 100644 --- a/tensorflow/contrib/lite/mmap_allocation.cc +++ b/tensorflow/lite/mmap_allocation.cc @@ -19,8 +19,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/allocation.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" +#include "tensorflow/lite/allocation.h" +#include "tensorflow/lite/core/api/error_reporter.h" namespace tflite { diff --git a/tensorflow/contrib/lite/mmap_allocation_disabled.cc b/tensorflow/lite/mmap_allocation_disabled.cc similarity index 96% rename from tensorflow/contrib/lite/mmap_allocation_disabled.cc rename to tensorflow/lite/mmap_allocation_disabled.cc index f3d4cf1a257d43ebd56cc9b8831de0bb1994d40c..efb0991b5941f15a76e89db23eac2e4e690faa23 100644 --- a/tensorflow/contrib/lite/mmap_allocation_disabled.cc +++ b/tensorflow/lite/mmap_allocation_disabled.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/allocation.h" +#include "tensorflow/lite/allocation.h" #include diff --git a/tensorflow/contrib/lite/model.cc b/tensorflow/lite/model.cc similarity index 97% rename from tensorflow/contrib/lite/model.cc rename to tensorflow/lite/model.cc index a8a010be1a18002f030e4a930d9c0d66905d6b75..39709404358c2c9e4a187657064ed26aaff52e29 100644 --- a/tensorflow/contrib/lite/model.cc +++ b/tensorflow/lite/model.cc @@ -19,15 +19,15 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/allocation.h" -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/core/api/flatbuffer_conversions.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/allocation.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/core/api/flatbuffer_conversions.h" +#include "tensorflow/lite/model.h" #ifndef TFLITE_MCU -#include "tensorflow/contrib/lite/nnapi_delegate.h" +#include "tensorflow/lite/nnapi_delegate.h" #endif -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/version.h" namespace tflite { diff --git a/tensorflow/contrib/lite/model.h b/tensorflow/lite/model.h similarity index 95% rename from tensorflow/contrib/lite/model.h rename to tensorflow/lite/model.h index 9505824dcc933b60b89b9b98adcb1f685278b9da..01e7c682056b2b14155394f978545470c7748c2d 100644 --- a/tensorflow/contrib/lite/model.h +++ b/tensorflow/lite/model.h @@ -31,15 +31,15 @@ limitations under the License. // OpResolver must be defined to provide your kernel implementations to the // interpreter. This is environment specific and may consist of just the builtin // ops, or some custom operators you defined to extend tflite. -#ifndef TENSORFLOW_CONTRIB_LITE_MODEL_H_ -#define TENSORFLOW_CONTRIB_LITE_MODEL_H_ +#ifndef TENSORFLOW_LITE_MODEL_H_ +#define TENSORFLOW_LITE_MODEL_H_ #include -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/core/api/op_resolver.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/mutable_op_resolver.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/core/api/op_resolver.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/mutable_op_resolver.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { @@ -186,4 +186,4 @@ class InterpreterBuilder { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_MODEL_H_ +#endif // TENSORFLOW_LITE_MODEL_H_ diff --git a/tensorflow/contrib/lite/model_flex_test.cc b/tensorflow/lite/model_flex_test.cc similarity index 86% rename from tensorflow/contrib/lite/model_flex_test.cc rename to tensorflow/lite/model_flex_test.cc index 52e76bee4941c412434853d49b69affbb1ef895a..88b3c886b21d160f0e99d8ce627866241f6d98e2 100644 --- a/tensorflow/contrib/lite/model_flex_test.cc +++ b/tensorflow/lite/model_flex_test.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/model.h" #include -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { @@ -24,7 +24,7 @@ namespace tflite { // appropriate delegate is linked into the client. TEST(FlexModel, WithFlexDelegate) { auto model = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/multi_add_flex.bin"); + "tensorflow/lite/testdata/multi_add_flex.bin"); ASSERT_TRUE(model); std::unique_ptr interpreter; diff --git a/tensorflow/contrib/lite/model_test.cc b/tensorflow/lite/model_test.cc similarity index 91% rename from tensorflow/contrib/lite/model_test.cc rename to tensorflow/lite/model_test.cc index b969bea5dcff2f5347ba0aa90f649ba3de89702b..e677ea94a71b979a01fd4b56e331d592cef76cd5 100644 --- a/tensorflow/contrib/lite/model_test.cc +++ b/tensorflow/lite/model_test.cc @@ -20,12 +20,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/model.h" #include -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/testing/util.h" // Comparison for TfLiteRegistration. Since TfLiteRegistration is a C object, // we must declare this in global namespace, so argument-dependent operator @@ -75,7 +75,7 @@ TEST(BasicFlatBufferModel, TestNonExistantFiles) { // Make sure a model with nothing in it loads properly. TEST(BasicFlatBufferModel, TestEmptyModelsAndNullDestination) { auto model = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/empty_model.bin"); + "tensorflow/lite/testdata/empty_model.bin"); ASSERT_TRUE(model); // Now try to build it into a model. std::unique_ptr interpreter; @@ -89,14 +89,14 @@ TEST(BasicFlatBufferModel, TestEmptyModelsAndNullDestination) { // TODO(aselle): Replace this test when multiple subgraphs are supported. TEST(BasicFlatBufferModel, TestZeroAndMultipleSubgraphs) { auto m1 = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/0_subgraphs.bin"); + "tensorflow/lite/testdata/0_subgraphs.bin"); ASSERT_TRUE(m1); std::unique_ptr interpreter1; ASSERT_NE(InterpreterBuilder(*m1, TrivialResolver())(&interpreter1), kTfLiteOk); auto m2 = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/2_subgraphs.bin"); + "tensorflow/lite/testdata/2_subgraphs.bin"); ASSERT_TRUE(m2); std::unique_ptr interpreter2; ASSERT_NE(InterpreterBuilder(*m2, TrivialResolver())(&interpreter2), @@ -106,7 +106,7 @@ TEST(BasicFlatBufferModel, TestZeroAndMultipleSubgraphs) { // Test what happens if we cannot bind any of the ops. TEST(BasicFlatBufferModel, TestModelWithoutNullRegistrations) { auto model = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/test_model.bin"); + "tensorflow/lite/testdata/test_model.bin"); ASSERT_TRUE(model); // Check that we get an error code and interpreter pointer is reset. std::unique_ptr interpreter(new Interpreter); @@ -118,7 +118,7 @@ TEST(BasicFlatBufferModel, TestModelWithoutNullRegistrations) { // Make sure model is read to interpreter propelrly TEST(BasicFlatBufferModel, TestModelInInterpreter) { auto model = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/test_model.bin"); + "tensorflow/lite/testdata/test_model.bin"); ASSERT_TRUE(model); // Check that we get an error code and interpreter pointer is reset. std::unique_ptr interpreter(new Interpreter); @@ -198,7 +198,7 @@ TEST(BasicFlatBufferModel, TestModelInInterpreter) { // not linked into the target. TEST(FlexModel, FailureWithoutFlexDelegate) { auto model = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/multi_add_flex.bin"); + "tensorflow/lite/testdata/multi_add_flex.bin"); ASSERT_TRUE(model); // Note that creation will succeed when using the BuiltinOpResolver, but @@ -219,7 +219,7 @@ TEST(FlexModel, FailureWithoutFlexDelegate) { // buffer. But the buffer is provided to be only 1 element. TEST(BasicFlatBufferModel, TestBrokenMmap) { ASSERT_FALSE(FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/test_model_broken.bin")); + "tensorflow/lite/testdata/test_model_broken.bin")); } TEST(BasicFlatBufferModel, TestNullModel) { @@ -247,20 +247,20 @@ class FakeVerifier : public tflite::TfLiteVerifier { TEST(BasicFlatBufferModel, TestWithTrueVerifier) { FakeVerifier verifier(true); ASSERT_TRUE(FlatBufferModel::VerifyAndBuildFromFile( - "tensorflow/contrib/lite/testdata/test_model.bin", + "tensorflow/lite/testdata/test_model.bin", &verifier)); } TEST(BasicFlatBufferModel, TestWithFalseVerifier) { FakeVerifier verifier(false); ASSERT_FALSE(FlatBufferModel::VerifyAndBuildFromFile( - "tensorflow/contrib/lite/testdata/test_model.bin", + "tensorflow/lite/testdata/test_model.bin", &verifier)); } TEST(BasicFlatBufferModel, TestWithNullVerifier) { ASSERT_TRUE(FlatBufferModel::VerifyAndBuildFromFile( - "tensorflow/contrib/lite/testdata/test_model.bin", nullptr)); + "tensorflow/lite/testdata/test_model.bin", nullptr)); } // This makes sure the ErrorReporter is marshalled from FlatBufferModel to @@ -268,7 +268,7 @@ TEST(BasicFlatBufferModel, TestWithNullVerifier) { TEST(BasicFlatBufferModel, TestCustomErrorReporter) { TestErrorReporter reporter; auto model = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/empty_model.bin", + "tensorflow/lite/testdata/empty_model.bin", &reporter); ASSERT_TRUE(model); @@ -283,7 +283,7 @@ TEST(BasicFlatBufferModel, TestCustomErrorReporter) { // the Interpreter. TEST(BasicFlatBufferModel, TestNullErrorReporter) { auto model = FlatBufferModel::BuildFromFile( - "tensorflow/contrib/lite/testdata/empty_model.bin", nullptr); + "tensorflow/lite/testdata/empty_model.bin", nullptr); ASSERT_TRUE(model); std::unique_ptr interpreter; @@ -296,7 +296,7 @@ TEST(BasicFlatBufferModel, TestNullErrorReporter) { TEST(BasicFlatBufferModel, TestBuildFromModel) { TestErrorReporter reporter; FileCopyAllocation model_allocation( - "tensorflow/contrib/lite/testdata/test_model.bin", &reporter); + "tensorflow/lite/testdata/test_model.bin", &reporter); ASSERT_TRUE(model_allocation.valid()); ::flatbuffers::Verifier verifier( reinterpret_cast(model_allocation.base()), diff --git a/tensorflow/contrib/lite/models/BUILD b/tensorflow/lite/models/BUILD similarity index 74% rename from tensorflow/contrib/lite/models/BUILD rename to tensorflow/lite/models/BUILD index efa47b06fa7f06cc6312535713ec582af4705d85..8730160e4005df8846cf14d9186fb424d67f5934 100644 --- a/tensorflow/contrib/lite/models/BUILD +++ b/tensorflow/lite/models/BUILD @@ -7,7 +7,7 @@ licenses(["notice"]) # Apache 2.0 exports_files(["LICENSE"]) -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") exports_files(glob([ "testdata/*", diff --git a/tensorflow/contrib/lite/models/smartreply/BUILD b/tensorflow/lite/models/smartreply/BUILD similarity index 60% rename from tensorflow/contrib/lite/models/smartreply/BUILD rename to tensorflow/lite/models/smartreply/BUILD index 9d88c396ba69948e3ae285c913a4499a1409b93a..078b8e6bc6a288542575293be66c19f7bb733fc4 100644 --- a/tensorflow/contrib/lite/models/smartreply/BUILD +++ b/tensorflow/lite/models/smartreply/BUILD @@ -1,6 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts", "gen_selected_ops") +load("//tensorflow/lite:build_def.bzl", "tflite_copts", "gen_selected_ops") licenses(["notice"]) # Apache 2.0 @@ -19,9 +19,9 @@ cc_library( ], copts = tflite_copts(), deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:builtin_ops", "@com_google_absl//absl/strings", "@com_googlesource_code_re2//:re2", "@farmhash_archive//:farmhash", @@ -35,9 +35,9 @@ cc_library( copts = tflite_copts(), deps = [ ":custom_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:builtin_ops", "@com_google_absl//absl/strings", "@com_googlesource_code_re2//:re2", ], @@ -50,9 +50,9 @@ cc_test( tags = ["no_oss"], deps = [ ":custom_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", "@farmhash_archive//:farmhash", ], @@ -65,10 +65,10 @@ cc_test( tags = ["no_oss"], deps = [ ":custom_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) @@ -80,10 +80,10 @@ cc_test( tags = ["no_oss"], deps = [ ":custom_ops", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/kernels:test_util", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/kernels:test_util", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/AndroidManifest.xml b/tensorflow/lite/models/smartreply/demo/app/src/main/AndroidManifest.xml similarity index 100% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/AndroidManifest.xml rename to tensorflow/lite/models/smartreply/demo/app/src/main/AndroidManifest.xml diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/BUILD b/tensorflow/lite/models/smartreply/demo/app/src/main/BUILD similarity index 88% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/BUILD rename to tensorflow/lite/models/smartreply/demo/app/src/main/BUILD index 2e5033dab1356e2dbf2eef2b8c14e1ac7fc7566c..b14af4cb20b893f49a0b6145f63b889115f8dbf6 100644 --- a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/BUILD +++ b/tensorflow/lite/models/smartreply/demo/app/src/main/BUILD @@ -5,7 +5,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Apache 2.0 load( - "//tensorflow/contrib/lite:build_def.bzl", + "//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_jni_binary", ) @@ -61,8 +61,8 @@ cc_library( "-ldl", ], deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/models/smartreply:predictor_lib", + "//tensorflow/lite:framework", + "//tensorflow/lite/models/smartreply:predictor_lib", ], alwayslink = 1, ) diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/assets/BUILD b/tensorflow/lite/models/smartreply/demo/app/src/main/assets/BUILD similarity index 100% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/assets/BUILD rename to tensorflow/lite/models/smartreply/demo/app/src/main/assets/BUILD diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/assets/backoff_response.txt b/tensorflow/lite/models/smartreply/demo/app/src/main/assets/backoff_response.txt similarity index 100% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/assets/backoff_response.txt rename to tensorflow/lite/models/smartreply/demo/app/src/main/assets/backoff_response.txt diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/MainActivity.java b/tensorflow/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/MainActivity.java similarity index 100% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/MainActivity.java rename to tensorflow/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/MainActivity.java diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/SmartReply.java b/tensorflow/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/SmartReply.java similarity index 100% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/SmartReply.java rename to tensorflow/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/SmartReply.java diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/SmartReplyClient.java b/tensorflow/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/SmartReplyClient.java similarity index 100% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/SmartReplyClient.java rename to tensorflow/lite/models/smartreply/demo/app/src/main/java/com/example/android/smartreply/SmartReplyClient.java diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/res/layout/main_activity.xml b/tensorflow/lite/models/smartreply/demo/app/src/main/res/layout/main_activity.xml similarity index 100% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/res/layout/main_activity.xml rename to tensorflow/lite/models/smartreply/demo/app/src/main/res/layout/main_activity.xml diff --git a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/smartreply_jni.cc b/tensorflow/lite/models/smartreply/demo/app/src/main/smartreply_jni.cc similarity index 97% rename from tensorflow/contrib/lite/models/smartreply/demo/app/src/main/smartreply_jni.cc rename to tensorflow/lite/models/smartreply/demo/app/src/main/smartreply_jni.cc index f158cc511a9bee0710aee13cd04f77b6f95fb868..9b5df36c37a1d20b977762a9bcfd480d684997ac 100644 --- a/tensorflow/contrib/lite/models/smartreply/demo/app/src/main/smartreply_jni.cc +++ b/tensorflow/lite/models/smartreply/demo/app/src/main/smartreply_jni.cc @@ -17,8 +17,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/models/smartreply/predictor.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/models/smartreply/predictor.h" const char kIllegalStateException[] = "java/lang/IllegalStateException"; diff --git a/tensorflow/contrib/lite/models/smartreply/g3doc/README.md b/tensorflow/lite/models/smartreply/g3doc/README.md similarity index 98% rename from tensorflow/contrib/lite/models/smartreply/g3doc/README.md rename to tensorflow/lite/models/smartreply/g3doc/README.md index a6d75648b3f3da98afd85daad6c2234e73a802e8..1b8ff15196cd4d524ec9963d40c35761386c29fe 100644 --- a/tensorflow/contrib/lite/models/smartreply/g3doc/README.md +++ b/tensorflow/lite/models/smartreply/g3doc/README.md @@ -38,7 +38,7 @@ The On-Device Smart Reply model is aimed towards improving the messaging experience for day-to-day conversational chat messages. We recommend using this model for similar use cases. Some sample messages on which the model does well are provided in this [tsv -file](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/models/testdata/smartreply_samples.tsv) +file](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/models/testdata/smartreply_samples.tsv) for reference. The file format is: ``` @@ -143,4 +143,4 @@ Following are the ops supported for using On-Device Smart Reply model: ## Further Information * Open source code - [here](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/models/smartreply/). + [here](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/models/smartreply/). diff --git a/tensorflow/contrib/lite/models/smartreply/ops/extract_feature.cc b/tensorflow/lite/models/smartreply/ops/extract_feature.cc similarity index 95% rename from tensorflow/contrib/lite/models/smartreply/ops/extract_feature.cc rename to tensorflow/lite/models/smartreply/ops/extract_feature.cc index 29c8ad2286d705ea60fcd258e7283f6e1c3b70b8..f9d29229457c402e7eb989008a3b5d85bac709fa 100644 --- a/tensorflow/contrib/lite/models/smartreply/ops/extract_feature.cc +++ b/tensorflow/lite/models/smartreply/ops/extract_feature.cc @@ -24,9 +24,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/string_util.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/models/smartreply/ops/extract_feature_test.cc b/tensorflow/lite/models/smartreply/ops/extract_feature_test.cc similarity index 93% rename from tensorflow/contrib/lite/models/smartreply/ops/extract_feature_test.cc rename to tensorflow/lite/models/smartreply/ops/extract_feature_test.cc index 9b8676bab6e81109b01809e7e332448b05a9fbb5..efe59eeb4667cc55fb0a70d3005c1f9c2aaa73ce 100644 --- a/tensorflow/contrib/lite/models/smartreply/ops/extract_feature_test.cc +++ b/tensorflow/lite/models/smartreply/ops/extract_feature_test.cc @@ -16,10 +16,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" #include namespace tflite { diff --git a/tensorflow/contrib/lite/models/smartreply/ops/normalize.cc b/tensorflow/lite/models/smartreply/ops/normalize.cc similarity index 95% rename from tensorflow/contrib/lite/models/smartreply/ops/normalize.cc rename to tensorflow/lite/models/smartreply/ops/normalize.cc index c55ac9f52f7293a8ba5baf17f2052e11a7422074..8480260f279c0072d09fb883fbd711cac3ea875f 100644 --- a/tensorflow/contrib/lite/models/smartreply/ops/normalize.cc +++ b/tensorflow/lite/models/smartreply/ops/normalize.cc @@ -28,9 +28,9 @@ limitations under the License. #include "absl/strings/str_cat.h" #include "absl/strings/strip.h" #include "re2/re2.h" -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/string_util.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/models/smartreply/ops/normalize_test.cc b/tensorflow/lite/models/smartreply/ops/normalize_test.cc similarity index 90% rename from tensorflow/contrib/lite/models/smartreply/ops/normalize_test.cc rename to tensorflow/lite/models/smartreply/ops/normalize_test.cc index 4d35dba9a64a849d0321c3aa89d89f5bb61b0764..8c5131565d5892be946a9a115bb7c6cad8733214 100644 --- a/tensorflow/contrib/lite/models/smartreply/ops/normalize_test.cc +++ b/tensorflow/lite/models/smartreply/ops/normalize_test.cc @@ -16,11 +16,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/string_util.h" namespace tflite { diff --git a/tensorflow/contrib/lite/models/smartreply/ops/predict.cc b/tensorflow/lite/models/smartreply/ops/predict.cc similarity index 99% rename from tensorflow/contrib/lite/models/smartreply/ops/predict.cc rename to tensorflow/lite/models/smartreply/ops/predict.cc index 7b23adb990cf10d4f0cd5b66cfa40eaa0cc46c41..bb2ed4a3153ceb2ef2e6b6d7f8c640f41616d4b0 100644 --- a/tensorflow/contrib/lite/models/smartreply/ops/predict.cc +++ b/tensorflow/lite/models/smartreply/ops/predict.cc @@ -31,7 +31,7 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/context.h" +#include "tensorflow/lite/context.h" namespace tflite { namespace ops { diff --git a/tensorflow/contrib/lite/models/smartreply/ops/predict_test.cc b/tensorflow/lite/models/smartreply/ops/predict_test.cc similarity index 95% rename from tensorflow/contrib/lite/models/smartreply/ops/predict_test.cc rename to tensorflow/lite/models/smartreply/ops/predict_test.cc index e97c58cbd185023e59c21c93057fd0f094585bf9..ca64dcaad47108e346bd03f0b7b15edfbd6a50dc 100644 --- a/tensorflow/contrib/lite/models/smartreply/ops/predict_test.cc +++ b/tensorflow/lite/models/smartreply/ops/predict_test.cc @@ -16,11 +16,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/string_util.h" namespace tflite { diff --git a/tensorflow/contrib/lite/models/smartreply/predictor.cc b/tensorflow/lite/models/smartreply/predictor.cc similarity index 92% rename from tensorflow/contrib/lite/models/smartreply/predictor.cc rename to tensorflow/lite/models/smartreply/predictor.cc index 5d6c47dce8d90192d35a3a51fe6d0beb11f3b23f..7db2502977707d66f8b45c91d4191b92b39b75e0 100644 --- a/tensorflow/contrib/lite/models/smartreply/predictor.cc +++ b/tensorflow/lite/models/smartreply/predictor.cc @@ -13,15 +13,15 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/models/smartreply/predictor.h" +#include "tensorflow/lite/models/smartreply/predictor.h" #include "absl/strings/str_split.h" #include "re2/re2.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/op_resolver.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/op_resolver.h" +#include "tensorflow/lite/string_util.h" void RegisterSelectedOps(::tflite::MutableOpResolver* resolver); diff --git a/tensorflow/contrib/lite/models/smartreply/predictor.h b/tensorflow/lite/models/smartreply/predictor.h similarity index 91% rename from tensorflow/contrib/lite/models/smartreply/predictor.h rename to tensorflow/lite/models/smartreply/predictor.h index 3151192d9277b6df513a76afb08af30d0379b7b1..6b8f9298a36f6f72813519b5fc7e15ae6a041f08 100644 --- a/tensorflow/contrib/lite/models/smartreply/predictor.h +++ b/tensorflow/lite/models/smartreply/predictor.h @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_MODELS_SMARTREPLY_PREDICTOR_H_ -#define TENSORFLOW_CONTRIB_LITE_MODELS_SMARTREPLY_PREDICTOR_H_ +#ifndef TENSORFLOW_LITE_MODELS_SMARTREPLY_PREDICTOR_H_ +#define TENSORFLOW_LITE_MODELS_SMARTREPLY_PREDICTOR_H_ #include #include -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/model.h" namespace tflite { namespace custom { @@ -77,4 +77,4 @@ struct SmartReplyConfig { } // namespace custom } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_MODELS_SMARTREPLY_PREDICTOR_H_ +#endif // TENSORFLOW_LITE_MODELS_SMARTREPLY_PREDICTOR_H_ diff --git a/tensorflow/contrib/lite/models/smartreply/predictor_test.cc b/tensorflow/lite/models/smartreply/predictor_test.cc similarity index 94% rename from tensorflow/contrib/lite/models/smartreply/predictor_test.cc rename to tensorflow/lite/models/smartreply/predictor_test.cc index c7e08814fdf502f1ecfea60af3385fc7aa6055fa..7eba26993e59172d8ae85a8961b6f3b171057a48 100644 --- a/tensorflow/contrib/lite/models/smartreply/predictor_test.cc +++ b/tensorflow/lite/models/smartreply/predictor_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/models/smartreply/predictor.h" +#include "tensorflow/lite/models/smartreply/predictor.h" #include #include @@ -22,8 +22,8 @@ limitations under the License. #include #include "absl/strings/str_cat.h" #include "absl/strings/str_split.h" -//#include "tensorflow/contrib/lite/models/test_utils.h" -#include "tensorflow/contrib/lite/string_util.h" +//#include "tensorflow/lite/models/test_utils.h" +#include "tensorflow/lite/string_util.h" #include "tensorflow/core/platform/test.h" namespace tflite { @@ -36,7 +36,7 @@ const char kSamples[] = "smartreply_samples.tsv"; string TestDataPath() { return string(absl::StrCat(tensorflow::testing::TensorFlowSrcRoot(), "/", - "contrib/lite/models/testdata/")); + "lite/models/testdata/")); } MATCHER_P(IncludeAnyResponesIn, expected_response, "contains the response") { diff --git a/tensorflow/contrib/lite/models/speech_test.cc b/tensorflow/lite/models/speech_test.cc similarity index 96% rename from tensorflow/contrib/lite/models/speech_test.cc rename to tensorflow/lite/models/speech_test.cc index 8ecf0b6154a622fa355c060ba7f2d61e6c670de2..17b7e8f28e8fb0988ee2269d9d833626c2aec701 100644 --- a/tensorflow/contrib/lite/models/speech_test.cc +++ b/tensorflow/lite/models/speech_test.cc @@ -21,14 +21,14 @@ limitations under the License. #include "testing/base/public/googletest.h" #include -#include "tensorflow/contrib/lite/testing/parse_testdata.h" -#include "tensorflow/contrib/lite/testing/split.h" -#include "tensorflow/contrib/lite/testing/tflite_driver.h" +#include "tensorflow/lite/testing/parse_testdata.h" +#include "tensorflow/lite/testing/split.h" +#include "tensorflow/lite/testing/tflite_driver.h" namespace tflite { namespace { -const char kDataPath[] = "third_party/tensorflow/contrib/lite/models/testdata/"; +const char kDataPath[] = "third_party/tensorflow/lite/models/testdata/"; bool Init(const string& in_file_name, testing::TfLiteDriver* driver, std::ifstream* in_file) { diff --git a/tensorflow/contrib/lite/models/testdata/g3doc/README.md b/tensorflow/lite/models/testdata/g3doc/README.md similarity index 93% rename from tensorflow/contrib/lite/models/testdata/g3doc/README.md rename to tensorflow/lite/models/testdata/g3doc/README.md index 1c47e00aae2a0e76ba04004a2fc3cc02ec4536f7..2a4f1c143a21722945e8e396b81bd23e3312e87e 100644 --- a/tensorflow/contrib/lite/models/testdata/g3doc/README.md +++ b/tensorflow/lite/models/testdata/g3doc/README.md @@ -118,26 +118,26 @@ model](https://storage.googleapis.com/download.tensorflow.org/models/tflite/spee ### Test benches [Speech hotword model -test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/models/speech_hotword_model_test.cc) +test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/models/speech_hotword_model_test.cc) [Speaker-id model -test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/models/speech_speakerid_model_test.cc) +test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/models/speech_speakerid_model_test.cc) [TTS model -test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/models/speech_tts_model_test.cc) +test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/models/speech_tts_model_test.cc) [ASR AM model -test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/models/speech_asr_am_model_test.cc) +test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/models/speech_asr_am_model_test.cc) [ASR LM model -test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/models/speech_asr_lm_model_test.cc) +test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/models/speech_asr_lm_model_test.cc) [Endpointer model -test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/models/speech_endpointer_model_test.cc) +test](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/models/speech_endpointer_model_test.cc) ## Android Support The models have been tested on Android phones, using the following tests: -[Hotword] (https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/android/BUILD?rcl=172930882&l=25) +[Hotword] (https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/android/BUILD?rcl=172930882&l=25) -[Speaker-id] (https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/android/BUILD?rcl=172930882&l=36) +[Speaker-id] (https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/android/BUILD?rcl=172930882&l=36) diff --git a/tensorflow/contrib/lite/models/testdata/g3doc/asr_am.svg b/tensorflow/lite/models/testdata/g3doc/asr_am.svg similarity index 100% rename from tensorflow/contrib/lite/models/testdata/g3doc/asr_am.svg rename to tensorflow/lite/models/testdata/g3doc/asr_am.svg diff --git a/tensorflow/contrib/lite/models/testdata/g3doc/asr_lm.svg b/tensorflow/lite/models/testdata/g3doc/asr_lm.svg similarity index 100% rename from tensorflow/contrib/lite/models/testdata/g3doc/asr_lm.svg rename to tensorflow/lite/models/testdata/g3doc/asr_lm.svg diff --git a/tensorflow/contrib/lite/models/testdata/g3doc/endpointer.svg b/tensorflow/lite/models/testdata/g3doc/endpointer.svg similarity index 100% rename from tensorflow/contrib/lite/models/testdata/g3doc/endpointer.svg rename to tensorflow/lite/models/testdata/g3doc/endpointer.svg diff --git a/tensorflow/contrib/lite/models/testdata/g3doc/hotword.svg b/tensorflow/lite/models/testdata/g3doc/hotword.svg similarity index 100% rename from tensorflow/contrib/lite/models/testdata/g3doc/hotword.svg rename to tensorflow/lite/models/testdata/g3doc/hotword.svg diff --git a/tensorflow/contrib/lite/models/testdata/g3doc/speakerid.svg b/tensorflow/lite/models/testdata/g3doc/speakerid.svg similarity index 100% rename from tensorflow/contrib/lite/models/testdata/g3doc/speakerid.svg rename to tensorflow/lite/models/testdata/g3doc/speakerid.svg diff --git a/tensorflow/contrib/lite/models/testdata/g3doc/tts.svg b/tensorflow/lite/models/testdata/g3doc/tts.svg similarity index 100% rename from tensorflow/contrib/lite/models/testdata/g3doc/tts.svg rename to tensorflow/lite/models/testdata/g3doc/tts.svg diff --git a/tensorflow/contrib/lite/models/testdata/smartreply_samples.tsv b/tensorflow/lite/models/testdata/smartreply_samples.tsv similarity index 100% rename from tensorflow/contrib/lite/models/testdata/smartreply_samples.tsv rename to tensorflow/lite/models/testdata/smartreply_samples.tsv diff --git a/tensorflow/contrib/lite/models/testdata/speech_asr_lm_model.test_spec b/tensorflow/lite/models/testdata/speech_asr_lm_model.test_spec similarity index 100% rename from tensorflow/contrib/lite/models/testdata/speech_asr_lm_model.test_spec rename to tensorflow/lite/models/testdata/speech_asr_lm_model.test_spec diff --git a/tensorflow/contrib/lite/mutable_op_resolver.cc b/tensorflow/lite/mutable_op_resolver.cc similarity index 97% rename from tensorflow/contrib/lite/mutable_op_resolver.cc rename to tensorflow/lite/mutable_op_resolver.cc index a36404399bb3e060ec9712532ad1c3bf4d8955e4..36c512dcaacef95282afeef7ef11d0f136c20f90 100644 --- a/tensorflow/contrib/lite/mutable_op_resolver.cc +++ b/tensorflow/lite/mutable_op_resolver.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/mutable_op_resolver.h" +#include "tensorflow/lite/mutable_op_resolver.h" namespace tflite { diff --git a/tensorflow/contrib/lite/mutable_op_resolver.h b/tensorflow/lite/mutable_op_resolver.h similarity index 91% rename from tensorflow/contrib/lite/mutable_op_resolver.h rename to tensorflow/lite/mutable_op_resolver.h index efd6cfac2ac899c13156e5a9290eb625bb9a2bb8..b5700595499714d30c70b9226942b69609037b99 100644 --- a/tensorflow/contrib/lite/mutable_op_resolver.h +++ b/tensorflow/lite/mutable_op_resolver.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_MUTABLE_OP_RESOLVER_H_ -#define TENSORFLOW_CONTRIB_LITE_MUTABLE_OP_RESOLVER_H_ +#ifndef TENSORFLOW_LITE_MUTABLE_OP_RESOLVER_H_ +#define TENSORFLOW_LITE_MUTABLE_OP_RESOLVER_H_ #include -#include "tensorflow/contrib/lite/core/api/op_resolver.h" -#include "tensorflow/contrib/lite/util.h" +#include "tensorflow/lite/core/api/op_resolver.h" +#include "tensorflow/lite/util.h" namespace tflite { @@ -78,4 +78,4 @@ class MutableOpResolver : public OpResolver { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_MUTABLE_OP_RESOLVER_H_ +#endif // TENSORFLOW_LITE_MUTABLE_OP_RESOLVER_H_ diff --git a/tensorflow/contrib/lite/mutable_op_resolver_test.cc b/tensorflow/lite/mutable_op_resolver_test.cc similarity index 98% rename from tensorflow/contrib/lite/mutable_op_resolver_test.cc rename to tensorflow/lite/mutable_op_resolver_test.cc index b70c7038396782d9a8bfda75d08cc8d4f535d100..64fc68a16ca62d55d3633ac2e8bdbf7836e67ba4 100644 --- a/tensorflow/contrib/lite/mutable_op_resolver_test.cc +++ b/tensorflow/lite/mutable_op_resolver_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/mutable_op_resolver.h" +#include "tensorflow/lite/mutable_op_resolver.h" #include -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/nnapi/BUILD b/tensorflow/lite/nnapi/BUILD similarity index 100% rename from tensorflow/contrib/lite/nnapi/BUILD rename to tensorflow/lite/nnapi/BUILD diff --git a/tensorflow/contrib/lite/nnapi/NeuralNetworksShim.h b/tensorflow/lite/nnapi/NeuralNetworksShim.h similarity index 99% rename from tensorflow/contrib/lite/nnapi/NeuralNetworksShim.h rename to tensorflow/lite/nnapi/NeuralNetworksShim.h index eccf4aefb6372b71c3b87dc0cdea24fec22ff625..c39502f4acc5dc6262746a61688cd075861e6135 100644 --- a/tensorflow/contrib/lite/nnapi/NeuralNetworksShim.h +++ b/tensorflow/lite/nnapi/NeuralNetworksShim.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_NNAPI_NEURALNETWORKSSHIM_H_ -#define TENSORFLOW_CONTRIB_LITE_NNAPI_NEURALNETWORKSSHIM_H_ +#ifndef TENSORFLOW_LITE_NNAPI_NEURALNETWORKSSHIM_H_ +#define TENSORFLOW_LITE_NNAPI_NEURALNETWORKSSHIM_H_ #include #include @@ -1009,4 +1009,4 @@ inline void ANeuralNetworksEvent_free(ANeuralNetworksEvent* event) { /**/ -#endif // TENSORFLOW_CONTRIB_LITE_NNAPI_NEURALNETWORKSSHIM_H_ +#endif // TENSORFLOW_LITE_NNAPI_NEURALNETWORKSSHIM_H_ diff --git a/tensorflow/contrib/lite/nnapi/README.md b/tensorflow/lite/nnapi/README.md similarity index 100% rename from tensorflow/contrib/lite/nnapi/README.md rename to tensorflow/lite/nnapi/README.md diff --git a/tensorflow/contrib/lite/nnapi_delegate.cc b/tensorflow/lite/nnapi_delegate.cc similarity index 99% rename from tensorflow/contrib/lite/nnapi_delegate.cc rename to tensorflow/lite/nnapi_delegate.cc index 9cca2293324923374d96771e10eb0004db2b9319..950bdb39425f89e8870ca7f2146641912073a2e0 100644 --- a/tensorflow/contrib/lite/nnapi_delegate.cc +++ b/tensorflow/lite/nnapi_delegate.cc @@ -13,15 +13,15 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/nnapi_delegate.h" +#include "tensorflow/lite/nnapi_delegate.h" #include #include #include #include -#include "tensorflow/contrib/lite/c/builtin_op_data.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/nnapi/NeuralNetworksShim.h" +#include "tensorflow/lite/c/builtin_op_data.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/nnapi/NeuralNetworksShim.h" #ifdef __ANDROID__ #include diff --git a/tensorflow/contrib/lite/nnapi_delegate.h b/tensorflow/lite/nnapi_delegate.h similarity index 86% rename from tensorflow/contrib/lite/nnapi_delegate.h rename to tensorflow/lite/nnapi_delegate.h index 22359d557e61e3ca3a977803276f1c67a2229c22..63b408c1416ed1c2126cbdb5c376cb3dbb10f789 100644 --- a/tensorflow/contrib/lite/nnapi_delegate.h +++ b/tensorflow/lite/nnapi_delegate.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_NNAPI_DELEGATE_H_ -#define TENSORFLOW_CONTRIB_LITE_NNAPI_DELEGATE_H_ +#ifndef TENSORFLOW_LITE_NNAPI_DELEGATE_H_ +#define TENSORFLOW_LITE_NNAPI_DELEGATE_H_ -#include "tensorflow/contrib/lite/allocation.h" -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/interpreter.h" +#include "tensorflow/lite/allocation.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/interpreter.h" class ANeuralNetworksModel; class ANeuralNetworksMemory; @@ -77,4 +77,4 @@ class NNAPIDelegate { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_NNAPI_DELEGATE_H_ +#endif // TENSORFLOW_LITE_NNAPI_DELEGATE_H_ diff --git a/tensorflow/contrib/lite/nnapi_delegate_disabled.cc b/tensorflow/lite/nnapi_delegate_disabled.cc similarity index 96% rename from tensorflow/contrib/lite/nnapi_delegate_disabled.cc rename to tensorflow/lite/nnapi_delegate_disabled.cc index e3536d3db6c59fa241dfc1cd866005b94172f779..44dc21f1b6c2b3e4eb2c31fb19046fca90440428 100644 --- a/tensorflow/contrib/lite/nnapi_delegate_disabled.cc +++ b/tensorflow/lite/nnapi_delegate_disabled.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/nnapi_delegate.h" +#include "tensorflow/lite/nnapi_delegate.h" #include diff --git a/tensorflow/contrib/lite/op_resolver.h b/tensorflow/lite/op_resolver.h similarity index 73% rename from tensorflow/contrib/lite/op_resolver.h rename to tensorflow/lite/op_resolver.h index e93134cbdecd58cb11e6be4d777549b7c63f6595..96490d44b91c101647f3ed2c7cebbec523d687c3 100644 --- a/tensorflow/contrib/lite/op_resolver.h +++ b/tensorflow/lite/op_resolver.h @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ // Compatibility shim for moved header location. -#ifndef TENSORFLOW_CONTRIB_LITE_OP_RESOLVER_H_ -#define TENSORFLOW_CONTRIB_LITE_OP_RESOLVER_H_ +#ifndef TENSORFLOW_LITE_OP_RESOLVER_H_ +#define TENSORFLOW_LITE_OP_RESOLVER_H_ -#include "tensorflow/contrib/lite/core/api/op_resolver.h" -#include "tensorflow/contrib/lite/mutable_op_resolver.h" +#include "tensorflow/lite/core/api/op_resolver.h" +#include "tensorflow/lite/mutable_op_resolver.h" -#endif // TENSORFLOW_CONTRIB_LITE_OP_RESOLVER_H_ +#endif // TENSORFLOW_LITE_OP_RESOLVER_H_ diff --git a/tensorflow/contrib/lite/optional_debug_tools.cc b/tensorflow/lite/optional_debug_tools.cc similarity index 98% rename from tensorflow/contrib/lite/optional_debug_tools.cc rename to tensorflow/lite/optional_debug_tools.cc index 64ba2d8baa2ea22bdc9d6ded57c5086ef4781623..020d1d8de5ff0edb0f48dd28a3acfc93e00bed03 100644 --- a/tensorflow/contrib/lite/optional_debug_tools.cc +++ b/tensorflow/lite/optional_debug_tools.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/optional_debug_tools.h" +#include "tensorflow/lite/optional_debug_tools.h" namespace tflite { diff --git a/tensorflow/contrib/lite/optional_debug_tools.h b/tensorflow/lite/optional_debug_tools.h similarity index 80% rename from tensorflow/contrib/lite/optional_debug_tools.h rename to tensorflow/lite/optional_debug_tools.h index 82a6e114a66eb3865da6f09a634ccb6367454bdb..fb2f78e5ae42abdad955752335d476250e370f62 100644 --- a/tensorflow/contrib/lite/optional_debug_tools.h +++ b/tensorflow/lite/optional_debug_tools.h @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ // Optional debugging functionality. For small sized binaries, these are not // needed. -#ifndef TENSORFLOW_CONTRIB_LITE_OPTIONAL_DEBUG_TOOLS_H_ -#define TENSORFLOW_CONTRIB_LITE_OPTIONAL_DEBUG_TOOLS_H_ +#ifndef TENSORFLOW_LITE_OPTIONAL_DEBUG_TOOLS_H_ +#define TENSORFLOW_LITE_OPTIONAL_DEBUG_TOOLS_H_ -#include "tensorflow/contrib/lite/interpreter.h" +#include "tensorflow/lite/interpreter.h" namespace tflite { @@ -26,4 +26,4 @@ void PrintInterpreterState(Interpreter* interpreter); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_OPTIONAL_DEBUG_TOOLS_H_ +#endif // TENSORFLOW_LITE_OPTIONAL_DEBUG_TOOLS_H_ diff --git a/tensorflow/contrib/lite/profiling/BUILD b/tensorflow/lite/profiling/BUILD similarity index 71% rename from tensorflow/contrib/lite/profiling/BUILD rename to tensorflow/lite/profiling/BUILD index 1172722f7a70771af73eb07571349e431755471c..c7a8e4f06ae19057e6b869d840233613a04a95d3 100644 --- a/tensorflow/contrib/lite/profiling/BUILD +++ b/tensorflow/lite/profiling/BUILD @@ -2,7 +2,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Apache 2.0 -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") common_copts = [ "-Wall", @@ -22,7 +22,7 @@ cc_test( defines = ["TFLITE_PROFILING_ENABLED"], deps = [ ":profiler", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -48,9 +48,9 @@ cc_library( copts = common_copts, deps = [ ":profiler", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/schema:schema_fbs", "//tensorflow/core:stats_calculator_portable", + "//tensorflow/lite:framework", + "//tensorflow/lite/schema:schema_fbs", ], ) @@ -61,12 +61,12 @@ cc_test( tags = ["no_oss"], deps = [ ":profile_summarizer", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/kernels:kernel_util", - "//tensorflow/contrib/lite/kernels:test_util", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite:framework", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/kernels:kernel_util", + "//tensorflow/lite/kernels:test_util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -78,7 +78,7 @@ cc_test( defines = ["TFLITE_PROFILING_ENABLED"], deps = [ ":profile_buffer", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) diff --git a/tensorflow/contrib/lite/profiling/profile_buffer.h b/tensorflow/lite/profiling/profile_buffer.h similarity index 95% rename from tensorflow/contrib/lite/profiling/profile_buffer.h rename to tensorflow/lite/profiling/profile_buffer.h index 65d86dce47f397c7dad6cc2beb8ffa1f95b29d45..247ebb37c53e7a1a7197155c0f63c877857289e1 100644 --- a/tensorflow/contrib/lite/profiling/profile_buffer.h +++ b/tensorflow/lite/profiling/profile_buffer.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILE_BUFFER_H_ -#define TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILE_BUFFER_H_ +#ifndef TENSORFLOW_LITE_PROFILING_PROFILE_BUFFER_H_ +#define TENSORFLOW_LITE_PROFILING_PROFILE_BUFFER_H_ #include #include -#include "tensorflow/contrib/lite/profiling/time.h" +#include "tensorflow/lite/profiling/time.h" namespace tflite { namespace profiling { @@ -143,4 +143,4 @@ class ProfileBuffer { } // namespace profiling } // namespace tflite #endif // TFLITE_PROFILING_ENABLED -#endif // TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILE_BUFFER_H_ +#endif // TENSORFLOW_LITE_PROFILING_PROFILE_BUFFER_H_ diff --git a/tensorflow/contrib/lite/profiling/profile_buffer_test.cc b/tensorflow/lite/profiling/profile_buffer_test.cc similarity index 96% rename from tensorflow/contrib/lite/profiling/profile_buffer_test.cc rename to tensorflow/lite/profiling/profile_buffer_test.cc index b8784cca455cfc301f2cc30c9c6d031b7174f829..6642a15884fdf57cb385e186fd75620183098375 100644 --- a/tensorflow/contrib/lite/profiling/profile_buffer_test.cc +++ b/tensorflow/lite/profiling/profile_buffer_test.cc @@ -17,8 +17,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/profiling/profile_buffer.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/profiling/profile_buffer.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace profiling { diff --git a/tensorflow/contrib/lite/profiling/profile_summarizer.cc b/tensorflow/lite/profiling/profile_summarizer.cc similarity index 97% rename from tensorflow/contrib/lite/profiling/profile_summarizer.cc rename to tensorflow/lite/profiling/profile_summarizer.cc index 720bd717b9e3b0c45cbdbaaad2b6900edacc3051..64b1bd7ad771c11412a2558bf4454ad2e06c0096 100644 --- a/tensorflow/contrib/lite/profiling/profile_summarizer.cc +++ b/tensorflow/lite/profiling/profile_summarizer.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/profiling/profile_summarizer.h" +#include "tensorflow/lite/profiling/profile_summarizer.h" #include -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { namespace profiling { diff --git a/tensorflow/contrib/lite/profiling/profile_summarizer.h b/tensorflow/lite/profiling/profile_summarizer.h similarity index 84% rename from tensorflow/contrib/lite/profiling/profile_summarizer.h rename to tensorflow/lite/profiling/profile_summarizer.h index a529ff87428d70d002241311d7f70f185521020f..d4f5da7be96adcf8068526686b035f0e7a04f27a 100644 --- a/tensorflow/contrib/lite/profiling/profile_summarizer.h +++ b/tensorflow/lite/profiling/profile_summarizer.h @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILE_SUMMARIZER_H_ -#define TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILE_SUMMARIZER_H_ +#ifndef TENSORFLOW_LITE_PROFILING_PROFILE_SUMMARIZER_H_ +#define TENSORFLOW_LITE_PROFILING_PROFILE_SUMMARIZER_H_ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/profiling/profiler.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/profiling/profiler.h" #include "tensorflow/core/util/stats_calculator.h" namespace tflite { @@ -52,4 +52,4 @@ class ProfileSummarizer { } // namespace profiling } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILE_SUMMARIZER_H_ +#endif // TENSORFLOW_LITE_PROFILING_PROFILE_SUMMARIZER_H_ diff --git a/tensorflow/contrib/lite/profiling/profile_summarizer_test.cc b/tensorflow/lite/profiling/profile_summarizer_test.cc similarity index 93% rename from tensorflow/contrib/lite/profiling/profile_summarizer_test.cc rename to tensorflow/lite/profiling/profile_summarizer_test.cc index 465c294962df77a84f3c71d41f51f855773c3614..bbb64b832aecae2c51f0f9563c8c5d001f7651c7 100644 --- a/tensorflow/contrib/lite/profiling/profile_summarizer_test.cc +++ b/tensorflow/lite/profiling/profile_summarizer_test.cc @@ -18,13 +18,13 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/kernels/kernel_util.h" -#include "tensorflow/contrib/lite/kernels/test_util.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/profiling/profile_summarizer.h" -#include "tensorflow/contrib/lite/testing/util.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/kernels/kernel_util.h" +#include "tensorflow/lite/kernels/test_util.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/profiling/profile_summarizer.h" +#include "tensorflow/lite/testing/util.h" +#include "tensorflow/lite/version.h" namespace tflite { namespace profiling { diff --git a/tensorflow/contrib/lite/profiling/profiler.h b/tensorflow/lite/profiling/profiler.h similarity index 95% rename from tensorflow/contrib/lite/profiling/profiler.h rename to tensorflow/lite/profiling/profiler.h index 8c3e4dc76d8061fdd9d238b7647dc07a5ecdf0e2..89c05cba37b37a88b9d91db8f997e1fcecf43174 100644 --- a/tensorflow/contrib/lite/profiling/profiler.h +++ b/tensorflow/lite/profiling/profiler.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILER_H_ -#define TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILER_H_ +#ifndef TENSORFLOW_LITE_PROFILING_PROFILER_H_ +#define TENSORFLOW_LITE_PROFILING_PROFILER_H_ #include -#include "tensorflow/contrib/lite/profiling/profile_buffer.h" +#include "tensorflow/lite/profiling/profile_buffer.h" #ifdef TFLITE_PROFILING_ENABLED @@ -176,4 +176,4 @@ class Profiler { #endif // TFLITE_PROFILING_ENABLED -#endif // TENSORFLOW_CONTRIB_LITE_PROFILING_PROFILER_H_ +#endif // TENSORFLOW_LITE_PROFILING_PROFILER_H_ diff --git a/tensorflow/contrib/lite/profiling/profiler_test.cc b/tensorflow/lite/profiling/profiler_test.cc similarity index 97% rename from tensorflow/contrib/lite/profiling/profiler_test.cc rename to tensorflow/lite/profiling/profiler_test.cc index cf56eed2a4643e0e5ab918bd06cbb85fd3e94a83..82d053729c900fbb536c59658357f3a5a550646b 100644 --- a/tensorflow/contrib/lite/profiling/profiler_test.cc +++ b/tensorflow/lite/profiling/profiler_test.cc @@ -20,8 +20,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/profiling/profiler.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/profiling/profiler.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace profiling { diff --git a/tensorflow/contrib/lite/profiling/time.cc b/tensorflow/lite/profiling/time.cc similarity index 96% rename from tensorflow/contrib/lite/profiling/time.cc rename to tensorflow/lite/profiling/time.cc index 875ddb02bcfc30f4c2ef543fe1c15bec467e5410..3e7db03d9d8df1eeb0c82d388324716c5e7d7896 100644 --- a/tensorflow/contrib/lite/profiling/time.cc +++ b/tensorflow/lite/profiling/time.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/profiling/time.h" +#include "tensorflow/lite/profiling/time.h" #if defined(_MSC_VER) #include // NOLINT(build/c++11) diff --git a/tensorflow/contrib/lite/profiling/time.h b/tensorflow/lite/profiling/time.h similarity index 84% rename from tensorflow/contrib/lite/profiling/time.h rename to tensorflow/lite/profiling/time.h index cc2ec319b8a95b3efa0aab0ac9f97a88bf7b5536..66233a480fd390619629e26a05284202057e0f4a 100644 --- a/tensorflow/contrib/lite/profiling/time.h +++ b/tensorflow/lite/profiling/time.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_PROFILING_TIME_H_ -#define TENSORFLOW_CONTRIB_LITE_PROFILING_TIME_H_ +#ifndef TENSORFLOW_LITE_PROFILING_TIME_H_ +#define TENSORFLOW_LITE_PROFILING_TIME_H_ #include @@ -24,4 +24,4 @@ uint64_t NowMicros(); } // namespace time } // namespace profiling } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_PROFILING_TIME_H_ +#endif // TENSORFLOW_LITE_PROFILING_TIME_H_ diff --git a/tensorflow/lite/python/BUILD b/tensorflow/lite/python/BUILD new file mode 100644 index 0000000000000000000000000000000000000000..017dd72f78156155ac3afc01275d2d152df3d696 --- /dev/null +++ b/tensorflow/lite/python/BUILD @@ -0,0 +1,189 @@ +licenses(["notice"]) # Apache 2.0 + +package(default_visibility = ["//tensorflow:internal"]) + +load("//tensorflow:tensorflow.bzl", "py_test") + +filegroup( + name = "interpreter_test_data", + srcs = glob(["**/testdata/*"]), + visibility = ["//tensorflow:__subpackages__"], +) + +py_library( + name = "interpreter", + srcs = [ + "interpreter.py", + ], + srcs_version = "PY2AND3", + visibility = ["//visibility:public"], + deps = [ + "//tensorflow/lite/python/interpreter_wrapper:tensorflow_wrap_interpreter_wrapper", + "//tensorflow/python:util", + "//third_party/py/numpy", + ], +) + +py_test( + name = "interpreter_test", + srcs = ["interpreter_test.py"], + data = [":interpreter_test_data"], + srcs_version = "PY2AND3", + tags = ["no_oss"], + deps = [ + ":interpreter", + "//tensorflow/python:client_testlib", + "//tensorflow/python:framework_test_lib", + "//tensorflow/python:platform", + "//third_party/py/numpy", + ], +) + +py_binary( + name = "tflite_convert", + srcs = ["tflite_convert.py"], + srcs_version = "PY2AND3", + visibility = ["//visibility:public"], + deps = [ + ":lite", + ], +) + +py_library( + name = "lite", + srcs = ["lite.py"], + srcs_version = "PY2AND3", + visibility = ["//visibility:public"], + deps = [ + ":convert", + ":convert_saved_model", + ":interpreter", + ":lite_constants", + ":op_hint", + "//tensorflow/python:graph_util", + "//tensorflow/python/keras", + "//tensorflow/python/saved_model:constants", + "//tensorflow/python/saved_model:loader", + ], +) + +py_test( + name = "lite_test", + srcs = ["lite_test.py"], + data = ["@tflite_mobilenet_ssd_quant_protobuf//:tflite_graph.pb"], + srcs_version = "PY2AND3", + tags = [ + "no_oss", + "no_windows", + ], + deps = [ + ":lite", + "//tensorflow/python:client_testlib", + "//tensorflow/python:framework_test_lib", + ], +) + +py_library( + name = "lite_constants", + srcs = ["lite_constants.py"], + srcs_version = "PY2AND3", + deps = [ + "//tensorflow/lite/toco:toco_flags_proto_py", + ], +) + +py_library( + name = "convert", + srcs = ["convert.py"], + srcs_version = "PY2AND3", + visibility = ["//visibility:public"], + deps = [ + ":lite_constants", + "//tensorflow/lite/toco:model_flags_proto_py", + "//tensorflow/lite/toco:toco_flags_proto_py", + "//tensorflow/lite/toco/python:tensorflow_wrap_toco", + "//tensorflow/lite/toco/python:toco_from_protos", + "//tensorflow/python:platform", + ], +) + +py_library( + name = "op_hint", + srcs = ["op_hint.py"], + srcs_version = "PY2AND3", + visibility = ["//visibility:public"], + deps = [ + "//tensorflow/contrib/framework:framework_py", + "//tensorflow/contrib/graph_editor:graph_editor_py", + "//tensorflow/core:protos_all_py", + "//tensorflow/python:framework", + "//tensorflow/python:platform", + "//tensorflow/python:util", + ], +) + +py_test( + name = "convert_test", + srcs = ["convert_test.py"], + srcs_version = "PY2AND3", + deps = [ + ":convert", + ":interpreter", + ":op_hint", + "//tensorflow/python:array_ops", + "//tensorflow/python:client_testlib", + "//tensorflow/python:dtypes", + "//tensorflow/python:platform_test", + "//tensorflow/python:session", + ], +) + +py_library( + name = "convert_saved_model", + srcs = ["convert_saved_model.py"], + srcs_version = "PY2AND3", + visibility = [ + "//tensorflow/contrib/lite:__subpackages__", + "//tensorflow/lite:__subpackages__", + ], + deps = [ + ":convert", + "//tensorflow/python:graph_util", + "//tensorflow/python:platform", + "//tensorflow/python/saved_model", + ], +) + +py_binary( + name = "create_custom_op", + srcs = ["create_custom_op.py"], + srcs_version = "PY2AND3", + visibility = ["//visibility:public"], + deps = [ + "//tensorflow/contrib/framework:framework_py", + "//tensorflow/core:protos_all_py", + "//tensorflow/python:platform", + "@absl_py//absl/flags", + ], +) + +py_test( + name = "convert_saved_model_test", + srcs = ["convert_saved_model_test.py"], + srcs_version = "PY2AND3", + tags = [ + "no_windows", + ], + visibility = ["//visibility:public"], + deps = [ + ":convert_saved_model", + "//tensorflow/python:client_testlib", + "//tensorflow/python:layers", + "//tensorflow/python:nn", + "//tensorflow/python:platform_test", + "//tensorflow/python:session", + "//tensorflow/python/keras", + "//tensorflow/python/ops/losses", + "//tensorflow/python/saved_model", + ], +) diff --git a/tensorflow/contrib/lite/python/convert.py b/tensorflow/lite/python/convert.py similarity index 98% rename from tensorflow/contrib/lite/python/convert.py rename to tensorflow/lite/python/convert.py index f36248f327b3f6b991d7d26bcee3537e47b03a7c..f06d0ba1a0889606d93fda64bc92e260debe2d69 100644 --- a/tensorflow/contrib/lite/python/convert.py +++ b/tensorflow/lite/python/convert.py @@ -25,9 +25,9 @@ import platform as _platform import subprocess as _subprocess import tempfile as _tempfile -from tensorflow.contrib.lite.python import lite_constants -from tensorflow.contrib.lite.toco import model_flags_pb2 as _model_flags_pb2 -from tensorflow.contrib.lite.toco import toco_flags_pb2 as _toco_flags_pb2 +from tensorflow.lite.python import lite_constants +from tensorflow.lite.toco import model_flags_pb2 as _model_flags_pb2 +from tensorflow.lite.toco import toco_flags_pb2 as _toco_flags_pb2 from tensorflow.python.platform import resource_loader as _resource_loader from tensorflow.python.util import deprecation from tensorflow.python.util.lazy_loader import LazyLoader @@ -37,7 +37,7 @@ from tensorflow.python.util.tf_export import tf_export as _tf_export # break dependencies. _toco_python = LazyLoader( "tensorflow_wrap_toco", globals(), - "tensorflow.contrib.lite.toco.python." + "tensorflow.lite.toco.python." "tensorflow_wrap_toco") del LazyLoader @@ -97,7 +97,7 @@ def toco_convert_protos(model_flags_str, toco_flags_str, input_data_str): """Convert `input_data_str` according to model and toco parameters. Unless you know what you are doing consider using - the more friendly `tf.contrib.lite.toco_convert`. + the more friendly `tf.lite.toco_convert`. Args: model_flags_str: Serialized proto describing model properties, see diff --git a/tensorflow/contrib/lite/python/convert_saved_model.py b/tensorflow/lite/python/convert_saved_model.py similarity index 99% rename from tensorflow/contrib/lite/python/convert_saved_model.py rename to tensorflow/lite/python/convert_saved_model.py index d18b60d0ea04ee47e83ea6ea4e773a2f86358d11..3f54d2559c4d85f4a621b3781f3d76856c709576 100644 --- a/tensorflow/contrib/lite/python/convert_saved_model.py +++ b/tensorflow/lite/python/convert_saved_model.py @@ -18,7 +18,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -from tensorflow.contrib.lite.python.convert import tensor_name +from tensorflow.lite.python.convert import tensor_name from tensorflow.core.framework import types_pb2 from tensorflow.python.client import session from tensorflow.python.framework import graph_util as tf_graph_util diff --git a/tensorflow/contrib/lite/python/convert_saved_model_test.py b/tensorflow/lite/python/convert_saved_model_test.py similarity index 99% rename from tensorflow/contrib/lite/python/convert_saved_model_test.py rename to tensorflow/lite/python/convert_saved_model_test.py index 66586e01fb749e104abcc6c8d3fd293da9550436..dff582f1a16d2f228df5253652437e4b5266e502 100644 --- a/tensorflow/contrib/lite/python/convert_saved_model_test.py +++ b/tensorflow/lite/python/convert_saved_model_test.py @@ -24,7 +24,7 @@ from __future__ import division from __future__ import print_function import os -from tensorflow.contrib.lite.python import convert_saved_model +from tensorflow.lite.python import convert_saved_model from tensorflow.python.client import session from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops diff --git a/tensorflow/contrib/lite/python/convert_test.py b/tensorflow/lite/python/convert_test.py similarity index 98% rename from tensorflow/contrib/lite/python/convert_test.py rename to tensorflow/lite/python/convert_test.py index b403ba37359e605443ff0be16819676ff8028d83..7a0bce921b599f0dad9012c3148abd7a86496594 100644 --- a/tensorflow/contrib/lite/python/convert_test.py +++ b/tensorflow/lite/python/convert_test.py @@ -19,10 +19,10 @@ from __future__ import print_function import numpy as np -from tensorflow.contrib.lite.python import convert -from tensorflow.contrib.lite.python import lite_constants -from tensorflow.contrib.lite.python import op_hint -from tensorflow.contrib.lite.python.interpreter import Interpreter +from tensorflow.lite.python import convert +from tensorflow.lite.python import lite_constants +from tensorflow.lite.python import op_hint +from tensorflow.lite.python.interpreter import Interpreter from tensorflow.python.client import session from tensorflow.python.framework import dtypes from tensorflow.python.framework import test_util diff --git a/tensorflow/contrib/lite/python/create_custom_op.py b/tensorflow/lite/python/create_custom_op.py similarity index 98% rename from tensorflow/contrib/lite/python/create_custom_op.py rename to tensorflow/lite/python/create_custom_op.py index 830f95358c455047db2cbad15cfed8c221e95dca..344cd28d160f2d3d4f277bbfb41aa21087659af5 100644 --- a/tensorflow/contrib/lite/python/create_custom_op.py +++ b/tensorflow/lite/python/create_custom_op.py @@ -19,7 +19,7 @@ portions of a TensorFlow GraphDef to be executed by custom code. Example: -bazel run tensorflow/contrib/lite/python:create_custom_op -- \ +bazel run tensorflow/lite/python:create_custom_op -- \ --input_graph=/tmp/input.pb \ --output_graph=/tmp/output.pb \ --inputs=concat,concat_1 \ diff --git a/tensorflow/contrib/lite/python/interpreter.py b/tensorflow/lite/python/interpreter.py similarity index 99% rename from tensorflow/contrib/lite/python/interpreter.py rename to tensorflow/lite/python/interpreter.py index 74ee82a062c255de9a948b33be36bd94c828346a..a6183d13b56c787aac0d9d9fc190eff277eb4c8e 100644 --- a/tensorflow/contrib/lite/python/interpreter.py +++ b/tensorflow/lite/python/interpreter.py @@ -28,7 +28,7 @@ from tensorflow.python.util.tf_export import tf_export as _tf_export # pylint: disable=g-inconsistent-quotes _interpreter_wrapper = LazyLoader( "_interpreter_wrapper", globals(), - "tensorflow.contrib.lite.python.interpreter_wrapper." + "tensorflow.lite.python.interpreter_wrapper." "tensorflow_wrap_interpreter_wrapper") # pylint: enable=g-inconsistent-quotes diff --git a/tensorflow/contrib/lite/python/interpreter_test.py b/tensorflow/lite/python/interpreter_test.py similarity index 98% rename from tensorflow/contrib/lite/python/interpreter_test.py rename to tensorflow/lite/python/interpreter_test.py index e77d52ca9950ec42300264bb56ebce253d4982b1..7ec56a21c9ffa82e1893d3846d92564539ac34ae 100644 --- a/tensorflow/contrib/lite/python/interpreter_test.py +++ b/tensorflow/lite/python/interpreter_test.py @@ -21,7 +21,7 @@ import io import numpy as np import six -from tensorflow.contrib.lite.python import interpreter as interpreter_wrapper +from tensorflow.lite.python import interpreter as interpreter_wrapper from tensorflow.python.framework import test_util from tensorflow.python.platform import resource_loader from tensorflow.python.platform import test diff --git a/tensorflow/contrib/lite/python/interpreter_wrapper/BUILD b/tensorflow/lite/python/interpreter_wrapper/BUILD similarity index 86% rename from tensorflow/contrib/lite/python/interpreter_wrapper/BUILD rename to tensorflow/lite/python/interpreter_wrapper/BUILD index 69ee95c320b72b68052c6f76f32c1493707f34b1..767a9fc476398dd8fb60128f73f8ae7c518d9a21 100644 --- a/tensorflow/contrib/lite/python/interpreter_wrapper/BUILD +++ b/tensorflow/lite/python/interpreter_wrapper/BUILD @@ -11,8 +11,8 @@ cc_library( srcs = ["interpreter_wrapper.cc"], hdrs = ["interpreter_wrapper.h"], deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", "//third_party/py/numpy:headers", "//third_party/python_runtime:headers", "@com_google_absl//absl/memory", diff --git a/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.cc b/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.cc similarity index 98% rename from tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.cc rename to tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.cc index 1e2384b6d23167026c1e22689581aed113c6d577..e71752fe6318e8518a8e67d1bb006661b4bdd880 100644 --- a/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.cc +++ b/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.cc @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h" +#include "tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.h" #include #include #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" // Disallow Numpy 1.7 deprecated symbols. #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION diff --git a/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h b/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.h similarity index 93% rename from tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h rename to tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.h index b98046fe8a2ce54c5304df770fae548bc5f4db55..ffb02780255e4141ae12e3acf3e157b5b0539b4d 100644 --- a/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h +++ b/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_PYTHON_INTERPRETER_WRAPPER_INTERPRETER_WRAPPER_H_ -#define TENSORFLOW_CONTRIB_LITE_PYTHON_INTERPRETER_WRAPPER_INTERPRETER_WRAPPER_H_ +#ifndef TENSORFLOW_LITE_PYTHON_INTERPRETER_WRAPPER_INTERPRETER_WRAPPER_H_ +#define TENSORFLOW_LITE_PYTHON_INTERPRETER_WRAPPER_INTERPRETER_WRAPPER_H_ #include #include @@ -104,4 +104,4 @@ class InterpreterWrapper { } // namespace interpreter_wrapper } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_PYTHON_INTERPRETER_WRAPPER_INTERPRETER_WRAPPER_H_ +#endif // TENSORFLOW_LITE_PYTHON_INTERPRETER_WRAPPER_INTERPRETER_WRAPPER_H_ diff --git a/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.i b/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.i similarity index 88% rename from tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.i rename to tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.i index afb2092eacab1d8dcccf8c75cee1d8d5c34d7e75..f52ef1eeca7db397d84d249b74445a3276bc65fb 100644 --- a/tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.i +++ b/tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.i @@ -18,13 +18,13 @@ limitations under the License. %{ #define SWIG_FILE_WITH_INIT -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.h" %} -%include "tensorflow/contrib/lite/python/interpreter_wrapper/interpreter_wrapper.h" +%include "tensorflow/lite/python/interpreter_wrapper/interpreter_wrapper.h" namespace tflite { namespace interpreter_wrapper { diff --git a/tensorflow/contrib/lite/python/lite.py b/tensorflow/lite/python/lite.py similarity index 94% rename from tensorflow/contrib/lite/python/lite.py rename to tensorflow/lite/python/lite.py index 01bd0e74f3dd1ec82767b49428e28837f5dbdf0f..5810553da2cf8e2bb3098e2928cf3c0c8c130d3b 100644 --- a/tensorflow/contrib/lite/python/lite.py +++ b/tensorflow/lite/python/lite.py @@ -39,21 +39,21 @@ from six import PY3 from google.protobuf import text_format as _text_format from google.protobuf.message import DecodeError -from tensorflow.contrib.lite.python import lite_constants as constants -from tensorflow.contrib.lite.python.convert import build_toco_convert_protos # pylint: disable=unused-import -from tensorflow.contrib.lite.python.convert import ConverterError # pylint: disable=unused-import -from tensorflow.contrib.lite.python.convert import OpsSet -from tensorflow.contrib.lite.python.convert import tensor_name as _tensor_name -from tensorflow.contrib.lite.python.convert import toco_convert # pylint: disable=unused-import -from tensorflow.contrib.lite.python.convert import toco_convert_graph_def as _toco_convert_graph_def -from tensorflow.contrib.lite.python.convert import toco_convert_impl as _toco_convert_impl -from tensorflow.contrib.lite.python.convert import toco_convert_protos # pylint: disable=unused-import -from tensorflow.contrib.lite.python.convert_saved_model import freeze_saved_model as _freeze_saved_model -from tensorflow.contrib.lite.python.convert_saved_model import get_tensors_from_tensor_names as _get_tensors_from_tensor_names -from tensorflow.contrib.lite.python.convert_saved_model import set_tensor_shapes as _set_tensor_shapes -from tensorflow.contrib.lite.python.interpreter import Interpreter # pylint: disable=unused-import -from tensorflow.contrib.lite.python.op_hint import convert_op_hints_to_stubs # pylint: disable=unused-import -from tensorflow.contrib.lite.python.op_hint import OpHint # pylint: disable=unused-import +from tensorflow.lite.python import lite_constants as constants +from tensorflow.lite.python.convert import build_toco_convert_protos # pylint: disable=unused-import +from tensorflow.lite.python.convert import ConverterError # pylint: disable=unused-import +from tensorflow.lite.python.convert import OpsSet +from tensorflow.lite.python.convert import tensor_name as _tensor_name +from tensorflow.lite.python.convert import toco_convert # pylint: disable=unused-import +from tensorflow.lite.python.convert import toco_convert_graph_def as _toco_convert_graph_def +from tensorflow.lite.python.convert import toco_convert_impl as _toco_convert_impl +from tensorflow.lite.python.convert import toco_convert_protos # pylint: disable=unused-import +from tensorflow.lite.python.convert_saved_model import freeze_saved_model as _freeze_saved_model +from tensorflow.lite.python.convert_saved_model import get_tensors_from_tensor_names as _get_tensors_from_tensor_names +from tensorflow.lite.python.convert_saved_model import set_tensor_shapes as _set_tensor_shapes +from tensorflow.lite.python.interpreter import Interpreter # pylint: disable=unused-import +from tensorflow.lite.python.op_hint import convert_op_hints_to_stubs # pylint: disable=unused-import +from tensorflow.lite.python.op_hint import OpHint # pylint: disable=unused-import from tensorflow.core.framework import graph_pb2 as _graph_pb2 from tensorflow.python import keras as _keras from tensorflow.python.client import session as _session diff --git a/tensorflow/contrib/lite/python/lite_constants.py b/tensorflow/lite/python/lite_constants.py similarity index 94% rename from tensorflow/contrib/lite/python/lite_constants.py rename to tensorflow/lite/python/lite_constants.py index eebe0a58bb116d12ce7c7038bb5230900b6362d3..fdefc5e6cf044894d45f6f5050b5c44f5c452acf 100644 --- a/tensorflow/contrib/lite/python/lite_constants.py +++ b/tensorflow/lite/python/lite_constants.py @@ -18,8 +18,8 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function -from tensorflow.contrib.lite.toco import toco_flags_pb2 as _toco_flags_pb2 -from tensorflow.contrib.lite.toco import types_pb2 as _types_pb2 +from tensorflow.lite.toco import toco_flags_pb2 as _toco_flags_pb2 +from tensorflow.lite.toco import types_pb2 as _types_pb2 from tensorflow.python.util.all_util import remove_undocumented from tensorflow.python.util.tf_export import tf_export as _tf_export diff --git a/tensorflow/contrib/lite/python/lite_test.py b/tensorflow/lite/python/lite_test.py similarity index 99% rename from tensorflow/contrib/lite/python/lite_test.py rename to tensorflow/lite/python/lite_test.py index 00a3d6f9b3a7f1d00e27963f40d506fb04e65cbf..5a5697db92b2167de447c1a5b650aa5cd7203ac8 100644 --- a/tensorflow/contrib/lite/python/lite_test.py +++ b/tensorflow/lite/python/lite_test.py @@ -22,9 +22,9 @@ import os import tempfile import numpy as np -from tensorflow.contrib.lite.python import lite -from tensorflow.contrib.lite.python import lite_constants -from tensorflow.contrib.lite.python.interpreter import Interpreter +from tensorflow.lite.python import lite +from tensorflow.lite.python import lite_constants +from tensorflow.lite.python.interpreter import Interpreter from tensorflow.python import keras from tensorflow.python.client import session from tensorflow.python.framework import constant_op diff --git a/tensorflow/contrib/lite/python/op_hint.py b/tensorflow/lite/python/op_hint.py similarity index 99% rename from tensorflow/contrib/lite/python/op_hint.py rename to tensorflow/lite/python/op_hint.py index 9f43e6e52b9bbfbe8a8c6d09b341b7c3f6b57847..3afce1baf2e3c214eba7e73147e9a946c551bd5b 100644 --- a/tensorflow/contrib/lite/python/op_hint.py +++ b/tensorflow/lite/python/op_hint.py @@ -24,7 +24,7 @@ accelerated tflite op. Example: def tflite_cool_activation(input): # A cool activation function. - custom = tf.contrib.lite.OpHint("cool_activation") + custom = tf.lite.OpHint("cool_activation") input, = custom.add_inputs(input) output = tf.sigmoid(input) * input output, = custom.add_outputs(output) @@ -35,8 +35,8 @@ Example: session = tf.Session() - graphdef_to_convert = tf.contrib.lite.convert_op_hints_to_stubs(session) - tflite_graph = tf.contrib.lite.toco_convert(graphdef_to_convert, + graphdef_to_convert = tf.lite.convert_op_hints_to_stubs(session) + tflite_graph = tf.lite.toco_convert(graphdef_to_convert, [image], [output]) [image], [output]) with open("/tmp/graph.fb", "wb") as fp: diff --git a/tensorflow/contrib/lite/python/tflite_convert.py b/tensorflow/lite/python/tflite_convert.py similarity index 98% rename from tensorflow/contrib/lite/python/tflite_convert.py rename to tensorflow/lite/python/tflite_convert.py index 551424c4b43203c7ddecdde9999812a7f2fc4e3c..00ea6d722e249364200309204120effb413aaaff 100644 --- a/tensorflow/contrib/lite/python/tflite_convert.py +++ b/tensorflow/lite/python/tflite_convert.py @@ -22,10 +22,10 @@ import argparse import os import sys -from tensorflow.contrib.lite.python import lite -from tensorflow.contrib.lite.python import lite_constants -from tensorflow.contrib.lite.toco import toco_flags_pb2 as _toco_flags_pb2 -from tensorflow.contrib.lite.toco import types_pb2 as _types_pb2 +from tensorflow.lite.python import lite +from tensorflow.lite.python import lite_constants +from tensorflow.lite.toco import toco_flags_pb2 as _toco_flags_pb2 +from tensorflow.lite.toco import types_pb2 as _types_pb2 from tensorflow.python.platform import app diff --git a/tensorflow/contrib/lite/schema/BUILD b/tensorflow/lite/schema/BUILD similarity index 96% rename from tensorflow/contrib/lite/schema/BUILD rename to tensorflow/lite/schema/BUILD index d892466c7a1d9c953644bd4e91a468a2e9702bde..69d5458c6e432a2370a2ca4998a5d4664398c528 100644 --- a/tensorflow/contrib/lite/schema/BUILD +++ b/tensorflow/lite/schema/BUILD @@ -5,7 +5,7 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 load("//tensorflow:tensorflow.bzl", "py_test") -load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite") +load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") py_binary( name = "upgrade_schema", diff --git a/tensorflow/contrib/lite/schema/builtin_ops_header/BUILD b/tensorflow/lite/schema/builtin_ops_header/BUILD similarity index 86% rename from tensorflow/contrib/lite/schema/builtin_ops_header/BUILD rename to tensorflow/lite/schema/builtin_ops_header/BUILD index 4a627761daf45b0fddd7b99e8a9c3d0d0ed2ee5e..8a01541d575e288b94f8bb049caa288a777d61d8 100644 --- a/tensorflow/contrib/lite/schema/builtin_ops_header/BUILD +++ b/tensorflow/lite/schema/builtin_ops_header/BUILD @@ -9,7 +9,7 @@ cc_library( srcs = ["generator.cc"], hdrs = ["generator.h"], deps = [ - "//tensorflow/contrib/lite/schema:schema_fbs", + "//tensorflow/lite/schema:schema_fbs", ], ) @@ -35,7 +35,7 @@ cc_test( name = "consistency_test", srcs = ["consistency_test.cc"], data = [ - "//tensorflow/contrib/lite:builtin_ops.h", + "//tensorflow/lite:builtin_ops.h", ], tags = ["no_oss"], deps = [ diff --git a/tensorflow/contrib/lite/schema/builtin_ops_header/README.md b/tensorflow/lite/schema/builtin_ops_header/README.md similarity index 65% rename from tensorflow/contrib/lite/schema/builtin_ops_header/README.md rename to tensorflow/lite/schema/builtin_ops_header/README.md index f20d4f664e62fdd52e55339e45b9603307a2b671..e34a30b8182560d1c5d49b75010f2427a1ff0ad6 100644 --- a/tensorflow/contrib/lite/schema/builtin_ops_header/README.md +++ b/tensorflow/lite/schema/builtin_ops_header/README.md @@ -7,6 +7,6 @@ Whenever you add a new builtin op, please execute: ```sh bazel run \ - //tensorflow/contrib/lite/schema/builtin_ops_header:generate > \ - tensorflow/contrib/lite/builtin_ops.h + //tensorflow/lite/schema/builtin_ops_header:generate > \ + tensorflow/lite/builtin_ops.h ``` diff --git a/tensorflow/contrib/lite/schema/builtin_ops_header/consistency_test.cc b/tensorflow/lite/schema/builtin_ops_header/consistency_test.cc similarity index 93% rename from tensorflow/contrib/lite/schema/builtin_ops_header/consistency_test.cc rename to tensorflow/lite/schema/builtin_ops_header/consistency_test.cc index d55c125c117db3c1b8d67ab0b674abe2e7c39d94..f62dcda2e82851bcd57105ad6e2a65ccec1086b4 100644 --- a/tensorflow/contrib/lite/schema/builtin_ops_header/consistency_test.cc +++ b/tensorflow/lite/schema/builtin_ops_header/consistency_test.cc @@ -15,12 +15,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/schema/builtin_ops_header/generator.h" +#include "tensorflow/lite/schema/builtin_ops_header/generator.h" namespace { const char* kHeaderFileName = - "tensorflow/contrib/lite/builtin_ops.h"; + "tensorflow/lite/builtin_ops.h"; // The test ensures that `builtin_ops.h` is consistent with the FlatBuffer // schema definition. When the schema is modified, it's required to run the diff --git a/tensorflow/contrib/lite/schema/builtin_ops_header/generate.cc b/tensorflow/lite/schema/builtin_ops_header/generate.cc similarity index 92% rename from tensorflow/contrib/lite/schema/builtin_ops_header/generate.cc rename to tensorflow/lite/schema/builtin_ops_header/generate.cc index 72a28987b8d4863b0f03f7861177940177edd884..125dcd485be0fb2eb889c621f7a0cb608dc28688 100644 --- a/tensorflow/contrib/lite/schema/builtin_ops_header/generate.cc +++ b/tensorflow/lite/schema/builtin_ops_header/generate.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/schema/builtin_ops_header/generator.h" +#include "tensorflow/lite/schema/builtin_ops_header/generator.h" // This executable is used to generate builtin_ops.h in TensorFlow Lite. // Please see README.md for more details. diff --git a/tensorflow/contrib/lite/schema/builtin_ops_header/generator.cc b/tensorflow/lite/schema/builtin_ops_header/generator.cc similarity index 92% rename from tensorflow/contrib/lite/schema/builtin_ops_header/generator.cc rename to tensorflow/lite/schema/builtin_ops_header/generator.cc index 9dc8daa227dd68ccde2efa4013ac4465a72e6bb0..e2967aee0ff4cba42888c89215dabbf2aaf4469a 100644 --- a/tensorflow/contrib/lite/schema/builtin_ops_header/generator.cc +++ b/tensorflow/lite/schema/builtin_ops_header/generator.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/schema/builtin_ops_header/generator.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/schema/builtin_ops_header/generator.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { namespace builtin_ops_header { @@ -35,8 +35,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_BUILTIN_OPS_H_ -#define TENSORFLOW_CONTRIB_LITE_BUILTIN_OPS_H_ +#ifndef TENSORFLOW_LITE_BUILTIN_OPS_H_ +#define TENSORFLOW_LITE_BUILTIN_OPS_H_ // DO NOT EDIT MANUALLY: This file is automatically generated by // `schema/builtin_ops_header/generator.cc`. @@ -56,7 +56,7 @@ const char* kFileFooter = #ifdef __cplusplus } // extern "C" #endif // __cplusplus -#endif // TENSORFLOW_CONTRIB_LITE_BUILTIN_OPS_H_ +#endif // TENSORFLOW_LITE_BUILTIN_OPS_H_ )"; } // anonymous namespace diff --git a/tensorflow/contrib/lite/schema/builtin_ops_header/generator.h b/tensorflow/lite/schema/builtin_ops_header/generator.h similarity index 86% rename from tensorflow/contrib/lite/schema/builtin_ops_header/generator.h rename to tensorflow/lite/schema/builtin_ops_header/generator.h index 3241ff83d599ed8a476fc1d5a88c26143ebfbaf2..8c9383a992daa542908cb9802a206f306fe3aba0 100644 --- a/tensorflow/contrib/lite/schema/builtin_ops_header/generator.h +++ b/tensorflow/lite/schema/builtin_ops_header/generator.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ // An utility library to generate pure C header for builtin ops definition. -#ifndef TENSORFLOW_CONTRIB_LITE_SCHEMA_BUILTIN_OPS_HEADER_GENERATOR_H_ -#define TENSORFLOW_CONTRIB_LITE_SCHEMA_BUILTIN_OPS_HEADER_GENERATOR_H_ +#ifndef TENSORFLOW_LITE_SCHEMA_BUILTIN_OPS_HEADER_GENERATOR_H_ +#define TENSORFLOW_LITE_SCHEMA_BUILTIN_OPS_HEADER_GENERATOR_H_ #include @@ -35,4 +35,4 @@ bool GenerateHeader(std::ostream& os); } // namespace builtin_ops_header } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_SCHEMA_BUILTIN_OPS_HEADER_GENERATOR_H_ +#endif // TENSORFLOW_LITE_SCHEMA_BUILTIN_OPS_HEADER_GENERATOR_H_ diff --git a/tensorflow/contrib/lite/schema/builtin_ops_header/generator_test.cc b/tensorflow/lite/schema/builtin_ops_header/generator_test.cc similarity index 96% rename from tensorflow/contrib/lite/schema/builtin_ops_header/generator_test.cc rename to tensorflow/lite/schema/builtin_ops_header/generator_test.cc index a7dc8e1b0486eda6e09f38a209dca95c0317a1fb..c508c981bb3a75760059131a983881aa48c2fbc2 100644 --- a/tensorflow/contrib/lite/schema/builtin_ops_header/generator_test.cc +++ b/tensorflow/lite/schema/builtin_ops_header/generator_test.cc @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/schema/builtin_ops_header/generator.h" +#include "tensorflow/lite/schema/builtin_ops_header/generator.h" #include #include diff --git a/tensorflow/contrib/lite/schema/flatbuffer_compatibility_test.cc b/tensorflow/lite/schema/flatbuffer_compatibility_test.cc similarity index 96% rename from tensorflow/contrib/lite/schema/flatbuffer_compatibility_test.cc rename to tensorflow/lite/schema/flatbuffer_compatibility_test.cc index 22b4616ccbb75658ae781ec73b87cd4db771e5bf..86177aeb1272469865918bfb2f3fc627bdcdd1cb 100644 --- a/tensorflow/contrib/lite/schema/flatbuffer_compatibility_test.cc +++ b/tensorflow/lite/schema/flatbuffer_compatibility_test.cc @@ -62,9 +62,9 @@ TEST(SchemaTest, TestCompatibility) { // TODO(aselle): Need a reliable way to load files. std::string base_contents, current_contents; const char *base_filename = - TFLITE_TF_PREFIX "contrib/lite/schema/schema_v3.fbs"; + TFLITE_TF_PREFIX "lite/schema/schema_v3.fbs"; const char *current_filename = - TFLITE_TF_PREFIX "contrib/lite/schema/schema.fbs"; + TFLITE_TF_PREFIX "lite/schema/schema.fbs"; ASSERT_TRUE(LoadFileRaw(base_filename, &base_contents)); ASSERT_TRUE(LoadFileRaw(current_filename, ¤t_contents)); diff --git a/tensorflow/contrib/lite/schema/schema.fbs b/tensorflow/lite/schema/schema.fbs similarity index 100% rename from tensorflow/contrib/lite/schema/schema.fbs rename to tensorflow/lite/schema/schema.fbs diff --git a/tensorflow/contrib/lite/schema/schema_generated.h b/tensorflow/lite/schema/schema_generated.h similarity index 100% rename from tensorflow/contrib/lite/schema/schema_generated.h rename to tensorflow/lite/schema/schema_generated.h diff --git a/tensorflow/contrib/lite/schema/schema_v0.fbs b/tensorflow/lite/schema/schema_v0.fbs similarity index 100% rename from tensorflow/contrib/lite/schema/schema_v0.fbs rename to tensorflow/lite/schema/schema_v0.fbs diff --git a/tensorflow/contrib/lite/schema/schema_v1.fbs b/tensorflow/lite/schema/schema_v1.fbs similarity index 100% rename from tensorflow/contrib/lite/schema/schema_v1.fbs rename to tensorflow/lite/schema/schema_v1.fbs diff --git a/tensorflow/contrib/lite/schema/schema_v2.fbs b/tensorflow/lite/schema/schema_v2.fbs similarity index 100% rename from tensorflow/contrib/lite/schema/schema_v2.fbs rename to tensorflow/lite/schema/schema_v2.fbs diff --git a/tensorflow/contrib/lite/schema/schema_v3.fbs b/tensorflow/lite/schema/schema_v3.fbs similarity index 100% rename from tensorflow/contrib/lite/schema/schema_v3.fbs rename to tensorflow/lite/schema/schema_v3.fbs diff --git a/tensorflow/contrib/lite/schema/upgrade_schema.py b/tensorflow/lite/schema/upgrade_schema.py similarity index 97% rename from tensorflow/contrib/lite/schema/upgrade_schema.py rename to tensorflow/lite/schema/upgrade_schema.py index a2ddf6295014f3b29fa584f2bb367a7e0a4399e7..d9220ba10ca2e93732bae2e43c3251b013ecc8d8 100644 --- a/tensorflow/contrib/lite/schema/upgrade_schema.py +++ b/tensorflow/lite/schema/upgrade_schema.py @@ -16,11 +16,11 @@ Usage examples: -bazel run tensorflow/contrib/lite/schema/upgrade_schema -- in.json out.json -bazel run tensorflow/contrib/lite/schema/upgrade_schema -- in.bin out.bin -bazel run tensorflow/contrib/lite/schema/upgrade_schema -- in.bin out.json -bazel run tensorflow/contrib/lite/schema/upgrade_schema -- in.json out.bin -bazel run tensorflow/contrib/lite/schema/upgrade_schema -- in.tflite out.tflite +bazel run tensorflow/lite/schema/upgrade_schema -- in.json out.json +bazel run tensorflow/lite/schema/upgrade_schema -- in.bin out.bin +bazel run tensorflow/lite/schema/upgrade_schema -- in.bin out.json +bazel run tensorflow/lite/schema/upgrade_schema -- in.json out.bin +bazel run tensorflow/lite/schema/upgrade_schema -- in.tflite out.tflite """ from __future__ import absolute_import from __future__ import division diff --git a/tensorflow/contrib/lite/schema/upgrade_schema_test.py b/tensorflow/lite/schema/upgrade_schema_test.py similarity index 99% rename from tensorflow/contrib/lite/schema/upgrade_schema_test.py rename to tensorflow/lite/schema/upgrade_schema_test.py index b5002e6f7576b6de533046aaad37fe06746d3644..922968c65aa7601a30f7eef7e0d05ab0e932bedd 100644 --- a/tensorflow/contrib/lite/schema/upgrade_schema_test.py +++ b/tensorflow/lite/schema/upgrade_schema_test.py @@ -20,7 +20,7 @@ from __future__ import print_function import json import tempfile -from tensorflow.contrib.lite.schema import upgrade_schema as upgrade_schema_lib +from tensorflow.lite.schema import upgrade_schema as upgrade_schema_lib from tensorflow.python.framework import test_util from tensorflow.python.platform import test as test_lib diff --git a/tensorflow/contrib/lite/simple_memory_arena.cc b/tensorflow/lite/simple_memory_arena.cc similarity index 98% rename from tensorflow/contrib/lite/simple_memory_arena.cc rename to tensorflow/lite/simple_memory_arena.cc index cd0f1f7c17a50f6ce61fa2033e5d13580399f5cf..88bdf50c9b64c6de3e7a10bbcd179da825ad2183 100644 --- a/tensorflow/contrib/lite/simple_memory_arena.cc +++ b/tensorflow/lite/simple_memory_arena.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/simple_memory_arena.h" +#include "tensorflow/lite/simple_memory_arena.h" #include #include diff --git a/tensorflow/contrib/lite/simple_memory_arena.h b/tensorflow/lite/simple_memory_arena.h similarity index 92% rename from tensorflow/contrib/lite/simple_memory_arena.h rename to tensorflow/lite/simple_memory_arena.h index 45d0d8735ee10a2a0c7e49fa3ffe56c4d5f5e318..42203c0c0a32d6b512a423359338501ed7816a45 100644 --- a/tensorflow/contrib/lite/simple_memory_arena.h +++ b/tensorflow/lite/simple_memory_arena.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_SIMPLE_MEMORY_ARENA_H_ -#define TENSORFLOW_CONTRIB_LITE_SIMPLE_MEMORY_ARENA_H_ +#ifndef TENSORFLOW_LITE_SIMPLE_MEMORY_ARENA_H_ +#define TENSORFLOW_LITE_SIMPLE_MEMORY_ARENA_H_ #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { @@ -86,4 +86,4 @@ class SimpleMemoryArena { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_SIMPLE_MEMORY_ARENA_H_ +#endif // TENSORFLOW_LITE_SIMPLE_MEMORY_ARENA_H_ diff --git a/tensorflow/contrib/lite/simple_memory_arena_test.cc b/tensorflow/lite/simple_memory_arena_test.cc similarity index 97% rename from tensorflow/contrib/lite/simple_memory_arena_test.cc rename to tensorflow/lite/simple_memory_arena_test.cc index 60d4d5e768aeda958574422e1c36a7cc2f6a1429..caf13db2c1a6e9b0d495609c159640fb36073981 100644 --- a/tensorflow/contrib/lite/simple_memory_arena_test.cc +++ b/tensorflow/lite/simple_memory_arena_test.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/simple_memory_arena.h" +#include "tensorflow/lite/simple_memory_arena.h" #include #include -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/special_rules.bzl b/tensorflow/lite/special_rules.bzl similarity index 59% rename from tensorflow/contrib/lite/special_rules.bzl rename to tensorflow/lite/special_rules.bzl index 54083c49182c707620cbd231b957405cfe24be92..e10af3d240eebf2ffac87a67d5a27182c7a516ed 100644 --- a/tensorflow/contrib/lite/special_rules.bzl +++ b/tensorflow/lite/special_rules.bzl @@ -1,6 +1,6 @@ """External versions of build rules that differ outside of Google.""" def tflite_portable_test_suite(**kwargs): - """This is a no-op outside of Google.""" - _ignore = [kwargs] - pass + """This is a no-op outside of Google.""" + _ignore = [kwargs] + pass diff --git a/tensorflow/contrib/lite/stderr_reporter.cc b/tensorflow/lite/stderr_reporter.cc similarity index 96% rename from tensorflow/contrib/lite/stderr_reporter.cc rename to tensorflow/lite/stderr_reporter.cc index e29a6345fdfe4cf853b79e5ac6da5e9c41600fa6..09eb1d254a608ba2d19c824a323f0b5173afe15f 100644 --- a/tensorflow/contrib/lite/stderr_reporter.cc +++ b/tensorflow/lite/stderr_reporter.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/stderr_reporter.h" +#include "tensorflow/lite/stderr_reporter.h" #include #include diff --git a/tensorflow/contrib/lite/stderr_reporter.h b/tensorflow/lite/stderr_reporter.h similarity index 78% rename from tensorflow/contrib/lite/stderr_reporter.h rename to tensorflow/lite/stderr_reporter.h index c6f4ffbdffb4b3ea5059a3e17a612e7f6bfbf5d7..7582b421ee3c9522e7d31e5ac34edf4d5acf2373 100644 --- a/tensorflow/contrib/lite/stderr_reporter.h +++ b/tensorflow/lite/stderr_reporter.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_STDERR_REPORTER_H_ -#define TENSORFLOW_CONTRIB_LITE_STDERR_REPORTER_H_ +#ifndef TENSORFLOW_LITE_STDERR_REPORTER_H_ +#define TENSORFLOW_LITE_STDERR_REPORTER_H_ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/core/api/error_reporter.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/core/api/error_reporter.h" namespace tflite { @@ -31,4 +31,4 @@ ErrorReporter* DefaultErrorReporter(); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_STDERR_REPORTER_H_ +#endif // TENSORFLOW_LITE_STDERR_REPORTER_H_ diff --git a/tensorflow/contrib/lite/string.h b/tensorflow/lite/string.h similarity index 86% rename from tensorflow/contrib/lite/string.h rename to tensorflow/lite/string.h index af3fadfcb35074c0a0457096deb77ac7514586eb..65142b11de389f49de7ad406b1dfbb62dfd7f2b0 100644 --- a/tensorflow/contrib/lite/string.h +++ b/tensorflow/lite/string.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ // Abstract string. We don't want even absl at this level. -#ifndef TENSORFLOW_CONTRIB_LITE_STRING_H_ -#define TENSORFLOW_CONTRIB_LITE_STRING_H_ +#ifndef TENSORFLOW_LITE_STRING_H_ +#define TENSORFLOW_LITE_STRING_H_ #include @@ -26,4 +26,4 @@ using std::string; } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_STRING_H_ +#endif // TENSORFLOW_LITE_STRING_H_ diff --git a/tensorflow/contrib/lite/string_util.cc b/tensorflow/lite/string_util.cc similarity index 97% rename from tensorflow/contrib/lite/string_util.cc rename to tensorflow/lite/string_util.cc index fc236ef47a6ee71e265e1c94cad9e63fc5b9fcc7..1b33f5bcba01bf32d366436812df014c3fbc1390 100644 --- a/tensorflow/contrib/lite/string_util.cc +++ b/tensorflow/lite/string_util.cc @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/string_util.h" #include #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/string_util.h b/tensorflow/lite/string_util.h similarity index 93% rename from tensorflow/contrib/lite/string_util.h rename to tensorflow/lite/string_util.h index 2cfbf7195190587fd6d0240dec5634b3061cf2d4..c9b74482f7d04b8cd667c18fc0a2aadc2f5f6490 100644 --- a/tensorflow/contrib/lite/string_util.h +++ b/tensorflow/lite/string_util.h @@ -37,13 +37,13 @@ limitations under the License. // # described above. // buf.WriteToTensor(tensor) -#ifndef TENSORFLOW_CONTRIB_LITE_STRING_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_STRING_UTIL_H_ +#ifndef TENSORFLOW_LITE_STRING_UTIL_H_ +#define TENSORFLOW_LITE_STRING_UTIL_H_ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/string.h" namespace tflite { @@ -98,4 +98,4 @@ StringRef GetString(const char* raw_buffer, int string_index); StringRef GetString(const TfLiteTensor* tensor, int string_index); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_STRING_UTIL_H_ +#endif // TENSORFLOW_LITE_STRING_UTIL_H_ diff --git a/tensorflow/contrib/lite/string_util_test.cc b/tensorflow/lite/string_util_test.cc similarity index 94% rename from tensorflow/contrib/lite/string_util_test.cc rename to tensorflow/lite/string_util_test.cc index 943167125b4592f3485ecaca8cf82f938ddaed4a..377cdd77eb4651bb057055cc4f7a4ab33cbb5297 100644 --- a/tensorflow/contrib/lite/string_util_test.cc +++ b/tensorflow/lite/string_util_test.cc @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/string_util.h" #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { diff --git a/tensorflow/contrib/lite/testdata/0_subgraphs.bin b/tensorflow/lite/testdata/0_subgraphs.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/0_subgraphs.bin rename to tensorflow/lite/testdata/0_subgraphs.bin diff --git a/tensorflow/contrib/lite/testdata/2_subgraphs.bin b/tensorflow/lite/testdata/2_subgraphs.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/2_subgraphs.bin rename to tensorflow/lite/testdata/2_subgraphs.bin diff --git a/tensorflow/contrib/lite/testdata/add.bin b/tensorflow/lite/testdata/add.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/add.bin rename to tensorflow/lite/testdata/add.bin diff --git a/tensorflow/contrib/lite/testdata/add.json b/tensorflow/lite/testdata/add.json similarity index 100% rename from tensorflow/contrib/lite/testdata/add.json rename to tensorflow/lite/testdata/add.json diff --git a/tensorflow/contrib/lite/testdata/add_quantized.bin b/tensorflow/lite/testdata/add_quantized.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/add_quantized.bin rename to tensorflow/lite/testdata/add_quantized.bin diff --git a/tensorflow/contrib/lite/testdata/add_quantized.json b/tensorflow/lite/testdata/add_quantized.json similarity index 100% rename from tensorflow/contrib/lite/testdata/add_quantized.json rename to tensorflow/lite/testdata/add_quantized.json diff --git a/tensorflow/contrib/lite/testdata/empty_model.bin b/tensorflow/lite/testdata/empty_model.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/empty_model.bin rename to tensorflow/lite/testdata/empty_model.bin diff --git a/tensorflow/contrib/lite/testdata/multi_add.bin b/tensorflow/lite/testdata/multi_add.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/multi_add.bin rename to tensorflow/lite/testdata/multi_add.bin diff --git a/tensorflow/contrib/lite/testdata/multi_add.json b/tensorflow/lite/testdata/multi_add.json similarity index 100% rename from tensorflow/contrib/lite/testdata/multi_add.json rename to tensorflow/lite/testdata/multi_add.json diff --git a/tensorflow/contrib/lite/testdata/multi_add.pb b/tensorflow/lite/testdata/multi_add.pb similarity index 100% rename from tensorflow/contrib/lite/testdata/multi_add.pb rename to tensorflow/lite/testdata/multi_add.pb diff --git a/tensorflow/contrib/lite/testdata/multi_add_flex.bin b/tensorflow/lite/testdata/multi_add_flex.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/multi_add_flex.bin rename to tensorflow/lite/testdata/multi_add_flex.bin diff --git a/tensorflow/contrib/lite/testdata/no_subgraphs.bin b/tensorflow/lite/testdata/no_subgraphs.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/no_subgraphs.bin rename to tensorflow/lite/testdata/no_subgraphs.bin diff --git a/tensorflow/contrib/lite/testdata/test_model.bin b/tensorflow/lite/testdata/test_model.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/test_model.bin rename to tensorflow/lite/testdata/test_model.bin diff --git a/tensorflow/contrib/lite/testdata/test_model_broken.bin b/tensorflow/lite/testdata/test_model_broken.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/test_model_broken.bin rename to tensorflow/lite/testdata/test_model_broken.bin diff --git a/tensorflow/contrib/lite/testdata/test_model_broken.json b/tensorflow/lite/testdata/test_model_broken.json similarity index 100% rename from tensorflow/contrib/lite/testdata/test_model_broken.json rename to tensorflow/lite/testdata/test_model_broken.json diff --git a/tensorflow/contrib/lite/testdata/two_subgraphs.bin b/tensorflow/lite/testdata/two_subgraphs.bin similarity index 100% rename from tensorflow/contrib/lite/testdata/two_subgraphs.bin rename to tensorflow/lite/testdata/two_subgraphs.bin diff --git a/tensorflow/contrib/lite/testing/BUILD b/tensorflow/lite/testing/BUILD similarity index 80% rename from tensorflow/contrib/lite/testing/BUILD rename to tensorflow/lite/testing/BUILD index 891d44d2b60c713532d7e0e1b2c347ab891eb718..a8f8086cc95438e080f1f5cac4b3ffd6f2ee4476 100644 --- a/tensorflow/contrib/lite/testing/BUILD +++ b/tensorflow/lite/testing/BUILD @@ -5,11 +5,11 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 load( - "//tensorflow/contrib/lite:build_def.bzl", + "//tensorflow/lite:build_def.bzl", "gen_zip_test", "generated_test_models_all", ) -load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite") +load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") load( "//tensorflow:tensorflow.bzl", "tf_cc_test", @@ -46,9 +46,9 @@ load( ":util", "@com_google_googletest//:gtest", "@com_googlesource_code_re2//:re2", - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", ] + select({ "//conditions:default": [ "//tensorflow/core:framework_internal", @@ -73,7 +73,7 @@ py_binary( name = "generate_examples", srcs = ["generate_examples.py"], data = [ - "//tensorflow/contrib/lite/toco", + "//tensorflow/lite/toco", ], srcs_version = "PY2AND3", deps = [ @@ -99,7 +99,7 @@ cc_library( ":message", ":split", ":test_runner", - "//tensorflow/contrib/lite:framework", + "//tensorflow/lite:framework", ], ) @@ -124,7 +124,7 @@ cc_library( srcs = ["split.cc"], hdrs = ["split.h"], deps = [ - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:string", ], ) @@ -141,7 +141,7 @@ cc_test( cc_library( name = "join", hdrs = ["join.h"], - deps = ["//tensorflow/contrib/lite:string"], + deps = ["//tensorflow/lite:string"], ) cc_test( @@ -161,10 +161,10 @@ cc_library( deps = [ ":split", ":test_runner", - "//tensorflow/contrib/lite:builtin_op_data", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/delegates/flex:delegate", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:builtin_op_data", + "//tensorflow/lite:framework", + "//tensorflow/lite/delegates/flex:delegate", + "//tensorflow/lite/kernels:builtin_ops", ], ) @@ -172,7 +172,7 @@ tf_cc_test( name = "tflite_driver_test", size = "small", srcs = ["tflite_driver_test.cc"], - data = ["//tensorflow/contrib/lite:testdata/multi_add.bin"], + data = ["//tensorflow/lite:testdata/multi_add.bin"], tags = [ "tflite_not_portable_android", "tflite_not_portable_ios", @@ -188,7 +188,7 @@ cc_library( srcs = ["tokenize.cc"], hdrs = ["tokenize.h"], deps = [ - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:string", ], ) @@ -205,7 +205,7 @@ cc_library( name = "test_runner", hdrs = ["test_runner.h"], deps = [ - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:string", ], ) @@ -213,9 +213,9 @@ cc_library( name = "util", hdrs = ["util.h"], deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string", - "//tensorflow/contrib/lite/core/api", + "//tensorflow/lite:framework", + "//tensorflow/lite:string", + "//tensorflow/lite/core/api", ], ) @@ -234,7 +234,7 @@ cc_binary( deps = [ ":parse_testdata_lib", ":tflite_driver", - "//tensorflow/contrib/lite/nnapi:nnapi_lib", + "//tensorflow/lite/nnapi:nnapi_lib", ], ) @@ -258,7 +258,7 @@ cc_test( name = "tf_driver_test", size = "small", srcs = ["tf_driver_test.cc"], - data = ["//tensorflow/contrib/lite:testdata/multi_add.pb"], + data = ["//tensorflow/lite:testdata/multi_add.pb"], tags = [ "no_oss", "tflite_not_portable", @@ -277,8 +277,8 @@ cc_library( ":join", ":split", ":tf_driver", - "//tensorflow/contrib/lite:string", "//tensorflow/core:framework", + "//tensorflow/lite:string", ], ) @@ -305,9 +305,9 @@ cc_library( "init_tensorflow.h", ], visibility = [ - "//tensorflow/contrib/lite/java/src/main/native:__subpackages__", - "//tensorflow/contrib/lite/testing:__subpackages__", - "//tensorflow/contrib/lite/tools/benchmark:__subpackages__", + "//tensorflow/lite/java/src/main/native:__subpackages__", + "//tensorflow/lite/testing:__subpackages__", + "//tensorflow/lite/tools/benchmark:__subpackages__", ], deps = select({ "//conditions:default": [ @@ -327,8 +327,8 @@ cc_library( ":generate_testspec", ":parse_testdata_lib", ":tflite_driver", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:framework", + "//tensorflow/lite:string", ], ) @@ -354,16 +354,16 @@ tf_cc_test( size = "medium", srcs = ["tflite_diff_example_test.cc"], args = [ - "--tensorflow_model=third_party/tensorflow/contrib/lite/testdata/multi_add.pb", - "--tflite_model=third_party/tensorflow/contrib/lite/testdata/multi_add.bin", + "--tensorflow_model=third_party/tensorflow/lite/testdata/multi_add.pb", + "--tflite_model=third_party/tensorflow/lite/testdata/multi_add.bin", "--input_layer=a,b,c,d", "--input_layer_type=float,float,float,float", "--input_layer_shape=1,3,4,3:1,3,4,3:1,3,4,3:1,3,4,3", "--output_layer=x,y", ], data = [ - "//tensorflow/contrib/lite:testdata/multi_add.bin", - "//tensorflow/contrib/lite:testdata/multi_add.pb", + "//tensorflow/lite:testdata/multi_add.bin", + "//tensorflow/lite:testdata/multi_add.pb", ], tags = [ "no_cuda_on_cpu_tap", diff --git a/tensorflow/contrib/lite/testing/generate_examples.py b/tensorflow/lite/testing/generate_examples.py similarity index 99% rename from tensorflow/contrib/lite/testing/generate_examples.py rename to tensorflow/lite/testing/generate_examples.py index 408b540bf11ad5bf740e9cf2134697c169bf5266..77f1b2b40f795a2f5e5a6758a59f4c206ae2d682 100644 --- a/tensorflow/contrib/lite/testing/generate_examples.py +++ b/tensorflow/lite/testing/generate_examples.py @@ -19,7 +19,7 @@ Usage: generate_examples -bazel run //tensorflow/contrib/lite/testing:generate_examples +bazel run //tensorflow/lite/testing:generate_examples To more easily debug failures use (or override) the --save_graphdefs flag to place text proto graphdefs into the generated zip files. @@ -51,7 +51,7 @@ os.environ["CUDA_VISIBLE_DEVICES"] = "-1" import tensorflow as tf from google.protobuf import text_format # TODO(aselle): switch to TensorFlow's resource_loader -from tensorflow.contrib.lite.testing import generate_examples_report as report_lib +from tensorflow.lite.testing import generate_examples_report as report_lib from tensorflow.python.framework import graph_util as tf_graph_util from tensorflow.python.ops import rnn diff --git a/tensorflow/contrib/lite/testing/generate_examples_report.py b/tensorflow/lite/testing/generate_examples_report.py similarity index 100% rename from tensorflow/contrib/lite/testing/generate_examples_report.py rename to tensorflow/lite/testing/generate_examples_report.py diff --git a/tensorflow/contrib/lite/testing/generate_testspec.cc b/tensorflow/lite/testing/generate_testspec.cc similarity index 95% rename from tensorflow/contrib/lite/testing/generate_testspec.cc rename to tensorflow/lite/testing/generate_testspec.cc index 62cbeccd3315f2a51be73c3488e76444ddd0c927..74e4d2549830f404421e17f111488a2d181d5888 100644 --- a/tensorflow/contrib/lite/testing/generate_testspec.cc +++ b/tensorflow/lite/testing/generate_testspec.cc @@ -15,10 +15,10 @@ limitations under the License. #include -#include "tensorflow/contrib/lite/testing/generate_testspec.h" -#include "tensorflow/contrib/lite/testing/join.h" -#include "tensorflow/contrib/lite/testing/split.h" -#include "tensorflow/contrib/lite/testing/tf_driver.h" +#include "tensorflow/lite/testing/generate_testspec.h" +#include "tensorflow/lite/testing/join.h" +#include "tensorflow/lite/testing/split.h" +#include "tensorflow/lite/testing/tf_driver.h" #include "tensorflow/core/framework/types.h" namespace tflite { diff --git a/tensorflow/contrib/lite/testing/generate_testspec.h b/tensorflow/lite/testing/generate_testspec.h similarity index 91% rename from tensorflow/contrib/lite/testing/generate_testspec.h rename to tensorflow/lite/testing/generate_testspec.h index b3d0db31c01a8cb1b8f34ff6dbb00c77de29b131..bda636f2c8081f7b2d0d1062ce899fde35c414a4 100644 --- a/tensorflow/contrib/lite/testing/generate_testspec.h +++ b/tensorflow/lite/testing/generate_testspec.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_GENERATE_TESTSPEC_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_GENERATE_TESTSPEC_H_ +#ifndef TENSORFLOW_LITE_TESTING_GENERATE_TESTSPEC_H_ +#define TENSORFLOW_LITE_TESTING_GENERATE_TESTSPEC_H_ #include #include #include -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace testing { @@ -65,4 +65,4 @@ std::vector GenerateRandomTensor(const std::vector& shape, } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_GENERATE_TESTSPEC_H_ +#endif // TENSORFLOW_LITE_TESTING_GENERATE_TESTSPEC_H_ diff --git a/tensorflow/contrib/lite/testing/generate_testspec_test.cc b/tensorflow/lite/testing/generate_testspec_test.cc similarity index 96% rename from tensorflow/contrib/lite/testing/generate_testspec_test.cc rename to tensorflow/lite/testing/generate_testspec_test.cc index 2a97b757a413246c9ad9b5f453741b13e381c903..4450da289d2e33ac0dd32dff7e5372afc6764db5 100644 --- a/tensorflow/contrib/lite/testing/generate_testspec_test.cc +++ b/tensorflow/lite/testing/generate_testspec_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/generate_testspec.h" +#include "tensorflow/lite/testing/generate_testspec.h" #include #include diff --git a/tensorflow/contrib/lite/testing/generated_examples_zip_test.cc b/tensorflow/lite/testing/generated_examples_zip_test.cc similarity index 98% rename from tensorflow/contrib/lite/testing/generated_examples_zip_test.cc rename to tensorflow/lite/testing/generated_examples_zip_test.cc index 1ec471365e2ec65b8be1e78c7c8a717f8c229e80..eb2bb5ece2307decd427e8609fe03408b2825cb2 100644 --- a/tensorflow/contrib/lite/testing/generated_examples_zip_test.cc +++ b/tensorflow/lite/testing/generated_examples_zip_test.cc @@ -20,9 +20,9 @@ limitations under the License. #include #include #include "re2/re2.h" -#include "tensorflow/contrib/lite/testing/parse_testdata.h" -#include "tensorflow/contrib/lite/testing/tflite_driver.h" -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/testing/parse_testdata.h" +#include "tensorflow/lite/testing/tflite_driver.h" +#include "tensorflow/lite/testing/util.h" #include "tensorflow/core/lib/core/status_test_util.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/subprocess.h" diff --git a/tensorflow/contrib/lite/testing/init_tensorflow.cc b/tensorflow/lite/testing/init_tensorflow.cc similarity index 94% rename from tensorflow/contrib/lite/testing/init_tensorflow.cc rename to tensorflow/lite/testing/init_tensorflow.cc index f3dcf620a20e3043b7d177b1fc94bbb37550e436..ed4d12374489ed33b9dd6edec5c60865d216f491 100644 --- a/tensorflow/contrib/lite/testing/init_tensorflow.cc +++ b/tensorflow/lite/testing/init_tensorflow.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/init_tensorflow.h" +#include "tensorflow/lite/testing/init_tensorflow.h" #include #include diff --git a/tensorflow/contrib/lite/testing/init_tensorflow.h b/tensorflow/lite/testing/init_tensorflow.h similarity index 82% rename from tensorflow/contrib/lite/testing/init_tensorflow.h rename to tensorflow/lite/testing/init_tensorflow.h index 2cc89bbbcade5e9a94c25612257e1c78abf6d1ac..0c36a247912b71de2d5f5c7fbffdad60f0060bfa 100644 --- a/tensorflow/contrib/lite/testing/init_tensorflow.h +++ b/tensorflow/lite/testing/init_tensorflow.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_INIT_TENSORFLOW_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_INIT_TENSORFLOW_H_ +#ifndef TENSORFLOW_LITE_TESTING_INIT_TENSORFLOW_H_ +#define TENSORFLOW_LITE_TESTING_INIT_TENSORFLOW_H_ namespace tflite { @@ -23,4 +23,4 @@ void InitTensorFlow(); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_INIT_TENSORFLOW_H_ +#endif // TENSORFLOW_LITE_TESTING_INIT_TENSORFLOW_H_ diff --git a/tensorflow/contrib/lite/testing/join.h b/tensorflow/lite/testing/join.h similarity index 89% rename from tensorflow/contrib/lite/testing/join.h rename to tensorflow/lite/testing/join.h index 4be19ad7569c3333b6647b91adbc6e77ff088f10..7d0040c488a4ce4bf38f35948efb9c0b80777079 100644 --- a/tensorflow/contrib/lite/testing/join.h +++ b/tensorflow/lite/testing/join.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_JOIN_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_JOIN_H_ +#ifndef TENSORFLOW_LITE_TESTING_JOIN_H_ +#define TENSORFLOW_LITE_TESTING_JOIN_H_ #include #include -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace testing { @@ -56,4 +56,4 @@ inline string Join(uint8_t* data, size_t len, } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_JOIN_H_ +#endif // TENSORFLOW_LITE_TESTING_JOIN_H_ diff --git a/tensorflow/contrib/lite/testing/join_test.cc b/tensorflow/lite/testing/join_test.cc similarity index 96% rename from tensorflow/contrib/lite/testing/join_test.cc rename to tensorflow/lite/testing/join_test.cc index bd04528381f6d31164728a5cabbf8753e9b8d2b8..a8d036c547ded369618bf62544dafffcc27bbf0a 100644 --- a/tensorflow/contrib/lite/testing/join_test.cc +++ b/tensorflow/lite/testing/join_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/join.h" +#include "tensorflow/lite/testing/join.h" #include #include diff --git a/tensorflow/contrib/lite/testing/message.cc b/tensorflow/lite/testing/message.cc similarity index 96% rename from tensorflow/contrib/lite/testing/message.cc rename to tensorflow/lite/testing/message.cc index 03fae4bb86a30e692dbc7f38bede6154c3a9a303..08aac6f6aa192c1aad8dce65f17c3ad4993a16bd 100644 --- a/tensorflow/contrib/lite/testing/message.cc +++ b/tensorflow/lite/testing/message.cc @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/message.h" +#include "tensorflow/lite/testing/message.h" #include -#include "tensorflow/contrib/lite/testing/tokenize.h" +#include "tensorflow/lite/testing/tokenize.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/testing/message.h b/tensorflow/lite/testing/message.h similarity index 94% rename from tensorflow/contrib/lite/testing/message.h rename to tensorflow/lite/testing/message.h index e2bc4082141f0601c141a193fbea75f8f759146a..e6566ab11ca7dd6efc5a5cf9df2d10201e28f232 100644 --- a/tensorflow/contrib/lite/testing/message.h +++ b/tensorflow/lite/testing/message.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_MESSAGE_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_MESSAGE_H_ +#ifndef TENSORFLOW_LITE_TESTING_MESSAGE_H_ +#define TENSORFLOW_LITE_TESTING_MESSAGE_H_ #include #include @@ -79,4 +79,4 @@ class Message { } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_MESSAGE_H_ +#endif // TENSORFLOW_LITE_TESTING_MESSAGE_H_ diff --git a/tensorflow/contrib/lite/testing/message_test.cc b/tensorflow/lite/testing/message_test.cc similarity index 98% rename from tensorflow/contrib/lite/testing/message_test.cc rename to tensorflow/lite/testing/message_test.cc index fb6a49bd6f1ea88f1b48c03dfb08a54626bda2eb..bec4915e5853d67ea4cced2b66d0cfe26f4efcc7 100644 --- a/tensorflow/contrib/lite/testing/message_test.cc +++ b/tensorflow/lite/testing/message_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/message.h" +#include "tensorflow/lite/testing/message.h" #include diff --git a/tensorflow/contrib/lite/testing/model_coverage/BUILD b/tensorflow/lite/testing/model_coverage/BUILD similarity index 85% rename from tensorflow/contrib/lite/testing/model_coverage/BUILD rename to tensorflow/lite/testing/model_coverage/BUILD index c8359bab064b7c487a5b0e2303e76bc348b11ce1..7e6a65997d38d17576e76893ede8c791af2520dc 100644 --- a/tensorflow/contrib/lite/testing/model_coverage/BUILD +++ b/tensorflow/lite/testing/model_coverage/BUILD @@ -1,5 +1,5 @@ package(default_visibility = [ - "//tensorflow/contrib/lite:__subpackages__", + "//tensorflow/lite:__subpackages__", ]) licenses(["notice"]) # Apache 2.0 @@ -10,7 +10,7 @@ py_binary( srcs_version = "PY2AND3", tags = ["no_pip"], deps = [ - "//tensorflow/contrib/lite/python:lite", + "//tensorflow/lite/python:lite", "//tensorflow/python:platform", ], ) diff --git a/tensorflow/contrib/lite/testing/model_coverage/model_coverage_lib.py b/tensorflow/lite/testing/model_coverage/model_coverage_lib.py similarity index 98% rename from tensorflow/contrib/lite/testing/model_coverage/model_coverage_lib.py rename to tensorflow/lite/testing/model_coverage/model_coverage_lib.py index 2dc5aeb3023ce058a65faf6e5310490b37567ee2..ce8ef0b19600213d9785ad6a0a8400fddb3f8edd 100644 --- a/tensorflow/contrib/lite/testing/model_coverage/model_coverage_lib.py +++ b/tensorflow/lite/testing/model_coverage/model_coverage_lib.py @@ -20,8 +20,8 @@ from __future__ import print_function import numpy as np -from tensorflow.contrib.lite.python import convert_saved_model as _convert_saved_model -from tensorflow.contrib.lite.python import lite as _lite +from tensorflow.lite.python import convert_saved_model as _convert_saved_model +from tensorflow.lite.python import lite as _lite from tensorflow.core.framework import graph_pb2 as _graph_pb2 from tensorflow.python import keras as _keras from tensorflow.python.client import session as _session diff --git a/tensorflow/contrib/lite/testing/model_coverage/model_coverage_lib_test.py b/tensorflow/lite/testing/model_coverage/model_coverage_lib_test.py similarity index 97% rename from tensorflow/contrib/lite/testing/model_coverage/model_coverage_lib_test.py rename to tensorflow/lite/testing/model_coverage/model_coverage_lib_test.py index 98dbff4d7911bc49d4e5e1c9c4d1ca7d22cc116a..6b4e7427ed9c69b702d37ccc1b6de0b0c414fe5d 100644 --- a/tensorflow/contrib/lite/testing/model_coverage/model_coverage_lib_test.py +++ b/tensorflow/lite/testing/model_coverage/model_coverage_lib_test.py @@ -22,8 +22,8 @@ import os import tempfile import numpy as np -from tensorflow.contrib.lite.python import lite -from tensorflow.contrib.lite.testing.model_coverage import model_coverage_lib as model_coverage +from tensorflow.lite.python import lite +from tensorflow.lite.testing.model_coverage import model_coverage_lib as model_coverage from tensorflow.python import keras from tensorflow.python.client import session from tensorflow.python.framework import constant_op diff --git a/tensorflow/contrib/lite/testing/nnapi_example.cc b/tensorflow/lite/testing/nnapi_example.cc similarity index 91% rename from tensorflow/contrib/lite/testing/nnapi_example.cc rename to tensorflow/lite/testing/nnapi_example.cc index 5870782b69217f292fe60821ea8ce4ea1174c495..22df8dbd8821436ab9a960d0acd4423278c078d8 100644 --- a/tensorflow/contrib/lite/testing/nnapi_example.cc +++ b/tensorflow/lite/testing/nnapi_example.cc @@ -17,7 +17,7 @@ limitations under the License. // the future. // // Usage: bazel run -c opt \ -// tensorflow/contrib/lite/nnapi:nnapi_example -- +// tensorflow/lite/nnapi:nnapi_example -- // #include #include @@ -25,9 +25,9 @@ limitations under the License. #include #include #include -#include "tensorflow/contrib/lite/nnapi/NeuralNetworksShim.h" -#include "tensorflow/contrib/lite/testing/parse_testdata.h" -#include "tensorflow/contrib/lite/testing/tflite_driver.h" +#include "tensorflow/lite/nnapi/NeuralNetworksShim.h" +#include "tensorflow/lite/testing/parse_testdata.h" +#include "tensorflow/lite/testing/tflite_driver.h" string dirname(const string& s) { return s.substr(0, s.find_last_of("/")); } diff --git a/tensorflow/contrib/lite/testing/parse_testdata.cc b/tensorflow/lite/testing/parse_testdata.cc similarity index 98% rename from tensorflow/contrib/lite/testing/parse_testdata.cc rename to tensorflow/lite/testing/parse_testdata.cc index 389688d552051ea735ce71533943af33df5059ef..bb540087942b7e7b5a13c899fde19a1dc38b75ea 100644 --- a/tensorflow/contrib/lite/testing/parse_testdata.cc +++ b/tensorflow/lite/testing/parse_testdata.cc @@ -16,7 +16,7 @@ limitations under the License. // Format is ASCII // TODO(aselle): Switch to protobuf, but the android team requested a simple // ASCII file. -#include "tensorflow/contrib/lite/testing/parse_testdata.h" +#include "tensorflow/lite/testing/parse_testdata.h" #include #include @@ -26,9 +26,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/error_reporter.h" -#include "tensorflow/contrib/lite/testing/message.h" -#include "tensorflow/contrib/lite/testing/split.h" +#include "tensorflow/lite/error_reporter.h" +#include "tensorflow/lite/testing/message.h" +#include "tensorflow/lite/testing/split.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/testing/parse_testdata.h b/tensorflow/lite/testing/parse_testdata.h similarity index 89% rename from tensorflow/contrib/lite/testing/parse_testdata.h rename to tensorflow/lite/testing/parse_testdata.h index 26ee8258662e68fe4b509e537ac07ec8154f3311..0f3dc32afca97464f4b4d1fa99c7fc0ade804843 100644 --- a/tensorflow/contrib/lite/testing/parse_testdata.h +++ b/tensorflow/lite/testing/parse_testdata.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_PARSE_TESTDATA_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_PARSE_TESTDATA_H_ +#ifndef TENSORFLOW_LITE_TESTING_PARSE_TESTDATA_H_ +#define TENSORFLOW_LITE_TESTING_PARSE_TESTDATA_H_ #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/testing/test_runner.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/testing/test_runner.h" namespace tflite { namespace testing { @@ -72,4 +72,4 @@ bool ParseAndRunTests(std::istream* input, TestRunner* test_runner, } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_PARSE_TESTDATA_H_ +#endif // TENSORFLOW_LITE_TESTING_PARSE_TESTDATA_H_ diff --git a/tensorflow/contrib/lite/testing/split.cc b/tensorflow/lite/testing/split.cc similarity index 96% rename from tensorflow/contrib/lite/testing/split.cc rename to tensorflow/lite/testing/split.cc index 5836f4ff049b70c00d22524a3bf3327074281f3a..594b0d3f8a2af81c255603f1d67fb69f4e6f23bc 100644 --- a/tensorflow/contrib/lite/testing/split.cc +++ b/tensorflow/lite/testing/split.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/split.h" +#include "tensorflow/lite/testing/split.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/testing/split.h b/tensorflow/lite/testing/split.h similarity index 93% rename from tensorflow/contrib/lite/testing/split.h rename to tensorflow/lite/testing/split.h index 896f2949efa6aeda76940bae18a11dccf3c2f01b..c33738997cae584ac04abff3f8e6e95a0eb5536a 100644 --- a/tensorflow/contrib/lite/testing/split.h +++ b/tensorflow/lite/testing/split.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_SPLIT_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_SPLIT_H_ +#ifndef TENSORFLOW_LITE_TESTING_SPLIT_H_ +#define TENSORFLOW_LITE_TESTING_SPLIT_H_ #include #include #include #include -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace testing { @@ -93,4 +93,4 @@ inline std::vector Split(const string& s, const string& delimiter) { } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_SPLIT_H_ +#endif // TENSORFLOW_LITE_TESTING_SPLIT_H_ diff --git a/tensorflow/contrib/lite/testing/split_test.cc b/tensorflow/lite/testing/split_test.cc similarity index 97% rename from tensorflow/contrib/lite/testing/split_test.cc rename to tensorflow/lite/testing/split_test.cc index 76b918cbcd83ef43c52057b84bcc2a8f4ff6b8f7..77de485d5710eab2050bf5a88ceff2343cf58643 100644 --- a/tensorflow/contrib/lite/testing/split_test.cc +++ b/tensorflow/lite/testing/split_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/split.h" +#include "tensorflow/lite/testing/split.h" #include #include diff --git a/tensorflow/contrib/lite/testing/test_runner.h b/tensorflow/lite/testing/test_runner.h similarity index 95% rename from tensorflow/contrib/lite/testing/test_runner.h rename to tensorflow/lite/testing/test_runner.h index fac7d01aab4b1e4c251213041eb4b823cd7d66aa..303155b072bc3a607a83fbe5fa4323b6d485cc8f 100644 --- a/tensorflow/contrib/lite/testing/test_runner.h +++ b/tensorflow/lite/testing/test_runner.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_TEST_RUNNER_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_TEST_RUNNER_H_ +#ifndef TENSORFLOW_LITE_TESTING_TEST_RUNNER_H_ +#define TENSORFLOW_LITE_TESTING_TEST_RUNNER_H_ #include #include #include #include -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace testing { @@ -127,4 +127,4 @@ class TestRunner { } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_TEST_RUNNER_H_ +#endif // TENSORFLOW_LITE_TESTING_TEST_RUNNER_H_ diff --git a/tensorflow/contrib/lite/testing/test_runner_test.cc b/tensorflow/lite/testing/test_runner_test.cc similarity index 97% rename from tensorflow/contrib/lite/testing/test_runner_test.cc rename to tensorflow/lite/testing/test_runner_test.cc index 3f04aa20bd7de813f0acd3f5897d5ab2df6c0fd7..39ec81582bcd8ff97904ddc50553c617e6b63468 100644 --- a/tensorflow/contrib/lite/testing/test_runner_test.cc +++ b/tensorflow/lite/testing/test_runner_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/test_runner.h" +#include "tensorflow/lite/testing/test_runner.h" #include #include diff --git a/tensorflow/contrib/lite/testing/tf_driver.cc b/tensorflow/lite/testing/tf_driver.cc similarity index 97% rename from tensorflow/contrib/lite/testing/tf_driver.cc rename to tensorflow/lite/testing/tf_driver.cc index 30381ba028352e32a4220231eda45204889c05fb..36c556ba0495093341c641b845471196b4a13530 100644 --- a/tensorflow/contrib/lite/testing/tf_driver.cc +++ b/tensorflow/lite/testing/tf_driver.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/tf_driver.h" +#include "tensorflow/lite/testing/tf_driver.h" #include #include -#include "tensorflow/contrib/lite/testing/join.h" -#include "tensorflow/contrib/lite/testing/split.h" +#include "tensorflow/lite/testing/join.h" +#include "tensorflow/lite/testing/split.h" #include "tensorflow/core/lib/gtl/array_slice.h" namespace tflite { diff --git a/tensorflow/contrib/lite/testing/tf_driver.h b/tensorflow/lite/testing/tf_driver.h similarity index 90% rename from tensorflow/contrib/lite/testing/tf_driver.h rename to tensorflow/lite/testing/tf_driver.h index b766f85c4ddee9fb7b1513c264d4159e694770ca..f10689cb58c1753ac8743da00f2ba8322a6270a7 100644 --- a/tensorflow/contrib/lite/testing/tf_driver.h +++ b/tensorflow/lite/testing/tf_driver.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_TF_DRIVER_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_TF_DRIVER_H_ +#ifndef TENSORFLOW_LITE_TESTING_TF_DRIVER_H_ +#define TENSORFLOW_LITE_TESTING_TF_DRIVER_H_ #include #include -#include "tensorflow/contrib/lite/testing/split.h" -#include "tensorflow/contrib/lite/testing/test_runner.h" +#include "tensorflow/lite/testing/split.h" +#include "tensorflow/lite/testing/test_runner.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/types.h" @@ -72,4 +72,4 @@ class TfDriver : public TestRunner { } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_TF_DRIVER_H_ +#endif // TENSORFLOW_LITE_TESTING_TF_DRIVER_H_ diff --git a/tensorflow/contrib/lite/testing/tf_driver_test.cc b/tensorflow/lite/testing/tf_driver_test.cc similarity index 93% rename from tensorflow/contrib/lite/testing/tf_driver_test.cc rename to tensorflow/lite/testing/tf_driver_test.cc index c0faa4676adc3e846ad398bb203b77b99a2ba360..d178ccf1e3f7d824cb8f887441be466be5345307 100644 --- a/tensorflow/contrib/lite/testing/tf_driver_test.cc +++ b/tensorflow/lite/testing/tf_driver_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/tf_driver.h" +#include "tensorflow/lite/testing/tf_driver.h" #include #include @@ -29,7 +29,7 @@ TEST(TfDriverTest, SimpleTest) { {"1,8,8,3", "1,8,8,3", "1,8,8,3", "1,8,8,3"}, {"x", "y"})); runner->LoadModel( - "third_party/tensorflow/contrib/lite/testdata/multi_add.pb"); + "third_party/tensorflow/lite/testdata/multi_add.pb"); EXPECT_TRUE(runner->IsValid()) << runner->GetErrorMessage(); ASSERT_THAT(runner->GetInputs(), ElementsAre(0, 1, 2, 3)); diff --git a/tensorflow/contrib/lite/testing/tflite_diff_example_test.cc b/tensorflow/lite/testing/tflite_diff_example_test.cc similarity index 90% rename from tensorflow/contrib/lite/testing/tflite_diff_example_test.cc rename to tensorflow/lite/testing/tflite_diff_example_test.cc index 49696ac76be9c2e7015258fda4753dd91d346846..cb61cd4e94214050218c4ebb3d6ffbe1b703f486 100644 --- a/tensorflow/contrib/lite/testing/tflite_diff_example_test.cc +++ b/tensorflow/lite/testing/tflite_diff_example_test.cc @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/init_tensorflow.h" -#include "tensorflow/contrib/lite/testing/tflite_diff_flags.h" -#include "tensorflow/contrib/lite/testing/tflite_diff_util.h" +#include "tensorflow/lite/testing/init_tensorflow.h" +#include "tensorflow/lite/testing/tflite_diff_flags.h" +#include "tensorflow/lite/testing/tflite_diff_util.h" int main(int argc, char** argv) { ::tflite::InitTensorFlow(); // For Flex support. diff --git a/tensorflow/contrib/lite/testing/tflite_diff_flags.h b/tensorflow/lite/testing/tflite_diff_flags.h similarity index 92% rename from tensorflow/contrib/lite/testing/tflite_diff_flags.h rename to tensorflow/lite/testing/tflite_diff_flags.h index ad889a2f198644b01feffb397a717ec5882de04b..2fe068eb20f1fb8d6d28fa46f43f096588708ffa 100644 --- a/tensorflow/contrib/lite/testing/tflite_diff_flags.h +++ b/tensorflow/lite/testing/tflite_diff_flags.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DIFF_FLAGS_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DIFF_FLAGS_H_ +#ifndef TENSORFLOW_LITE_TESTING_TFLITE_DIFF_FLAGS_H_ +#define TENSORFLOW_LITE_TESTING_TFLITE_DIFF_FLAGS_H_ #include -#include "tensorflow/contrib/lite/testing/split.h" -#include "tensorflow/contrib/lite/testing/tflite_diff_util.h" +#include "tensorflow/lite/testing/split.h" +#include "tensorflow/lite/testing/tflite_diff_util.h" #include "tensorflow/core/util/command_line_flags.h" namespace tflite { @@ -88,4 +88,4 @@ DiffOptions ParseTfliteDiffFlags(int* argc, char** argv) { } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DIFF_FLAGS_H_ +#endif // TENSORFLOW_LITE_TESTING_TFLITE_DIFF_FLAGS_H_ diff --git a/tensorflow/contrib/lite/testing/tflite_diff_util.cc b/tensorflow/lite/testing/tflite_diff_util.cc similarity index 85% rename from tensorflow/contrib/lite/testing/tflite_diff_util.cc rename to tensorflow/lite/testing/tflite_diff_util.cc index c6ca796ac25d2ce9d6cb66200cd800f14869f69b..0142ae4217eaea02e8760c91df54477f7d496a83 100644 --- a/tensorflow/contrib/lite/testing/tflite_diff_util.cc +++ b/tensorflow/lite/testing/tflite_diff_util.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/testing/generate_testspec.h" -#include "tensorflow/contrib/lite/testing/parse_testdata.h" -#include "tensorflow/contrib/lite/testing/tflite_diff_util.h" -#include "tensorflow/contrib/lite/testing/tflite_driver.h" +#include "tensorflow/lite/testing/generate_testspec.h" +#include "tensorflow/lite/testing/parse_testdata.h" +#include "tensorflow/lite/testing/tflite_diff_util.h" +#include "tensorflow/lite/testing/tflite_driver.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/testing/tflite_diff_util.h b/tensorflow/lite/testing/tflite_diff_util.h similarity index 89% rename from tensorflow/contrib/lite/testing/tflite_diff_util.h rename to tensorflow/lite/testing/tflite_diff_util.h index 28b14bd143ab0e9ec9513fa04c21c111a51cfacc..3f9f10892db2878333dce0457a98068fa460cdd9 100644 --- a/tensorflow/contrib/lite/testing/tflite_diff_util.h +++ b/tensorflow/lite/testing/tflite_diff_util.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DIFF_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DIFF_UTIL_H_ +#ifndef TENSORFLOW_LITE_TESTING_TFLITE_DIFF_UTIL_H_ +#define TENSORFLOW_LITE_TESTING_TFLITE_DIFF_UTIL_H_ #include -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace testing { @@ -55,4 +55,4 @@ bool RunDiffTest(const DiffOptions& options, int num_invocations); } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DIFF_UTIL_H_ +#endif // TENSORFLOW_LITE_TESTING_TFLITE_DIFF_UTIL_H_ diff --git a/tensorflow/contrib/lite/testing/tflite_driver.cc b/tensorflow/lite/testing/tflite_driver.cc similarity index 97% rename from tensorflow/contrib/lite/testing/tflite_driver.cc rename to tensorflow/lite/testing/tflite_driver.cc index ef49e6f8bc30a63144521571046d9dcbd22df22e..ada5d74912bc844ac11d3127d6c9b1107c229cb7 100644 --- a/tensorflow/contrib/lite/testing/tflite_driver.cc +++ b/tensorflow/lite/testing/tflite_driver.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/tflite_driver.h" +#include "tensorflow/lite/testing/tflite_driver.h" #include -#include "tensorflow/contrib/lite/builtin_op_data.h" -#include "tensorflow/contrib/lite/delegates/flex/delegate.h" -#include "tensorflow/contrib/lite/testing/split.h" +#include "tensorflow/lite/builtin_op_data.h" +#include "tensorflow/lite/delegates/flex/delegate.h" +#include "tensorflow/lite/testing/split.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/testing/tflite_driver.h b/tensorflow/lite/testing/tflite_driver.h similarity index 81% rename from tensorflow/contrib/lite/testing/tflite_driver.h rename to tensorflow/lite/testing/tflite_driver.h index dc2a4e58773a9e069aa4420907c068039252c418..785baf0f004f3344393373ee148957d9a0c3820f 100644 --- a/tensorflow/contrib/lite/testing/tflite_driver.h +++ b/tensorflow/lite/testing/tflite_driver.h @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DRIVER_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DRIVER_H_ +#ifndef TENSORFLOW_LITE_TESTING_TFLITE_DRIVER_H_ +#define TENSORFLOW_LITE_TESTING_TFLITE_DRIVER_H_ #include -#include "tensorflow/contrib/lite/delegates/flex/delegate.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/testing/test_runner.h" +#include "tensorflow/lite/delegates/flex/delegate.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/testing/test_runner.h" namespace tflite { namespace testing { @@ -64,4 +64,4 @@ class TfLiteDriver : public TestRunner { } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_TFLITE_DRIVER_H_ +#endif // TENSORFLOW_LITE_TESTING_TFLITE_DRIVER_H_ diff --git a/tensorflow/contrib/lite/testing/tflite_driver_test.cc b/tensorflow/lite/testing/tflite_driver_test.cc similarity index 93% rename from tensorflow/contrib/lite/testing/tflite_driver_test.cc rename to tensorflow/lite/testing/tflite_driver_test.cc index 37010c468f250fdf4ef958b23a38aa38b7a533db..6e953e5e19b8f6cac1a4349145b03a7f8b5e1969 100644 --- a/tensorflow/contrib/lite/testing/tflite_driver_test.cc +++ b/tensorflow/lite/testing/tflite_driver_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/tflite_driver.h" +#include "tensorflow/lite/testing/tflite_driver.h" #include #include @@ -26,7 +26,7 @@ using ::testing::ElementsAre; TEST(TfliteDriverTest, SimpleTest) { std::unique_ptr runner(new TfLiteDriver(/*use_nnapi=*/false)); - runner->SetModelBaseDir("tensorflow/contrib/lite"); + runner->SetModelBaseDir("tensorflow/lite"); runner->LoadModel("testdata/multi_add.bin"); ASSERT_TRUE(runner->IsValid()); diff --git a/tensorflow/contrib/lite/testing/tokenize.cc b/tensorflow/lite/testing/tokenize.cc similarity index 96% rename from tensorflow/contrib/lite/testing/tokenize.cc rename to tensorflow/lite/testing/tokenize.cc index 2e84ea475cae60b197a243953517f401f77e2e46..bb4753580131adfdf488164358fcf45d99525f65 100644 --- a/tensorflow/contrib/lite/testing/tokenize.cc +++ b/tensorflow/lite/testing/tokenize.cc @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/tokenize.h" +#include "tensorflow/lite/testing/tokenize.h" #include #include -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/string.h" namespace tflite { namespace testing { diff --git a/tensorflow/contrib/lite/testing/tokenize.h b/tensorflow/lite/testing/tokenize.h similarity index 89% rename from tensorflow/contrib/lite/testing/tokenize.h rename to tensorflow/lite/testing/tokenize.h index 819539185168dfbc8ac7782ab42890a230476310..7bd2783337a763cafd4576f8f1e4e4b9e4829c6f 100644 --- a/tensorflow/contrib/lite/testing/tokenize.h +++ b/tensorflow/lite/testing/tokenize.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_TOKENIZE_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_TOKENIZE_H_ +#ifndef TENSORFLOW_LITE_TESTING_TOKENIZE_H_ +#define TENSORFLOW_LITE_TESTING_TOKENIZE_H_ #include #include @@ -39,4 +39,4 @@ void Tokenize(std::istream* input, TokenProcessor* processor); } // namespace testing } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_TOKENIZE_H_ +#endif // TENSORFLOW_LITE_TESTING_TOKENIZE_H_ diff --git a/tensorflow/contrib/lite/testing/tokenize_test.cc b/tensorflow/lite/testing/tokenize_test.cc similarity index 98% rename from tensorflow/contrib/lite/testing/tokenize_test.cc rename to tensorflow/lite/testing/tokenize_test.cc index 80f44aacca7e90efb3a6c8967c7175eada35734b..302ae589d02c3e8f167a97e6f02459c833d4d65d 100644 --- a/tensorflow/contrib/lite/testing/tokenize_test.cc +++ b/tensorflow/lite/testing/tokenize_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/tokenize.h" +#include "tensorflow/lite/testing/tokenize.h" #include #include diff --git a/tensorflow/contrib/lite/testing/util.h b/tensorflow/lite/testing/util.h similarity index 85% rename from tensorflow/contrib/lite/testing/util.h rename to tensorflow/lite/testing/util.h index 925791d3908dc569a05f7c6b632448266c08c48f..45751497de47bc30d33bafdf00f389232fef14f8 100644 --- a/tensorflow/contrib/lite/testing/util.h +++ b/tensorflow/lite/testing/util.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TESTING_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_TESTING_UTIL_H_ +#ifndef TENSORFLOW_LITE_TESTING_UTIL_H_ +#define TENSORFLOW_LITE_TESTING_UTIL_H_ #include -#include "tensorflow/contrib/lite/core/api/error_reporter.h" -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/core/api/error_reporter.h" +#include "tensorflow/lite/string.h" namespace tflite { @@ -56,4 +56,4 @@ inline void LogToStderr() { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TESTING_UTIL_H_ +#endif // TENSORFLOW_LITE_TESTING_UTIL_H_ diff --git a/tensorflow/contrib/lite/toco/BUILD b/tensorflow/lite/toco/BUILD similarity index 96% rename from tensorflow/contrib/lite/toco/BUILD rename to tensorflow/lite/toco/BUILD index 96b88b60fc650981bc880c309a38836d694b3ad0..14302874441c4af49909dd3ba5b3bee78c421c45 100644 --- a/tensorflow/contrib/lite/toco/BUILD +++ b/tensorflow/lite/toco/BUILD @@ -74,8 +74,8 @@ cc_library( linkstatic = 1, visibility = ["//visibility:public"], deps = [ - "//tensorflow/contrib/lite/kernels/internal:reference_base", - "//tensorflow/contrib/lite/kernels/internal:types", + "//tensorflow/lite/kernels/internal:reference_base", + "//tensorflow/lite/kernels/internal:types", ], ) @@ -281,9 +281,9 @@ cc_library( ":runtime", ":toco_port", ":tooling_util", - "//tensorflow/contrib/lite/kernels/internal:quantization_util", - "//tensorflow/contrib/lite/kernels/internal:strided_slice_logic", "//tensorflow/core:lib", + "//tensorflow/lite/kernels/internal:quantization_util", + "//tensorflow/lite/kernels/internal:strided_slice_logic", "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", ], @@ -325,13 +325,13 @@ cc_library( "@protobuf_archive//:protobuf_headers", "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", - "//tensorflow/contrib/lite/toco/tensorflow_graph_matching:resolve_cluster", - "//tensorflow/contrib/lite/toco/tflite:export", - "//tensorflow/contrib/lite/toco/tflite:import", "//tensorflow/core:core_cpu_lib", "//tensorflow/core:framework", "//tensorflow/core:lib", "//tensorflow/core:protos_all_cc", + "//tensorflow/lite/toco/tensorflow_graph_matching:resolve_cluster", + "//tensorflow/lite/toco/tflite:export", + "//tensorflow/lite/toco/tflite:import", ] + select({ # Placeholder for internal darwin rule. "//conditions:default": [], @@ -373,8 +373,8 @@ cc_library( ":toco_graphviz_dump_options", ":toco_port", ":types_proto_cc", - "//tensorflow/contrib/lite/kernels/internal:types", "//tensorflow/core:lib", + "//tensorflow/lite/kernels/internal:types", "@com_google_absl//absl/strings", "@com_googlesource_code_re2//:re2", "@protobuf_archive//:protobuf_headers", diff --git a/tensorflow/contrib/lite/toco/README.md b/tensorflow/lite/toco/README.md similarity index 100% rename from tensorflow/contrib/lite/toco/README.md rename to tensorflow/lite/toco/README.md diff --git a/tensorflow/contrib/lite/toco/allocate_transient_arrays.cc b/tensorflow/lite/toco/allocate_transient_arrays.cc similarity index 98% rename from tensorflow/contrib/lite/toco/allocate_transient_arrays.cc rename to tensorflow/lite/toco/allocate_transient_arrays.cc index 18c904c6d4e8ad45420d507326d7948e1c296596..3ec53c9c2d63ee5e2a79ac0cbe87c2b0f3925cd0 100644 --- a/tensorflow/contrib/lite/toco/allocate_transient_arrays.cc +++ b/tensorflow/lite/toco/allocate_transient_arrays.cc @@ -20,10 +20,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/allocate_transient_arrays.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/allocate_transient_arrays.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/allocate_transient_arrays.h b/tensorflow/lite/toco/allocate_transient_arrays.h similarity index 87% rename from tensorflow/contrib/lite/toco/allocate_transient_arrays.h rename to tensorflow/lite/toco/allocate_transient_arrays.h index 59d8ada1e9bb985f2eaa7ff6d29bc4f1b054a070..5d43d4cc3fa8029061e774b74120ee27c5a1f5e8 100644 --- a/tensorflow/contrib/lite/toco/allocate_transient_arrays.h +++ b/tensorflow/lite/toco/allocate_transient_arrays.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_ALLOCATE_TRANSIENT_ARRAYS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_ALLOCATE_TRANSIENT_ARRAYS_H_ +#ifndef TENSORFLOW_LITE_TOCO_ALLOCATE_TRANSIENT_ARRAYS_H_ +#define TENSORFLOW_LITE_TOCO_ALLOCATE_TRANSIENT_ARRAYS_H_ -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/toco/model.h" namespace toco { @@ -41,4 +41,4 @@ void AllocateTransientArrays(Model* model, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_ALLOCATE_TRANSIENT_ARRAYS_H_ +#endif // TENSORFLOW_LITE_TOCO_ALLOCATE_TRANSIENT_ARRAYS_H_ diff --git a/tensorflow/contrib/lite/toco/args.h b/tensorflow/lite/toco/args.h similarity index 97% rename from tensorflow/contrib/lite/toco/args.h rename to tensorflow/lite/toco/args.h index 2699ac76e1d2c3416d3694211220d7ffc7e02c16..bbd1dd102211950509b2f131ce8cc1f4274d0c81 100644 --- a/tensorflow/contrib/lite/toco/args.h +++ b/tensorflow/lite/toco/args.h @@ -15,20 +15,20 @@ limitations under the License. // This abstracts command line arguments in toco. // Arg is a parseable type that can register a default value, be able to // parse itself, and keep track of whether it was specified. -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_ARGS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_ARGS_H_ +#ifndef TENSORFLOW_LITE_TOCO_ARGS_H_ +#define TENSORFLOW_LITE_TOCO_ARGS_H_ #include #include #include -#include "tensorflow/contrib/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/toco_port.h" #if defined(PLATFORM_GOOGLE) #include "strings/split.h" #include "strings/strip.h" #endif #include "absl/strings/numbers.h" #include "absl/strings/str_split.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/toco_types.h" namespace toco { @@ -254,4 +254,4 @@ struct ParsedTocoFlags { }; } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_ARGS_H_ +#endif // TENSORFLOW_LITE_TOCO_ARGS_H_ diff --git a/tensorflow/contrib/lite/toco/dump_graphviz.cc b/tensorflow/lite/toco/dump_graphviz.cc similarity index 97% rename from tensorflow/contrib/lite/toco/dump_graphviz.cc rename to tensorflow/lite/toco/dump_graphviz.cc index 30525efd2391bb63afd7035b8134e5858add45f2..8896893f3579abcefa87e3411f9b186ca7a45a1b 100644 --- a/tensorflow/contrib/lite/toco/dump_graphviz.cc +++ b/tensorflow/lite/toco/dump_graphviz.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/dump_graphviz.h" +#include "tensorflow/lite/toco/dump_graphviz.h" #include #include @@ -20,11 +20,11 @@ limitations under the License. #include "absl/strings/str_replace.h" #include "absl/strings/strip.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/toco_graphviz_dump_options.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/toco_graphviz_dump_options.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" using toco::port::AppendF; diff --git a/tensorflow/contrib/lite/toco/dump_graphviz.h b/tensorflow/lite/toco/dump_graphviz.h similarity index 78% rename from tensorflow/contrib/lite/toco/dump_graphviz.h rename to tensorflow/lite/toco/dump_graphviz.h index ea5a4031c39580be00130a2fd3a89c61da2acf01..9697bd6f0dc434aaf98762698c64fb60cb97f2ee 100644 --- a/tensorflow/contrib/lite/toco/dump_graphviz.h +++ b/tensorflow/lite/toco/dump_graphviz.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_DUMP_GRAPHVIZ_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_DUMP_GRAPHVIZ_H_ +#ifndef TENSORFLOW_LITE_TOCO_DUMP_GRAPHVIZ_H_ +#define TENSORFLOW_LITE_TOCO_DUMP_GRAPHVIZ_H_ #include -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/toco/model.h" namespace toco { @@ -25,4 +25,4 @@ void DumpGraphviz(const Model& model, string* output_file_contents); } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_DUMP_GRAPHVIZ_H_ +#endif // TENSORFLOW_LITE_TOCO_DUMP_GRAPHVIZ_H_ diff --git a/tensorflow/contrib/lite/toco/export_tensorflow.cc b/tensorflow/lite/toco/export_tensorflow.cc similarity index 99% rename from tensorflow/contrib/lite/toco/export_tensorflow.cc rename to tensorflow/lite/toco/export_tensorflow.cc index 41a82b57208c4050a17940786faa2d6fcd84203f..1752745aaee987e1ef029523ce12d05a4a80cdce 100644 --- a/tensorflow/contrib/lite/toco/export_tensorflow.cc +++ b/tensorflow/lite/toco/export_tensorflow.cc @@ -22,11 +22,11 @@ limitations under the License. #include "google/protobuf/text_format.h" #include "absl/memory/memory.h" #include "absl/strings/string_view.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tensorflow_util.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tensorflow_util.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/node_def.pb.h" diff --git a/tensorflow/contrib/lite/toco/export_tensorflow.h b/tensorflow/lite/toco/export_tensorflow.h similarity index 79% rename from tensorflow/contrib/lite/toco/export_tensorflow.h rename to tensorflow/lite/toco/export_tensorflow.h index d7310bb75f258cde25236da2a9269f18234784e4..09c966ded621d4331bf9eb3e5bb82d1ea911fe0c 100644 --- a/tensorflow/contrib/lite/toco/export_tensorflow.h +++ b/tensorflow/lite/toco/export_tensorflow.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_EXPORT_TENSORFLOW_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_EXPORT_TENSORFLOW_H_ +#ifndef TENSORFLOW_LITE_TOCO_EXPORT_TENSORFLOW_H_ +#define TENSORFLOW_LITE_TOCO_EXPORT_TENSORFLOW_H_ #include -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/toco/model.h" namespace toco { @@ -26,4 +26,4 @@ void EncodeConstantArraysMinMaxByWrappingThemInFakeQuantNodes(Model* model); } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_EXPORT_TENSORFLOW_H_ +#endif // TENSORFLOW_LITE_TOCO_EXPORT_TENSORFLOW_H_ diff --git a/tensorflow/contrib/lite/toco/format_port.h b/tensorflow/lite/toco/format_port.h similarity index 92% rename from tensorflow/contrib/lite/toco/format_port.h rename to tensorflow/lite/toco/format_port.h index 44e668457152376fd8b2e2fa063301468090c3f0..69833d965c57d3941d6685dc0d9d2a4b90d2b98d 100644 --- a/tensorflow/contrib/lite/toco/format_port.h +++ b/tensorflow/lite/toco/format_port.h @@ -16,10 +16,10 @@ limitations under the License. // and absl::StrAppendFormat. Unfortunately, type safety is not as good as a // a full C++ example. // TODO(aselle): When absl adds support for StrFormat, use that instead. -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_FORMAT_PORT_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_FORMAT_PORT_H_ +#ifndef TENSORFLOW_LITE_TOCO_FORMAT_PORT_H_ +#define TENSORFLOW_LITE_TOCO_FORMAT_PORT_H_ -#include "tensorflow/contrib/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/toco_types.h" #include "tensorflow/core/lib/strings/stringprintf.h" namespace toco { @@ -74,4 +74,4 @@ inline string StringF(const char* fmt, Args&&... args) { } // namespace port } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_FORMAT_PORT_H_ +#endif // TENSORFLOW_LITE_TOCO_FORMAT_PORT_H_ diff --git a/tensorflow/contrib/lite/toco/g3doc/README.md b/tensorflow/lite/toco/g3doc/README.md similarity index 100% rename from tensorflow/contrib/lite/toco/g3doc/README.md rename to tensorflow/lite/toco/g3doc/README.md diff --git a/tensorflow/contrib/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc b/tensorflow/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc rename to tensorflow/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc index 8a945ac4350f2125fe018b6ae3468e19acb77646..e3b0de5555729190617ce867a906da6786b2634a 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc +++ b/tensorflow/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include "absl/strings/str_cat.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/convert_pure_conv_to_depthwise.cc b/tensorflow/lite/toco/graph_transformations/convert_pure_conv_to_depthwise.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/convert_pure_conv_to_depthwise.cc rename to tensorflow/lite/toco/graph_transformations/convert_pure_conv_to_depthwise.cc index a1510128910d74982e464c73596b0d6db5d3171f..a707a906a815cd2ba12306daeab5d20fedd7ca88 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/convert_pure_conv_to_depthwise.cc +++ b/tensorflow/lite/toco/graph_transformations/convert_pure_conv_to_depthwise.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/convert_reorder_axes.cc b/tensorflow/lite/toco/graph_transformations/convert_reorder_axes.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/convert_reorder_axes.cc rename to tensorflow/lite/toco/graph_transformations/convert_reorder_axes.cc index 4a264e1cf1d4fcceb47451ffe01b4e45da39f463..b4cd4635982fd4eb22e1b4dff74d0eae391ceaef 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/convert_reorder_axes.cc +++ b/tensorflow/lite/toco/graph_transformations/convert_reorder_axes.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include "absl/strings/str_cat.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/convert_squeeze_to_reshape.cc b/tensorflow/lite/toco/graph_transformations/convert_squeeze_to_reshape.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/convert_squeeze_to_reshape.cc rename to tensorflow/lite/toco/graph_transformations/convert_squeeze_to_reshape.cc index a0bd1ed4a4d8a1b7119a614efcdae9b2b122466c..52aaefb3d74e4e1d17bbb6a11838d2bd17d29d24 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/convert_squeeze_to_reshape.cc +++ b/tensorflow/lite/toco/graph_transformations/convert_squeeze_to_reshape.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include "absl/strings/str_cat.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_addn_to_add.cc b/tensorflow/lite/toco/graph_transformations/convert_trivial_addn_to_add.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_addn_to_add.cc rename to tensorflow/lite/toco/graph_transformations/convert_trivial_addn_to_add.cc index d7cacf77f48b6b5720885261f3cb701d8a7b5019..130fe58a9d13ff4c3f79874200dcc2e2224a5ae0 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_addn_to_add.cc +++ b/tensorflow/lite/toco/graph_transformations/convert_trivial_addn_to_add.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_pack_to_reshape.cc b/tensorflow/lite/toco/graph_transformations/convert_trivial_pack_to_reshape.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_pack_to_reshape.cc rename to tensorflow/lite/toco/graph_transformations/convert_trivial_pack_to_reshape.cc index 78779243a9e15d7d25078dfd4d375947c06779e5..27c503f5ddd14da6d72f27a8ced4a822917bbdc3 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_pack_to_reshape.cc +++ b/tensorflow/lite/toco/graph_transformations/convert_trivial_pack_to_reshape.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include "absl/strings/str_cat.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_tile_to_concat.cc b/tensorflow/lite/toco/graph_transformations/convert_trivial_tile_to_concat.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_tile_to_concat.cc rename to tensorflow/lite/toco/graph_transformations/convert_trivial_tile_to_concat.cc index b6d712ca44c3e85a8b8a56a7d758d2ff65ca39fa..fb416cabededf53cb3783a41ba38d49e8abe5c58 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_tile_to_concat.cc +++ b/tensorflow/lite/toco/graph_transformations/convert_trivial_tile_to_concat.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_transpose_to_reshape.cc b/tensorflow/lite/toco/graph_transformations/convert_trivial_transpose_to_reshape.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_transpose_to_reshape.cc rename to tensorflow/lite/toco/graph_transformations/convert_trivial_transpose_to_reshape.cc index e5a96d433517616dc0f283a736bcfab3ebe71694..ae97cef520e0f2ea1bd30ff32832978e9de1a44c 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/convert_trivial_transpose_to_reshape.cc +++ b/tensorflow/lite/toco/graph_transformations/convert_trivial_transpose_to_reshape.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/create_im2col_arrays.cc b/tensorflow/lite/toco/graph_transformations/create_im2col_arrays.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/create_im2col_arrays.cc rename to tensorflow/lite/toco/graph_transformations/create_im2col_arrays.cc index ebc0e9afca22d031a178ecb975f0ef722d7575ab..8e93bc237897b62ff46228b7f1cc38d961371106 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/create_im2col_arrays.cc +++ b/tensorflow/lite/toco/graph_transformations/create_im2col_arrays.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include "absl/strings/str_cat.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/dequantize.cc b/tensorflow/lite/toco/graph_transformations/dequantize.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/dequantize.cc rename to tensorflow/lite/toco/graph_transformations/dequantize.cc index 2119174950b1ade67c66a47e65b9808c216a7c54..cc5dddbb40e7324a034670ede27e0fc6d652ac6b 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/dequantize.cc +++ b/tensorflow/lite/toco/graph_transformations/dequantize.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/drop_fake_quant.cc b/tensorflow/lite/toco/graph_transformations/drop_fake_quant.cc similarity index 86% rename from tensorflow/contrib/lite/toco/graph_transformations/drop_fake_quant.cc rename to tensorflow/lite/toco/graph_transformations/drop_fake_quant.cc index 1555cf60a1cdeabce949e4b3ab3823b6df1128e4..bb8679bced8077dcb5bd0f740db2d361f36c4b49 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/drop_fake_quant.cc +++ b/tensorflow/lite/toco/graph_transformations/drop_fake_quant.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/drop_im2col_arrays.cc b/tensorflow/lite/toco/graph_transformations/drop_im2col_arrays.cc similarity index 88% rename from tensorflow/contrib/lite/toco/graph_transformations/drop_im2col_arrays.cc rename to tensorflow/lite/toco/graph_transformations/drop_im2col_arrays.cc index 7d66ea5dd234515fb315f59d1a80b9690b966493..c3c95afd967dc3f8fc17379a36aa67602056caf7 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/drop_im2col_arrays.cc +++ b/tensorflow/lite/toco/graph_transformations/drop_im2col_arrays.cc @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/ensure_bias_vectors.cc b/tensorflow/lite/toco/graph_transformations/ensure_bias_vectors.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/ensure_bias_vectors.cc rename to tensorflow/lite/toco/graph_transformations/ensure_bias_vectors.cc index 72b1dda3be584b8c7f0168f8c845a1c74a487c2b..62a4b52bbb877be355d00b65c4bc6e2c159d3452 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/ensure_bias_vectors.cc +++ b/tensorflow/lite/toco/graph_transformations/ensure_bias_vectors.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/ensure_uint8_weights_safe_for_fast_int8_kernels.cc b/tensorflow/lite/toco/graph_transformations/ensure_uint8_weights_safe_for_fast_int8_kernels.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/ensure_uint8_weights_safe_for_fast_int8_kernels.cc rename to tensorflow/lite/toco/graph_transformations/ensure_uint8_weights_safe_for_fast_int8_kernels.cc index 60dcd5268442fe08ed69ea0081ad3323a897f146..918bb489995cd34db4bf168e14e104f6f6d096bc 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/ensure_uint8_weights_safe_for_fast_int8_kernels.cc +++ b/tensorflow/lite/toco/graph_transformations/ensure_uint8_weights_safe_for_fast_int8_kernels.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/fuse_activation_functions.cc b/tensorflow/lite/toco/graph_transformations/fuse_activation_functions.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/fuse_activation_functions.cc rename to tensorflow/lite/toco/graph_transformations/fuse_activation_functions.cc index 88511a7d3c42582c20a049eac9974dea10810170..f467a95f3486639897d6a36f8c9f9dc3ef461e36 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/fuse_activation_functions.cc +++ b/tensorflow/lite/toco/graph_transformations/fuse_activation_functions.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/fuse_binary_into_following_affine.cc b/tensorflow/lite/toco/graph_transformations/fuse_binary_into_following_affine.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/fuse_binary_into_following_affine.cc rename to tensorflow/lite/toco/graph_transformations/fuse_binary_into_following_affine.cc index 0de22b8ff4276c4a68da979e7de74b4751b6267f..6b4765b23c47d0a8af4ef3995d6e27c978387593 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/fuse_binary_into_following_affine.cc +++ b/tensorflow/lite/toco/graph_transformations/fuse_binary_into_following_affine.cc @@ -18,10 +18,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/fuse_binary_into_preceding_affine.cc b/tensorflow/lite/toco/graph_transformations/fuse_binary_into_preceding_affine.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/fuse_binary_into_preceding_affine.cc rename to tensorflow/lite/toco/graph_transformations/fuse_binary_into_preceding_affine.cc index b8da756d857355b8cf90838375bd879df2c06755..72aaafdd974960db006e550b9ed2665bae2672f4 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/fuse_binary_into_preceding_affine.cc +++ b/tensorflow/lite/toco/graph_transformations/fuse_binary_into_preceding_affine.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/fuse_broadcast_into_following_binary.cc b/tensorflow/lite/toco/graph_transformations/fuse_broadcast_into_following_binary.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/fuse_broadcast_into_following_binary.cc rename to tensorflow/lite/toco/graph_transformations/fuse_broadcast_into_following_binary.cc index 4848867b9a0a73a27a25b19e406d81256716ae7d..ba3e277f676ce85e80f1ac28471928f2c20a7aa4 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/fuse_broadcast_into_following_binary.cc +++ b/tensorflow/lite/toco/graph_transformations/fuse_broadcast_into_following_binary.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc b/tensorflow/lite/toco/graph_transformations/graph_transformations.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc rename to tensorflow/lite/toco/graph_transformations/graph_transformations.cc index 8b0bc2d865ea49140a112f75140005ee51eb2994..a0260e24013bfda8718e0dc04052abb49b65debf 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc +++ b/tensorflow/lite/toco/graph_transformations/graph_transformations.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" #include #include @@ -21,8 +21,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h b/tensorflow/lite/toco/graph_transformations/graph_transformations.h similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h rename to tensorflow/lite/toco/graph_transformations/graph_transformations.h index a89db320ea9d843485e112d28c57e650a8fe288b..73a90c8239b2a24de8bb4d63e711225b4127f19a 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h +++ b/tensorflow/lite/toco/graph_transformations/graph_transformations.h @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_GRAPH_TRANSFORMATIONS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_GRAPH_TRANSFORMATIONS_H_ +#ifndef TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_GRAPH_TRANSFORMATIONS_H_ +#define TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_GRAPH_TRANSFORMATIONS_H_ #include #include #include #include -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/toco_port.h" namespace toco { @@ -287,4 +287,4 @@ class IdentifyDilatedConv : public GraphTransformation { } // end namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_GRAPH_TRANSFORMATIONS_H_ +#endif // TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_GRAPH_TRANSFORMATIONS_H_ diff --git a/tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc b/tensorflow/lite/toco/graph_transformations/hardcode_min_max.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc rename to tensorflow/lite/toco/graph_transformations/hardcode_min_max.cc index a4f8d64f4dd2a07803c5ad767d664a834fbcec62..df50f31de88cd8114ee66ce417354e33a12a5d8b 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc +++ b/tensorflow/lite/toco/graph_transformations/hardcode_min_max.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_dilated_conv.cc b/tensorflow/lite/toco/graph_transformations/identify_dilated_conv.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/identify_dilated_conv.cc rename to tensorflow/lite/toco/graph_transformations/identify_dilated_conv.cc index 9e4a3005a1d5347911c3967fe373bf009ecff3e8..e27f975348b7ecc7ebc3c930859288234e5d506c 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_dilated_conv.cc +++ b/tensorflow/lite/toco/graph_transformations/identify_dilated_conv.cc @@ -15,9 +15,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_l2_normalization.cc b/tensorflow/lite/toco/graph_transformations/identify_l2_normalization.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/identify_l2_normalization.cc rename to tensorflow/lite/toco/graph_transformations/identify_l2_normalization.cc index 78f60f52fbdbc74e5ec874782a16c0973e3f7b41..dabd4bd209f450645d12b76c782b36fa5198f84a 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_l2_normalization.cc +++ b/tensorflow/lite/toco/graph_transformations/identify_l2_normalization.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_l2_pool.cc b/tensorflow/lite/toco/graph_transformations/identify_l2_pool.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/identify_l2_pool.cc rename to tensorflow/lite/toco/graph_transformations/identify_l2_pool.cc index 13664bb344def96a2780d230143c291a7600ecb7..6e0a7cdc31af2bbdb4da6b53f20cef66eeb8e68a 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_l2_pool.cc +++ b/tensorflow/lite/toco/graph_transformations/identify_l2_pool.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm.cc b/tensorflow/lite/toco/graph_transformations/identify_lstm.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/identify_lstm.cc rename to tensorflow/lite/toco/graph_transformations/identify_lstm.cc index 7fd8f906e2c270dd356dd838c07f3e560ec7143a..089ecee959a3ab80474782a88fa176b7a9f42001 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm.cc +++ b/tensorflow/lite/toco/graph_transformations/identify_lstm.cc @@ -16,9 +16,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_merge_inputs.cc b/tensorflow/lite/toco/graph_transformations/identify_lstm_merge_inputs.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_merge_inputs.cc rename to tensorflow/lite/toco/graph_transformations/identify_lstm_merge_inputs.cc index 6ccce923f361d76d208aa76c295c4ed5aea047d5..2fae01a698727708e7669d491902da3c2e556ef2 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_merge_inputs.cc +++ b/tensorflow/lite/toco/graph_transformations/identify_lstm_merge_inputs.cc @@ -18,10 +18,10 @@ limitations under the License. #include "absl/memory/memory.h" #include "absl/strings/string_view.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/lstm_utils.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc b/tensorflow/lite/toco/graph_transformations/identify_lstm_split_inputs.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc rename to tensorflow/lite/toco/graph_transformations/identify_lstm_split_inputs.cc index ad5120e2aa5f4ea31607f0e8fdf840664fc66a99..c519e654636a55f228c4428a9016d11c44d0c705 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc +++ b/tensorflow/lite/toco/graph_transformations/identify_lstm_split_inputs.cc @@ -18,10 +18,10 @@ limitations under the License. #include "absl/memory/memory.h" #include "absl/strings/string_view.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/lstm_utils.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_prelu.cc b/tensorflow/lite/toco/graph_transformations/identify_prelu.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/identify_prelu.cc rename to tensorflow/lite/toco/graph_transformations/identify_prelu.cc index c11fee4dc94041b3608c18378df67a08443b513a..1205ddc7304f39fbf893e65d77cbed0db654a452 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_prelu.cc +++ b/tensorflow/lite/toco/graph_transformations/identify_prelu.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" // This transformation rule tries to identify the PRelu structure generated by diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_relu1.cc b/tensorflow/lite/toco/graph_transformations/identify_relu1.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/identify_relu1.cc rename to tensorflow/lite/toco/graph_transformations/identify_relu1.cc index 51d0629362edbe1183f20e32b16437f07e1281c7..bcd5b0ca04a8a2fec1d3d10bb20b483806244861 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_relu1.cc +++ b/tensorflow/lite/toco/graph_transformations/identify_relu1.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.cc b/tensorflow/lite/toco/graph_transformations/lstm_utils.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.cc rename to tensorflow/lite/toco/graph_transformations/lstm_utils.cc index 910a96058979887972b41f27b2e570e8cb5b4f4c..3414a7fd7fe2d1e56c71927ebcb8cce4ab0b875b 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.cc +++ b/tensorflow/lite/toco/graph_transformations/lstm_utils.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.h" +#include "tensorflow/lite/toco/graph_transformations/lstm_utils.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.h b/tensorflow/lite/toco/graph_transformations/lstm_utils.h similarity index 92% rename from tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.h rename to tensorflow/lite/toco/graph_transformations/lstm_utils.h index 6d8603a1133a7478647b8bcc49ea1eceba28df31..949292ee84b2923abac1daa7a1486026f8b4d0d8 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.h +++ b/tensorflow/lite/toco/graph_transformations/lstm_utils.h @@ -12,20 +12,20 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_LSTM_UTILS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_LSTM_UTILS_H_ +#ifndef TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_LSTM_UTILS_H_ +#define TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_LSTM_UTILS_H_ #include #include #include -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { // For consistency with the parameters defined in extended LstmCell's kernel -// (tensorflow/contrib/lite/kernels/lstm.cc), +// (tensorflow/lite/kernels/lstm.cc), // use lowercase for these constants. enum ExtendedLstmCellInputs { @@ -108,4 +108,4 @@ bool GetMatchingRnnArray(Model* model, const string& back_edge_source_array, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_LSTM_UTILS_H_ +#endif // TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_LSTM_UTILS_H_ diff --git a/tensorflow/contrib/lite/toco/graph_transformations/make_initial_dequantize_operator.cc b/tensorflow/lite/toco/graph_transformations/make_initial_dequantize_operator.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/make_initial_dequantize_operator.cc rename to tensorflow/lite/toco/graph_transformations/make_initial_dequantize_operator.cc index 5bf17d5b4cd1a02a2848bf1da2be2e9cfb8b314c..b914838b91c965da66f7ccaecc01fa2b23eaa883 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/make_initial_dequantize_operator.cc +++ b/tensorflow/lite/toco/graph_transformations/make_initial_dequantize_operator.cc @@ -17,11 +17,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/quantization_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/merge_reshape_into_preceding_transpose.cc b/tensorflow/lite/toco/graph_transformations/merge_reshape_into_preceding_transpose.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/merge_reshape_into_preceding_transpose.cc rename to tensorflow/lite/toco/graph_transformations/merge_reshape_into_preceding_transpose.cc index 06de9b1cd89571b693b84189883350f5b2c176c5..80170fe8bcb73e6e3048138632492b96d8b80f85 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/merge_reshape_into_preceding_transpose.cc +++ b/tensorflow/lite/toco/graph_transformations/merge_reshape_into_preceding_transpose.cc @@ -18,11 +18,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/move_binary_operator_before_reshape.cc b/tensorflow/lite/toco/graph_transformations/move_binary_operator_before_reshape.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/move_binary_operator_before_reshape.cc rename to tensorflow/lite/toco/graph_transformations/move_binary_operator_before_reshape.cc index f0d8d924adbd34cb3778c9d1a3debefaa4ca07b7..0f3c4d34d66ea2cab63ae5e4168d2d84e25399d6 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/move_binary_operator_before_reshape.cc +++ b/tensorflow/lite/toco/graph_transformations/move_binary_operator_before_reshape.cc @@ -14,9 +14,9 @@ ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/propagate_activation_function_into_constants.cc b/tensorflow/lite/toco/graph_transformations/propagate_activation_function_into_constants.cc similarity index 92% rename from tensorflow/contrib/lite/toco/graph_transformations/propagate_activation_function_into_constants.cc rename to tensorflow/lite/toco/graph_transformations/propagate_activation_function_into_constants.cc index 9c1ed2b732dcce32deb780d196999c23347fb8e8..95de60262e754d80e8c5e1822aff9fd92b997bba 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/propagate_activation_function_into_constants.cc +++ b/tensorflow/lite/toco/graph_transformations/propagate_activation_function_into_constants.cc @@ -17,11 +17,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/propagate_array_data_types.cc b/tensorflow/lite/toco/graph_transformations/propagate_array_data_types.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/propagate_array_data_types.cc rename to tensorflow/lite/toco/graph_transformations/propagate_array_data_types.cc index 47faa20a291a0d5cecb79a70b311882683406af6..9a458dccb9cbb372500771bd5321869a9bf1db36 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/propagate_array_data_types.cc +++ b/tensorflow/lite/toco/graph_transformations/propagate_array_data_types.cc @@ -17,8 +17,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/propagate_default_min_max.cc b/tensorflow/lite/toco/graph_transformations/propagate_default_min_max.cc similarity index 92% rename from tensorflow/contrib/lite/toco/graph_transformations/propagate_default_min_max.cc rename to tensorflow/lite/toco/graph_transformations/propagate_default_min_max.cc index 3cf191436dc8d572cb9b4adb5e1ef08d4e9a363a..d31ba956afd986fff61f9c61d4ac9782e7e69bbe 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/propagate_default_min_max.cc +++ b/tensorflow/lite/toco/graph_transformations/propagate_default_min_max.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/quantization_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/propagate_fake_quant_num_bits.cc b/tensorflow/lite/toco/graph_transformations/propagate_fake_quant_num_bits.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/propagate_fake_quant_num_bits.cc rename to tensorflow/lite/toco/graph_transformations/propagate_fake_quant_num_bits.cc index d0113237ce6e43140704672c4cfa5866b7cf49a4..04a5a1c1687b4caae2f31548ec549cb95e153df5 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/propagate_fake_quant_num_bits.cc +++ b/tensorflow/lite/toco/graph_transformations/propagate_fake_quant_num_bits.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/quantization_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc b/tensorflow/lite/toco/graph_transformations/propagate_fixed_sizes.cc similarity index 99% rename from tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc rename to tensorflow/lite/toco/graph_transformations/propagate_fixed_sizes.cc index 514a596f1e4c20e52c6b478c1175d5161630d718..78ea54e452b9dd163aa75349162493a2abe72707 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/propagate_fixed_sizes.cc +++ b/tensorflow/lite/toco/graph_transformations/propagate_fixed_sizes.cc @@ -20,10 +20,10 @@ limitations under the License. #include #include "absl/strings/str_join.h" -#include "tensorflow/contrib/lite/kernels/internal/strided_slice_logic.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/kernels/internal/strided_slice_logic.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/quantization_util.cc b/tensorflow/lite/toco/graph_transformations/quantization_util.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/quantization_util.cc rename to tensorflow/lite/toco/graph_transformations/quantization_util.cc index 82146c5a66127a335bb7c5434cace6f2ab1269eb..56f83c9793f723baa13e37924fa566d3018aa0d0 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/quantization_util.cc +++ b/tensorflow/lite/toco/graph_transformations/quantization_util.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/quantization_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h b/tensorflow/lite/toco/graph_transformations/quantization_util.h similarity index 85% rename from tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h rename to tensorflow/lite/toco/graph_transformations/quantization_util.h index cf093c6f17b45839156dae0d06ca2fc7e5e2f3c6..d226aeab8b788c0c52c504a6f60e6d8fdfc2b3fa 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h +++ b/tensorflow/lite/toco/graph_transformations/quantization_util.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_QUANTIZATION_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_QUANTIZATION_UTIL_H_ +#ifndef TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_QUANTIZATION_UTIL_H_ +#define TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_QUANTIZATION_UTIL_H_ -#include "tensorflow/contrib/lite/kernels/internal/quantization_util.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/kernels/internal/quantization_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" namespace toco { @@ -60,4 +60,4 @@ bool IsArrayQuantizedRangeSubset(GraphTransformation* transformation, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_QUANTIZATION_UTIL_H_ +#endif // TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_QUANTIZATION_UTIL_H_ diff --git a/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc b/tensorflow/lite/toco/graph_transformations/quantize.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/quantize.cc rename to tensorflow/lite/toco/graph_transformations/quantize.cc index 0a89deadcc2fcad30831896576fe98d9fa2898cb..e28b7288f0102a6b03dff61c3e1b6aeb3dd1adbe 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/quantize.cc +++ b/tensorflow/lite/toco/graph_transformations/quantize.cc @@ -20,11 +20,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/quantization_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/read_array_minmax_and_narrow_range_from_fake_quant.cc b/tensorflow/lite/toco/graph_transformations/read_array_minmax_and_narrow_range_from_fake_quant.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/read_array_minmax_and_narrow_range_from_fake_quant.cc rename to tensorflow/lite/toco/graph_transformations/read_array_minmax_and_narrow_range_from_fake_quant.cc index 0c32218ff2e972d0f0ab969930cc7ac84ef0dcc6..4d621018dc3fc58236512bbda943991e74030712 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/read_array_minmax_and_narrow_range_from_fake_quant.cc +++ b/tensorflow/lite/toco/graph_transformations/read_array_minmax_and_narrow_range_from_fake_quant.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_final_dequantize_op.cc b/tensorflow/lite/toco/graph_transformations/remove_final_dequantize_op.cc similarity index 90% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_final_dequantize_op.cc rename to tensorflow/lite/toco/graph_transformations/remove_final_dequantize_op.cc index fe8023ab8fe1d88813f3c78436f7cba650a27c30..ed551d0122348ef4412e9e521bfea89d901e13fc 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_final_dequantize_op.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_final_dequantize_op.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_tensorflow_assert.cc b/tensorflow/lite/toco/graph_transformations/remove_tensorflow_assert.cc similarity index 91% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_tensorflow_assert.cc rename to tensorflow/lite/toco/graph_transformations/remove_tensorflow_assert.cc index be8c0acc7b5cc6f06083c0da6f694e40fbd64b6f..647146b407116a0c1197f07ad2a3379007b7d184 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_tensorflow_assert.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_tensorflow_assert.cc @@ -16,9 +16,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_tensorflow_identity.cc b/tensorflow/lite/toco/graph_transformations/remove_tensorflow_identity.cc similarity index 83% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_tensorflow_identity.cc rename to tensorflow/lite/toco/graph_transformations/remove_tensorflow_identity.cc index 37fe5fa3d7190c3c9a6795425c4840e3284aa252..e0f7bc9a053b5d8b5a7941221e4383883a4de4f5 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_tensorflow_identity.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_tensorflow_identity.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_binary.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_binary.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_binary.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_binary.cc index 68c6fb65c5c6b8460819c5bc5c50ebf485524733..8879a7cd2664ed3f32e32435f9d45c0744dfbea2 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_binary.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_binary.cc @@ -18,10 +18,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_concatenation.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_concatenation.cc similarity index 83% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_concatenation.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_concatenation.cc index faaa2a828e306cbaf127cf1554a38238580ef435..bfa9314a6964f431b4a6ffb7225039c975866da1 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_concatenation.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_concatenation.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_concatenation_input.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_concatenation_input.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_concatenation_input.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_concatenation_input.cc index ccfc181fe007455b69f44a29f5323deb39f1a0b9..565ccb663a8008332f41c0ec2565a4ad547ee585 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_concatenation_input.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_concatenation_input.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_fake_quant.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_fake_quant.cc similarity index 91% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_fake_quant.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_fake_quant.cc index 5448a816bc43ac803cd2022c6659584683907280..2891e41f3072c6ea906336039274aee7b32c6071 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_fake_quant.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_fake_quant.cc @@ -18,10 +18,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.cc index d5983a1f12ffbc2b6c06432741f384229461a12d..5239d550762fe3fc76b3d3cd156f63f98ed951ce 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h b/tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h similarity index 86% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h rename to tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h index 663704e5acf745d3768ad682e0a7888f0a690e6c..315edc0121afc6c0b50fd0c9a64a3ec3c2323492 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_REMOVE_TRIVIAL_PASSTHROUGH_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_REMOVE_TRIVIAL_PASSTHROUGH_H_ +#ifndef TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_REMOVE_TRIVIAL_PASSTHROUGH_H_ +#define TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_REMOVE_TRIVIAL_PASSTHROUGH_H_ -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" namespace toco { @@ -55,4 +55,4 @@ bool RemoveTrivialPassthroughOp(GraphTransformation* transformation, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_GRAPH_TRANSFORMATIONS_REMOVE_TRIVIAL_PASSTHROUGH_H_ +#endif // TENSORFLOW_LITE_TOCO_GRAPH_TRANSFORMATIONS_REMOVE_TRIVIAL_PASSTHROUGH_H_ diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_quantized_activation_func.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_quantized_activation_func.cc similarity index 89% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_quantized_activation_func.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_quantized_activation_func.cc index 4133815285fdc500e6a112eeedff1bbf6bca66ab..56acf22f7f1de293e9c515c5ecf508f44390535f 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_quantized_activation_func.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_quantized_activation_func.cc @@ -17,13 +17,13 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/quantization_util.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_quantized_min_max.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_quantized_min_max.cc similarity index 87% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_quantized_min_max.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_quantized_min_max.cc index 0f0ae4af6937283d60985292aea3cb5166aa9b1e..f1037994c976160dcf6bea0af948c417c2ffed7c 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_quantized_min_max.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_quantized_min_max.cc @@ -17,13 +17,13 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/quantization_util.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_reshape.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_reshape.cc similarity index 92% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_reshape.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_reshape.cc index 1caf94487979848b2c58ddcdf3ddfadf79c40567..7dea3c79c57a484e4d65f2421fda2adb99f0a681 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_reshape.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_reshape.cc @@ -18,10 +18,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_slice.cc b/tensorflow/lite/toco/graph_transformations/remove_trivial_slice.cc similarity index 88% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_slice.cc rename to tensorflow/lite/toco/graph_transformations/remove_trivial_slice.cc index dcb0148d583f1c1c99d49e0699e3c18d35508cc2..330e16b3afdc88c1f3dba55b091c20a166946ebb 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_slice.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_trivial_slice.cc @@ -18,10 +18,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/remove_unused_op.cc b/tensorflow/lite/toco/graph_transformations/remove_unused_op.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/remove_unused_op.cc rename to tensorflow/lite/toco/graph_transformations/remove_unused_op.cc index 3cd5d06baebc5a7a1807f156a52a24675343be7d..ac05afb81947a45855cec3a12c73c928ee210c65 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/remove_unused_op.cc +++ b/tensorflow/lite/toco/graph_transformations/remove_unused_op.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/reorder_elementwise_unary.cc b/tensorflow/lite/toco/graph_transformations/reorder_elementwise_unary.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/reorder_elementwise_unary.cc rename to tensorflow/lite/toco/graph_transformations/reorder_elementwise_unary.cc index 3c8d41108918ad6b4232fcc0168c9e0cd65100e5..6a4b9198548956217d24693bceff2bd6b3b8f0a6 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/reorder_elementwise_unary.cc +++ b/tensorflow/lite/toco/graph_transformations/reorder_elementwise_unary.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/reorder_reshape_transpose.cc b/tensorflow/lite/toco/graph_transformations/reorder_reshape_transpose.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/reorder_reshape_transpose.cc rename to tensorflow/lite/toco/graph_transformations/reorder_reshape_transpose.cc index a2c06e71e8ec93352b539e42d7020db625e55bf1..fdd411c84c2678bc483b00849d5142665e706fac 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/reorder_reshape_transpose.cc +++ b/tensorflow/lite/toco/graph_transformations/reorder_reshape_transpose.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_batch_normalization.cc b/tensorflow/lite/toco/graph_transformations/resolve_batch_normalization.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_batch_normalization.cc rename to tensorflow/lite/toco/graph_transformations/resolve_batch_normalization.cc index a79779f55d9c138575267faf3ae6c67791255cb1..e972e5c9014865b4ae8486377a1edd6a6cdd1a3f 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_batch_normalization.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_batch_normalization.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_batch_to_space_nd_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_batch_to_space_nd_attributes.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_batch_to_space_nd_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_batch_to_space_nd_attributes.cc index d039d7d690d715874f8f42a9e9d6b9114d5dca8e..7aa92de4f6f87877e7751b7d6c4177a7d8408e3c 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_batch_to_space_nd_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_batch_to_space_nd_attributes.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_binary.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_binary.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_binary.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_binary.cc index 586f546a30da32f9c2ccfa2ce135f299bcd252ff..0e1671c61c6b89e9099cf7dfcfafcf18f1e195fa 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_binary.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_binary.cc @@ -18,10 +18,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_concatenation.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_concatenation.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_concatenation.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_concatenation.cc index a26aa21def090d175255caedbee0fd2950012ee7..98ff4ab02ea621583fb93dda7686839afe18b8a5 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_concatenation.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_concatenation.cc @@ -19,9 +19,9 @@ limitations under the License. #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_fake_quant.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_fake_quant.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_fake_quant.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_fake_quant.cc index 4f330fdd84015331043e565feebaef246a262dd5..d52f7d49169c7e84e8103cdf80f1baebeb4be946 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_fake_quant.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_fake_quant.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/quantization_util.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/quantization_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_fill.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_fill.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_fill.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_fill.cc index ef234563fdc51801f895381abf189956d40f688f..c9021019bf4167147aa89c25691f5c7dabba583f 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_fill.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_fill.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_gather.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_gather.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_gather.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_gather.cc index 26616374d8a8b45cd1cd2f2d4a96d3e23a7ff85d..1149930131e0d6889df50cf67eaed863617eda1f 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_gather.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_gather.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_pack.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_pack.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_pack.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_pack.cc index 55fa0e22eb31eeccc7bb63b245534ed901d3f67e..168f79bebdaaaaca4c5a4d3d06fa4d41fcc35a8d 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_pack.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_pack.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_random_uniform.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_random_uniform.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_random_uniform.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_random_uniform.cc index db0fbba52826ebcb70196ee3ab25c199b96cea91..a8afbb7de542046a4b61a3ac176280636fe30d7e 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_random_uniform.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_random_uniform.cc @@ -15,9 +15,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/lib/random/philox_random.h" diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_range.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_range.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_range.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_range.cc index 198e95ab8833c04ed14d713b3b2368d12ccb4eae..4cb27d97ec1c92ad67efe49ccfd38ab98985a1dc 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_range.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_range.cc @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_reshape.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_reshape.cc similarity index 95% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_reshape.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_reshape.cc index ef4a896e32f0f405733751169248004d44f05ccd..9e21fa564e89d49f3932a97247288dff6f47cfc3 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_reshape.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_reshape.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_select.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_select.cc similarity index 91% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_select.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_select.cc index ab1e0bd7a076acb75b0739026edcfdc5d78230df..82b2f4ab8782d6fbbbc3574f9c753bd10de9ddbb 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_select.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_select.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_shape_or_rank.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_shape_or_rank.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_shape_or_rank.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_shape_or_rank.cc index a1756a820734d6d54d1d0527ce3ad5b7b1a8aef7..00ab85882796b850cf0ccf8442095143c35ea59d 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_shape_or_rank.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_shape_or_rank.cc @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_slice.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_slice.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_slice.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_slice.cc index 6b6465c2feb883317cc195f66bcabea37942d7f7..503807f2318c74d6396652e675eff89efb29e04e 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_slice.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_slice.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_strided_slice.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_strided_slice.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_strided_slice.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_strided_slice.cc index 83cb8bec0d6146ff399f9f4d2ffbafd964824710..0c9effee1fd364fa83f61339251e48070f503d1e 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_strided_slice.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_strided_slice.cc @@ -14,10 +14,10 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/kernels/internal/strided_slice_logic.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/kernels/internal/strided_slice_logic.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_tile.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_tile.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_tile.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_tile.cc index 685fec96191e35a39878eea97983ace279a94f42..75631304968e2115fe5a21870819f617e268bb32 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_tile.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_tile.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_transpose.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_transpose.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_transpose.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_transpose.cc index 612d03b97ed39f3c19407020893789fb8d2857c7..9514848682f54d73c4fd55f65a7b505f7ec1413a 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_transpose.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_transpose.cc @@ -14,9 +14,9 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_unary.cc b/tensorflow/lite/toco/graph_transformations/resolve_constant_unary.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_unary.cc rename to tensorflow/lite/toco/graph_transformations/resolve_constant_unary.cc index 3034c1b1eb0fcf2e3e996ac6fa9b1008720e818e..43070b063c4a426907e80f444e00da44417c0e18 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_constant_unary.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_constant_unary.cc @@ -20,10 +20,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc b/tensorflow/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc rename to tensorflow/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc index eed971c1d50293140c367f1848b5f58c5e7163d9..c0becaf7d39cdbc01217bbb9b5a6b50017cc2eaa 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_fake_quant_args_from_vars.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_gather_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_gather_attributes.cc similarity index 91% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_gather_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_gather_attributes.cc index 69209b8dec7dd0bfe552f70a426b92c6386953e8..ffad0d0d3151289e2ca2b5bffaacbe87cf089139 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_gather_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_gather_attributes.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_multiply_by_zero.cc b/tensorflow/lite/toco/graph_transformations/resolve_multiply_by_zero.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_multiply_by_zero.cc rename to tensorflow/lite/toco/graph_transformations/resolve_multiply_by_zero.cc index e5b74e2bb155a5a48531f06a96682ebc46d45ab0..51c724dd1ab058e08a3a29a5408e5d584831a3d9 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_multiply_by_zero.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_multiply_by_zero.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_pad_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_pad_attributes.cc similarity index 91% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_pad_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_pad_attributes.cc index adc87753bc71cc192eb71482bf7165b65fa417db..25b823f8483935d274ab9968f91dfc444afa3c75 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_pad_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_pad_attributes.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_padv2_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_padv2_attributes.cc similarity index 91% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_padv2_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_padv2_attributes.cc index 1f0f17a37a99c6b721daa75321fa7316f102cd83..bcc9f5363ac080b3d14f161a1db476e2105d6b93 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_padv2_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_padv2_attributes.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_reduce_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_reduce_attributes.cc similarity index 93% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_reduce_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_reduce_attributes.cc index c3246ab90fc49290181f7055cf51337c61630ff3..ea5d33009b4b602abf4de8b310c456f142737c7d 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_reduce_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_reduce_attributes.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_reorder_axes.cc b/tensorflow/lite/toco/graph_transformations/resolve_reorder_axes.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_reorder_axes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_reorder_axes.cc index ee5c4810e61326389e402b22f57622720c9fa7dd..f70e80b8e7702b8ad37ecbaf222063d9e3a5c89b 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_reorder_axes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_reorder_axes.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_reshape_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_reshape_attributes.cc similarity index 90% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_reshape_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_reshape_attributes.cc index 7b7a59264ff74f02272d02d001106e4a29d43b6e..24a3482a6fe9dd8769d94a748558dc1a9cd1eaa5 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_reshape_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_reshape_attributes.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_slice_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_slice_attributes.cc similarity index 91% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_slice_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_slice_attributes.cc index 5a838168de73821d19c4299ad289f9f50bd225f1..1f86b35c34cab2d24be861e7fa82acba234ee425 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_slice_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_slice_attributes.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_space_to_batch_nd_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_space_to_batch_nd_attributes.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_space_to_batch_nd_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_space_to_batch_nd_attributes.cc index 3804145c4f8cef7808306f565eba310aca5af811..dd1e6fccd72aa9c03697237064ba0512b87dcfa9 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_space_to_batch_nd_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_space_to_batch_nd_attributes.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_squeeze_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_squeeze_attributes.cc similarity index 86% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_squeeze_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_squeeze_attributes.cc index c601b0774e6274ecdc9b97f61c47b83306044a3e..3f2ae471a2f10aeb107bdd4c2b9cf2bb70abf88e 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_squeeze_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_squeeze_attributes.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/remove_trivial_passthrough.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/graph_transformations/remove_trivial_passthrough.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_strided_slice_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_strided_slice_attributes.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_strided_slice_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_strided_slice_attributes.cc index f54f5b42a1f4c04ef46d18de3a36b70f54978433..a62e082e836797ec2371a94690cc0534d4065c47 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_strided_slice_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_strided_slice_attributes.cc @@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_concat.cc b/tensorflow/lite/toco/graph_transformations/resolve_tensorflow_concat.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_concat.cc rename to tensorflow/lite/toco/graph_transformations/resolve_tensorflow_concat.cc index 4927ccd95d34f30e5f06261057a97bb95a7b1b8b..ce185847cd0dde476cea78d551f8568271927e3e 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_concat.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_tensorflow_concat.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_matmul.cc b/tensorflow/lite/toco/graph_transformations/resolve_tensorflow_matmul.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_matmul.cc rename to tensorflow/lite/toco/graph_transformations/resolve_tensorflow_matmul.cc index da039da546fc5d1c8455310dc03896e5de5433be..637ffda533ae1ab165630322c9b65973018e50d7 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_matmul.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_tensorflow_matmul.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_merge.cc b/tensorflow/lite/toco/graph_transformations/resolve_tensorflow_merge.cc similarity index 92% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_merge.cc rename to tensorflow/lite/toco/graph_transformations/resolve_tensorflow_merge.cc index 9beea3e937b284a5ac0a7a8fb8de02506e9554d4..9ee4e6ec6b7a73836b3886520c7c9bbb8f0559c1 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_merge.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_tensorflow_merge.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_switch.cc b/tensorflow/lite/toco/graph_transformations/resolve_tensorflow_switch.cc similarity index 96% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_switch.cc rename to tensorflow/lite/toco/graph_transformations/resolve_tensorflow_switch.cc index e215981b42262fa7a893841a367ae0711c6458f2..f26efacaaeec759d96b1657a05eaf53661f1b45b 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_tensorflow_switch.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_tensorflow_switch.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/resolve_transpose_attributes.cc b/tensorflow/lite/toco/graph_transformations/resolve_transpose_attributes.cc similarity index 91% rename from tensorflow/contrib/lite/toco/graph_transformations/resolve_transpose_attributes.cc rename to tensorflow/lite/toco/graph_transformations/resolve_transpose_attributes.cc index aa7945391c766c27d44d262472a17e24cae210fa..71c0a884da1f73f57128d84ae17302ce19aa0556 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/resolve_transpose_attributes.cc +++ b/tensorflow/lite/toco/graph_transformations/resolve_transpose_attributes.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/shuffle_fc_weights.cc b/tensorflow/lite/toco/graph_transformations/shuffle_fc_weights.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/shuffle_fc_weights.cc rename to tensorflow/lite/toco/graph_transformations/shuffle_fc_weights.cc index e9f24a29ab469587bb765068409906e31e679297..195ea70e34bf87afd8c4318c33233c8d959d945a 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/shuffle_fc_weights.cc +++ b/tensorflow/lite/toco/graph_transformations/shuffle_fc_weights.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/tests/BUILD b/tensorflow/lite/toco/graph_transformations/tests/BUILD similarity index 60% rename from tensorflow/contrib/lite/toco/graph_transformations/tests/BUILD rename to tensorflow/lite/toco/graph_transformations/tests/BUILD index 6f1be298caaf110f7ef7113bfeb930c96b0ec9de..2e9b213d0018f547740673e26f2ffe7aac010777 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/tests/BUILD +++ b/tensorflow/lite/toco/graph_transformations/tests/BUILD @@ -12,9 +12,9 @@ tf_cc_test( srcs = ["lstm_utils_test.cc"], tags = ["no_oss"], deps = [ - "//tensorflow/contrib/lite/toco:graph_transformations", - "//tensorflow/contrib/lite/toco:model", - "//tensorflow/contrib/lite/toco:tooling_util", + "//tensorflow/lite/toco:graph_transformations", + "//tensorflow/lite/toco:model", + "//tensorflow/lite/toco:tooling_util", "@com_google_googletest//:gtest_main", ], ) @@ -24,9 +24,9 @@ tf_cc_test( srcs = ["resolve_constant_concatenation_test.cc"], tags = ["no_oss"], deps = [ - "//tensorflow/contrib/lite/toco:graph_transformations", - "//tensorflow/contrib/lite/toco:model", - "//tensorflow/contrib/lite/toco:tooling_util", + "//tensorflow/lite/toco:graph_transformations", + "//tensorflow/lite/toco:model", + "//tensorflow/lite/toco:tooling_util", "@com_google_googletest//:gtest_main", ], ) @@ -36,9 +36,9 @@ tf_cc_test( srcs = ["resolve_constant_unary_test.cc"], tags = ["no_oss"], deps = [ - "//tensorflow/contrib/lite/toco:graph_transformations", - "//tensorflow/contrib/lite/toco:model", - "//tensorflow/contrib/lite/toco:tooling_util", + "//tensorflow/lite/toco:graph_transformations", + "//tensorflow/lite/toco:model", + "//tensorflow/lite/toco:tooling_util", "@com_google_absl//absl/memory", "@com_google_googletest//:gtest_main", ], diff --git a/tensorflow/contrib/lite/toco/graph_transformations/tests/lstm_utils_test.cc b/tensorflow/lite/toco/graph_transformations/tests/lstm_utils_test.cc similarity index 99% rename from tensorflow/contrib/lite/toco/graph_transformations/tests/lstm_utils_test.cc rename to tensorflow/lite/toco/graph_transformations/tests/lstm_utils_test.cc index 6aae0775d3445daf7d990bcce09d335c5f686601..bdb27e8af2e359263fa68a95b69b18508a3b5739 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/tests/lstm_utils_test.cc +++ b/tensorflow/lite/toco/graph_transformations/tests/lstm_utils_test.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/lstm_utils.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/tests/resolve_constant_concatenation_test.cc b/tensorflow/lite/toco/graph_transformations/tests/resolve_constant_concatenation_test.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/tests/resolve_constant_concatenation_test.cc rename to tensorflow/lite/toco/graph_transformations/tests/resolve_constant_concatenation_test.cc index e2a6f12481c336d85be938fead0f3173b9beeebe..00d60b79ca96f6b28b73598a07aebccc0a2b51b5 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/tests/resolve_constant_concatenation_test.cc +++ b/tensorflow/lite/toco/graph_transformations/tests/resolve_constant_concatenation_test.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/tests/resolve_constant_unary_test.cc b/tensorflow/lite/toco/graph_transformations/tests/resolve_constant_unary_test.cc similarity index 94% rename from tensorflow/contrib/lite/toco/graph_transformations/tests/resolve_constant_unary_test.cc rename to tensorflow/lite/toco/graph_transformations/tests/resolve_constant_unary_test.cc index 57d85a0435179f84239d0142c7c1c45a7f3187e2..246a13a06102161349bec24de181dd6ca0e711e4 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/tests/resolve_constant_unary_test.cc +++ b/tensorflow/lite/toco/graph_transformations/tests/resolve_constant_unary_test.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/unfuse_activation_functions.cc b/tensorflow/lite/toco/graph_transformations/unfuse_activation_functions.cc similarity index 92% rename from tensorflow/contrib/lite/toco/graph_transformations/unfuse_activation_functions.cc rename to tensorflow/lite/toco/graph_transformations/unfuse_activation_functions.cc index 4ada5c3fd072609d963cfe85c960e917720aa0cb..3e36dd5a45c720a73f8d1fcc0d2732533ba5cf31 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/unfuse_activation_functions.cc +++ b/tensorflow/lite/toco/graph_transformations/unfuse_activation_functions.cc @@ -17,10 +17,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/unpartition_embedding_lookup.cc b/tensorflow/lite/toco/graph_transformations/unpartition_embedding_lookup.cc similarity index 98% rename from tensorflow/contrib/lite/toco/graph_transformations/unpartition_embedding_lookup.cc rename to tensorflow/lite/toco/graph_transformations/unpartition_embedding_lookup.cc index e19527968d67f963ccd185f243a034a46cdc9fa7..e57f175812f4c66cf9dbb15910d117a9d27acdf9 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/unpartition_embedding_lookup.cc +++ b/tensorflow/lite/toco/graph_transformations/unpartition_embedding_lookup.cc @@ -16,9 +16,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/graph_transformations/unroll_batch_matmul.cc b/tensorflow/lite/toco/graph_transformations/unroll_batch_matmul.cc similarity index 97% rename from tensorflow/contrib/lite/toco/graph_transformations/unroll_batch_matmul.cc rename to tensorflow/lite/toco/graph_transformations/unroll_batch_matmul.cc index 5ff39aa313b27968f2988f792f7bef0697b9c7fc..d59954fc740ed91ce041948ff76a029ea294017b 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/unroll_batch_matmul.cc +++ b/tensorflow/lite/toco/graph_transformations/unroll_batch_matmul.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/import_tensorflow.cc b/tensorflow/lite/toco/import_tensorflow.cc similarity index 99% rename from tensorflow/contrib/lite/toco/import_tensorflow.cc rename to tensorflow/lite/toco/import_tensorflow.cc index c0d943039f39ca7ee99383e728bb34aebd9d1d0f..b13a08d05e2b576062f43c83a9bae1e90cd1525f 100644 --- a/tensorflow/contrib/lite/toco/import_tensorflow.cc +++ b/tensorflow/lite/toco/import_tensorflow.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/import_tensorflow.h" +#include "tensorflow/lite/toco/import_tensorflow.h" #include #include @@ -27,11 +27,11 @@ limitations under the License. #include "absl/strings/str_cat.h" #include "absl/strings/str_split.h" #include "absl/strings/strip.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.h" -#include "tensorflow/contrib/lite/toco/tensorflow_util.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.h" +#include "tensorflow/lite/toco/tensorflow_util.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/common_runtime/device_factory.h" #include "tensorflow/core/common_runtime/function.h" #include "tensorflow/core/common_runtime/process_function_library_runtime.h" diff --git a/tensorflow/contrib/lite/toco/import_tensorflow.h b/tensorflow/lite/toco/import_tensorflow.h similarity index 84% rename from tensorflow/contrib/lite/toco/import_tensorflow.h rename to tensorflow/lite/toco/import_tensorflow.h index c5ff96956a748d83027200aaa57d5cb456fac636..0362c0f35983c76e53e4c069daf62a04cd69615c 100644 --- a/tensorflow/contrib/lite/toco/import_tensorflow.h +++ b/tensorflow/lite/toco/import_tensorflow.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_IMPORT_TENSORFLOW_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_IMPORT_TENSORFLOW_H_ +#ifndef TENSORFLOW_LITE_TOCO_IMPORT_TENSORFLOW_H_ +#define TENSORFLOW_LITE_TOCO_IMPORT_TENSORFLOW_H_ #include #include -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" #include "tensorflow/core/framework/graph.pb.h" namespace toco { @@ -44,4 +44,4 @@ std::unique_ptr ImportTensorFlowGraphDef( } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_IMPORT_TENSORFLOW_H_ +#endif // TENSORFLOW_LITE_TOCO_IMPORT_TENSORFLOW_H_ diff --git a/tensorflow/contrib/lite/toco/import_tensorflow_test.cc b/tensorflow/lite/toco/import_tensorflow_test.cc similarity index 99% rename from tensorflow/contrib/lite/toco/import_tensorflow_test.cc rename to tensorflow/lite/toco/import_tensorflow_test.cc index 587148a930283d0255a8919ea6c812bb2ee1e127..3f47c3012e86046a777a549909cd383517923a3a 100644 --- a/tensorflow/contrib/lite/toco/import_tensorflow_test.cc +++ b/tensorflow/lite/toco/import_tensorflow_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/import_tensorflow.h" +#include "tensorflow/lite/toco/import_tensorflow.h" #include #include diff --git a/tensorflow/contrib/lite/toco/model.h b/tensorflow/lite/toco/model.h similarity index 99% rename from tensorflow/contrib/lite/toco/model.h rename to tensorflow/lite/toco/model.h index 716dade6c84a268fb3161da958cae9a6490dd4d7..f85e1c287879e636a56ef10bf0f75a781d252ae9 100644 --- a/tensorflow/contrib/lite/toco/model.h +++ b/tensorflow/lite/toco/model.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_MODEL_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_MODEL_H_ +#ifndef TENSORFLOW_LITE_TOCO_MODEL_H_ +#define TENSORFLOW_LITE_TOCO_MODEL_H_ #include #include @@ -24,10 +24,10 @@ limitations under the License. #include #include "absl/types/optional.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/toco_types.h" #include "tensorflow/core/platform/logging.h" namespace toco { @@ -2144,4 +2144,4 @@ class Model { }; } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_MODEL_H_ +#endif // TENSORFLOW_LITE_TOCO_MODEL_H_ diff --git a/tensorflow/contrib/lite/toco/model_cmdline_flags.cc b/tensorflow/lite/toco/model_cmdline_flags.cc similarity index 98% rename from tensorflow/contrib/lite/toco/model_cmdline_flags.cc rename to tensorflow/lite/toco/model_cmdline_flags.cc index b6a401aaf2f0028f01fd26bb0de08f19450df330..717a28bc615e0a142c41efb3afaa49f64d2a1e14 100644 --- a/tensorflow/contrib/lite/toco/model_cmdline_flags.cc +++ b/tensorflow/lite/toco/model_cmdline_flags.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/model_cmdline_flags.h" +#include "tensorflow/lite/toco/model_cmdline_flags.h" #include #include @@ -22,9 +22,9 @@ limitations under the License. #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" -#include "tensorflow/contrib/lite/toco/args.h" -#include "tensorflow/contrib/lite/toco/toco_graphviz_dump_options.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/args.h" +#include "tensorflow/lite/toco/toco_graphviz_dump_options.h" +#include "tensorflow/lite/toco/toco_port.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/util/command_line_flags.h" diff --git a/tensorflow/contrib/lite/toco/model_cmdline_flags.h b/tensorflow/lite/toco/model_cmdline_flags.h similarity index 80% rename from tensorflow/contrib/lite/toco/model_cmdline_flags.h rename to tensorflow/lite/toco/model_cmdline_flags.h index c868d5c7d0b5a6ee81d99423414c87e4e6e7cf66..1642e053199b1aa4fdd41642888a5c15e184f1eb 100644 --- a/tensorflow/contrib/lite/toco/model_cmdline_flags.h +++ b/tensorflow/lite/toco/model_cmdline_flags.h @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_MODEL_CMDLINE_FLAGS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_MODEL_CMDLINE_FLAGS_H_ +#ifndef TENSORFLOW_LITE_TOCO_MODEL_CMDLINE_FLAGS_H_ +#define TENSORFLOW_LITE_TOCO_MODEL_CMDLINE_FLAGS_H_ #include #include #include -#include "tensorflow/contrib/lite/toco/args.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/types.pb.h" +#include "tensorflow/lite/toco/args.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/types.pb.h" namespace toco { // Parse and remove arguments for models (in toco). Returns true if parsing @@ -40,4 +40,4 @@ ParsedModelFlags* GlobalParsedModelFlags(); } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_MODEL_CMDLINE_FLAGS_H_ +#endif // TENSORFLOW_LITE_TOCO_MODEL_CMDLINE_FLAGS_H_ diff --git a/tensorflow/contrib/lite/toco/model_flags.proto b/tensorflow/lite/toco/model_flags.proto similarity index 99% rename from tensorflow/contrib/lite/toco/model_flags.proto rename to tensorflow/lite/toco/model_flags.proto index 6c1c53658c073668357861907d5f01fc627e4707..bcdac295d261c0e7cc04c5a8c3e2e5d88736cd88 100644 --- a/tensorflow/contrib/lite/toco/model_flags.proto +++ b/tensorflow/lite/toco/model_flags.proto @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto2"; -import "tensorflow/contrib/lite/toco/types.proto"; +import "tensorflow/lite/toco/types.proto"; package toco; diff --git a/tensorflow/contrib/lite/toco/python/BUILD b/tensorflow/lite/toco/python/BUILD similarity index 67% rename from tensorflow/contrib/lite/toco/python/BUILD rename to tensorflow/lite/toco/python/BUILD index cf97ba7084d48e55a1874e77d3817aa721de7de9..307f397085168753d1292e8587315ace83d0f788 100644 --- a/tensorflow/contrib/lite/toco/python/BUILD +++ b/tensorflow/lite/toco/python/BUILD @@ -11,12 +11,12 @@ cc_library( srcs = ["toco_python_api.cc"], hdrs = ["toco_python_api.h"], deps = [ - "//tensorflow/contrib/lite/toco:model_flags_proto_cc", - "//tensorflow/contrib/lite/toco:toco_flags_proto_cc", - "//tensorflow/contrib/lite/toco:toco_graphviz_dump_options", - "//tensorflow/contrib/lite/toco:toco_port", - "//tensorflow/contrib/lite/toco:toco_tooling", "//tensorflow/core:lib", + "//tensorflow/lite/toco:model_flags_proto_cc", + "//tensorflow/lite/toco:toco_flags_proto_cc", + "//tensorflow/lite/toco:toco_graphviz_dump_options", + "//tensorflow/lite/toco:toco_port", + "//tensorflow/lite/toco:toco_tooling", "//third_party/python_runtime:headers", ], ) @@ -26,8 +26,8 @@ tf_py_wrap_cc( srcs = ["toco.i"], deps = [ ":toco_python_api", - "//tensorflow/contrib/lite/toco:model_flags_proto_cc", - "//tensorflow/contrib/lite/toco:toco_flags_proto_cc", + "//tensorflow/lite/toco:model_flags_proto_cc", + "//tensorflow/lite/toco:toco_flags_proto_cc", "//third_party/python_runtime:headers", "@com_google_absl//absl/strings", ], @@ -48,8 +48,8 @@ tf_py_test( srcs = ["toco_from_protos_test.py"], additional_deps = [ "//tensorflow:tensorflow_py", - "//tensorflow/contrib/lite/toco:model_flags_proto_py", - "//tensorflow/contrib/lite/toco:toco_flags_proto_py", + "//tensorflow/lite/toco:model_flags_proto_py", + "//tensorflow/lite/toco:toco_flags_proto_py", ], data = [ ":toco_from_protos", diff --git a/tensorflow/contrib/lite/toco/python/toco.i b/tensorflow/lite/toco/python/toco.i similarity index 95% rename from tensorflow/contrib/lite/toco/python/toco.i rename to tensorflow/lite/toco/python/toco.i index 0d2fbdd67b3aa59af9d5f32c4f1693fe044a7efa..c7dfdc35ab274ff6fa8c2322b6f353bceea8b11d 100644 --- a/tensorflow/contrib/lite/toco/python/toco.i +++ b/tensorflow/lite/toco/python/toco.i @@ -16,7 +16,7 @@ limitations under the License. %include "std_string.i" %{ -#include "tensorflow/contrib/lite/toco/python/toco_python_api.h" +#include "tensorflow/lite/toco/python/toco_python_api.h" %} namespace toco { diff --git a/tensorflow/contrib/lite/toco/python/toco_from_protos.py b/tensorflow/lite/toco/python/toco_from_protos.py similarity index 96% rename from tensorflow/contrib/lite/toco/python/toco_from_protos.py rename to tensorflow/lite/toco/python/toco_from_protos.py index c0b032083b2347424b9fd85ab2440e18c0f68e91..152dd241eabba3397f4bed5edc5d2650f40366b1 100644 --- a/tensorflow/contrib/lite/toco/python/toco_from_protos.py +++ b/tensorflow/lite/toco/python/toco_from_protos.py @@ -19,7 +19,7 @@ from __future__ import print_function import argparse import sys -from tensorflow.contrib.lite.toco.python import tensorflow_wrap_toco +from tensorflow.lite.toco.python import tensorflow_wrap_toco from tensorflow.python.platform import app FLAGS = None diff --git a/tensorflow/contrib/lite/toco/python/toco_from_protos_test.py b/tensorflow/lite/toco/python/toco_from_protos_test.py similarity index 95% rename from tensorflow/contrib/lite/toco/python/toco_from_protos_test.py rename to tensorflow/lite/toco/python/toco_from_protos_test.py index 75c1c8970c9cd552ab86bfe4743634c598e19127..34cfd2c59fdc3aa3c83728f622fbf5b8d02d7e00 100644 --- a/tensorflow/contrib/lite/toco/python/toco_from_protos_test.py +++ b/tensorflow/lite/toco/python/toco_from_protos_test.py @@ -20,9 +20,9 @@ import os import tempfile import tensorflow as tf -from tensorflow.contrib.lite.toco import model_flags_pb2 -from tensorflow.contrib.lite.toco import toco_flags_pb2 -from tensorflow.contrib.lite.toco import types_pb2 +from tensorflow.lite.toco import model_flags_pb2 +from tensorflow.lite.toco import toco_flags_pb2 +from tensorflow.lite.toco import types_pb2 from tensorflow.python.platform import googletest from tensorflow.python.platform import resource_loader diff --git a/tensorflow/contrib/lite/toco/python/toco_python_api.cc b/tensorflow/lite/toco/python/toco_python_api.cc similarity index 90% rename from tensorflow/contrib/lite/toco/python/toco_python_api.cc rename to tensorflow/lite/toco/python/toco_python_api.cc index 302b7f9bd4037bb668b092c05aa49291385b0d4e..ce8e3c9df88ba511fcca9d9a256896624194463b 100644 --- a/tensorflow/contrib/lite/toco/python/toco_python_api.cc +++ b/tensorflow/lite/toco/python/toco_python_api.cc @@ -16,13 +16,13 @@ limitations under the License. #include #include "tensorflow/core/platform/logging.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/python/toco_python_api.h" -#include "tensorflow/contrib/lite/toco/toco_flags.pb.h" -#include "tensorflow/contrib/lite/toco/toco_graphviz_dump_options.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/toco_tooling.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/python/toco_python_api.h" +#include "tensorflow/lite/toco/toco_flags.pb.h" +#include "tensorflow/lite/toco/toco_graphviz_dump_options.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/toco_tooling.h" +#include "tensorflow/lite/toco/toco_types.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/python/toco_python_api.h b/tensorflow/lite/toco/python/toco_python_api.h similarity index 88% rename from tensorflow/contrib/lite/toco/python/toco_python_api.h rename to tensorflow/lite/toco/python/toco_python_api.h index ee054bbed9823d532bcb1f946ba0816cda95e5ea..4ab0961e1276e47ffcdc21f6c45611405c7a6f68 100644 --- a/tensorflow/contrib/lite/toco/python/toco_python_api.h +++ b/tensorflow/lite/toco/python/toco_python_api.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_PYTHON_TOCO_PYTHON_API_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_PYTHON_TOCO_PYTHON_API_H_ +#ifndef TENSORFLOW_LITE_TOCO_PYTHON_TOCO_PYTHON_API_H_ +#define TENSORFLOW_LITE_TOCO_PYTHON_TOCO_PYTHON_API_H_ #include #include @@ -33,4 +33,4 @@ PyObject* TocoConvert(PyObject* model_flags_proto_txt_raw, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_PYTHON_TOCO_PYTHON_API_H_ +#endif // TENSORFLOW_LITE_TOCO_PYTHON_TOCO_PYTHON_API_H_ diff --git a/tensorflow/contrib/lite/toco/runtime/common.h b/tensorflow/lite/toco/runtime/common.h similarity index 78% rename from tensorflow/contrib/lite/toco/runtime/common.h rename to tensorflow/lite/toco/runtime/common.h index 3c6828840c4a963a4a68774ec5d559b7f80baf22..1f83be8fa81e0f015b51f7e56b78647e3fbef7ea 100644 --- a/tensorflow/contrib/lite/toco/runtime/common.h +++ b/tensorflow/lite/toco/runtime/common.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_RUNTIME_COMMON_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_RUNTIME_COMMON_H_ +#ifndef TENSORFLOW_LITE_TOCO_RUNTIME_COMMON_H_ +#define TENSORFLOW_LITE_TOCO_RUNTIME_COMMON_H_ #ifndef ALLOW_SLOW_GENERIC_DEPTHWISECONV_FALLBACK #ifdef GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK @@ -21,6 +21,6 @@ limitations under the License. #endif #endif -#include "tensorflow/contrib/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/common.h" -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_RUNTIME_COMMON_H_ +#endif // TENSORFLOW_LITE_TOCO_RUNTIME_COMMON_H_ diff --git a/tensorflow/contrib/lite/toco/runtime/types.h b/tensorflow/lite/toco/runtime/types.h similarity index 72% rename from tensorflow/contrib/lite/toco/runtime/types.h rename to tensorflow/lite/toco/runtime/types.h index 207f2c1706ef4cc12572e381c38f61a504ece232..eac9b8af6e6c786a45b0267158bf88f1a3515ae9 100644 --- a/tensorflow/contrib/lite/toco/runtime/types.h +++ b/tensorflow/lite/toco/runtime/types.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_RUNTIME_TYPES_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_RUNTIME_TYPES_H_ +#ifndef TENSORFLOW_LITE_TOCO_RUNTIME_TYPES_H_ +#define TENSORFLOW_LITE_TOCO_RUNTIME_TYPES_H_ -#include "tensorflow/contrib/lite/kernels/internal/common.h" -#include "tensorflow/contrib/lite/kernels/internal/compatibility.h" -#include "tensorflow/contrib/lite/kernels/internal/types.h" +#include "tensorflow/lite/kernels/internal/common.h" +#include "tensorflow/lite/kernels/internal/compatibility.h" +#include "tensorflow/lite/kernels/internal/types.h" namespace toco { @@ -30,4 +30,4 @@ using tflite::RequiredBufferSizeForDims; } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_RUNTIME_TYPES_H_ +#endif // TENSORFLOW_LITE_TOCO_RUNTIME_TYPES_H_ diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/BUILD b/tensorflow/lite/toco/tensorflow_graph_matching/BUILD similarity index 80% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/BUILD rename to tensorflow/lite/toco/tensorflow_graph_matching/BUILD index ea1fc2827ead7e7442bbf7f569e3ea88c3b0de57..56acc284cc06d6bb8a277adb15aacfee5b1e781c 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/BUILD +++ b/tensorflow/lite/toco/tensorflow_graph_matching/BUILD @@ -16,7 +16,7 @@ cc_library( "cluster_utils.h", ], deps = [ - "//tensorflow/contrib/lite/toco:toco_port", + "//tensorflow/lite/toco:toco_port", ], ) @@ -30,9 +30,9 @@ cc_library( ], deps = [ ":cluster_utils", - "//tensorflow/contrib/lite/toco:model", - "//tensorflow/contrib/lite/toco:tooling_util", "//tensorflow/core:protos_all_cc", + "//tensorflow/lite/toco:model", + "//tensorflow/lite/toco:tooling_util", ], ) @@ -48,11 +48,11 @@ cc_library( deps = [ ":cluster", ":cluster_utils", - "//tensorflow/contrib/lite/toco:model", - "//tensorflow/contrib/lite/toco:toco_port", - "//tensorflow/contrib/lite/toco:tooling_util", "//tensorflow/core:lib", "//tensorflow/core:protos_all_cc", + "//tensorflow/lite/toco:model", + "//tensorflow/lite/toco:toco_port", + "//tensorflow/lite/toco:tooling_util", "@protobuf_archive//:protobuf_headers", ], ) @@ -85,7 +85,7 @@ cc_library( ":cluster", ":cluster_utils", ":resolve_svdf", - "//tensorflow/contrib/lite/toco:tooling_util", "//tensorflow/core:protos_all_cc", + "//tensorflow/lite/toco:tooling_util", ], ) diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.cc b/tensorflow/lite/toco/tensorflow_graph_matching/cluster.cc similarity index 95% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.cc rename to tensorflow/lite/toco/tensorflow_graph_matching/cluster.cc index 98a130ea39c45c2c8259c87779532a312433c5a7..afce05dc7a932f3c6c9dd5f1619d9708adf5238b 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.cc +++ b/tensorflow/lite/toco/tensorflow_graph_matching/cluster.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h b/tensorflow/lite/toco/tensorflow_graph_matching/cluster.h similarity index 89% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h rename to tensorflow/lite/toco/tensorflow_graph_matching/cluster.h index fda7743a27e79478d54b3708ba85c9b6390d0b0e..af268ddd3703f3e0526db3a75dd03204dfeac6d0 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h +++ b/tensorflow/lite/toco/tensorflow_graph_matching/cluster.h @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_H_ +#ifndef TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_H_ +#define TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_H_ #include #include -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/node_def.pb.h" @@ -98,4 +98,4 @@ class ClusterFactoryInterface { } // end namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_H_ +#endif // TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_H_ diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.cc b/tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.cc similarity index 95% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.cc rename to tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.cc index 14c3cd6487841d6d79b583d9245c130585324d9d..8a010ef8208ee9c6e21af974640ca75ba41be0b0 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.cc +++ b/tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/toco_types.h" namespace toco { bool StrContains(const string& x, const string& search_pattern) { diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.h b/tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.h similarity index 82% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.h rename to tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.h index b57bded305ffbbcb91de880ebac081dcb4e7db82..9b9c4fc20862c0dd2549cbd143477ac6fed915ba 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.h +++ b/tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_UTILS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_UTILS_H_ +#ifndef TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_UTILS_H_ +#define TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_UTILS_H_ #include @@ -30,4 +30,4 @@ void Transpose2DTensor(const float* tensor, int row, int col, } // end namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_UTILS_H_ +#endif // TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_CLUSTER_UTILS_H_ diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.cc b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.cc similarity index 93% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.cc rename to tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.cc index 5e421ba944cccd9746c66bc33e986b4406dd3bf5..7a1875120788a549f6a56ac5ae4fce3eaa0480b2 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.cc +++ b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.cc @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.h" #include #include #include -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/function.pb.h" #include "tensorflow/core/framework/graph.pb.h" diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.h b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.h similarity index 86% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.h rename to tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.h index 3334552afb1becdba7bb980a2a362489c6b3fdaf..d7afcced7b7ac536e00e857b31c89c02d98987b6 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.h +++ b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.h @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_CLUSTER_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_CLUSTER_H_ +#ifndef TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_CLUSTER_H_ +#define TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_CLUSTER_H_ #include #include #include -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.h" #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/node_def.pb.h" @@ -60,4 +60,4 @@ std::unique_ptr MaybeReplaceCompositeSubgraph( } // end namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_CLUSTER_H_ +#endif // TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_CLUSTER_H_ diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.cc b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.cc similarity index 96% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.cc rename to tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.cc index d6a099817c7b88c7dcd9c3e4e8b131c2a25cffcd..fcd9ee45d984f05eabf5d51c223b45433e801308 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.cc +++ b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.h" #include #include @@ -22,11 +22,11 @@ limitations under the License. #include #include "google/protobuf/map.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/graph.pb.h" diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.h b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.h similarity index 85% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.h rename to tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.h index 383fd99dff225c65c5094e7bc7a61c77cc17aa38..649cadfa066f941af7c88c2d8956c72e6cca9d23 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.h +++ b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.h @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_SVDF_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_SVDF_H_ +#ifndef TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_SVDF_H_ +#define TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_SVDF_H_ #include #include -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/node_def.pb.h" @@ -79,4 +79,4 @@ class SvdfClusterFactory : public ClusterFactoryInterface { } // end namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_SVDF_H_ +#endif // TENSORFLOW_LITE_TOCO_TENSORFLOW_GRAPH_MATCHING_RESOLVE_SVDF_H_ diff --git a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf_test.cc b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf_test.cc similarity index 96% rename from tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf_test.cc rename to tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf_test.cc index 646d048496c27955aa641fd01a35d8acfbd8dd90..f66b59ccce663fc791ef593e8d2a71443811294f 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf_test.cc +++ b/tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_svdf.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/resolve_svdf.h" #include #include @@ -20,9 +20,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/cluster_utils.h" -#include "tensorflow/contrib/lite/toco/tensorflow_graph_matching/resolve_cluster.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/cluster_utils.h" +#include "tensorflow/lite/toco/tensorflow_graph_matching/resolve_cluster.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/node_def.pb.h" diff --git a/tensorflow/contrib/lite/toco/tensorflow_util.cc b/tensorflow/lite/toco/tensorflow_util.cc similarity index 97% rename from tensorflow/contrib/lite/toco/tensorflow_util.cc rename to tensorflow/lite/toco/tensorflow_util.cc index 0e7e9c41a066581b14fe1b78f83d8d57b916be6c..db9388b040c4e922774fa0780a0a0799e5c1361a 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_util.cc +++ b/tensorflow/lite/toco/tensorflow_util.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tensorflow_util.h" +#include "tensorflow/lite/toco/tensorflow_util.h" #include #include @@ -24,8 +24,8 @@ limitations under the License. #include "google/protobuf/map.h" #include "absl/strings/str_split.h" #include "absl/strings/string_view.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/framework/tensor.pb.h" diff --git a/tensorflow/contrib/lite/toco/tensorflow_util.h b/tensorflow/lite/toco/tensorflow_util.h similarity index 81% rename from tensorflow/contrib/lite/toco/tensorflow_util.h rename to tensorflow/lite/toco/tensorflow_util.h index 61f91042685288a48ba19f8c67d4c7c1960a7787..010fbe88b21790cba742645bcbefb28da26f0cf6 100644 --- a/tensorflow/contrib/lite/toco/tensorflow_util.h +++ b/tensorflow/lite/toco/tensorflow_util.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_UTIL_H_ +#ifndef TENSORFLOW_LITE_TOCO_TENSORFLOW_UTIL_H_ +#define TENSORFLOW_LITE_TOCO_TENSORFLOW_UTIL_H_ #include #include -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/toco/model.h" #include "tensorflow/core/framework/graph.pb.h" #include "tensorflow/core/framework/tensor_shape.pb.h" @@ -29,4 +29,4 @@ void LogDumpGraphDef(int log_level, const string& message, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TENSORFLOW_UTIL_H_ +#endif // TENSORFLOW_LITE_TOCO_TENSORFLOW_UTIL_H_ diff --git a/tensorflow/contrib/lite/toco/tflite/BUILD b/tensorflow/lite/toco/tflite/BUILD similarity index 68% rename from tensorflow/contrib/lite/toco/tflite/BUILD rename to tensorflow/lite/toco/tflite/BUILD index e97bedd2036bb06624eab48e92c5d66988ecc264..99c4f8edebe5186400253d01689520230594b885 100644 --- a/tensorflow/contrib/lite/toco/tflite/BUILD +++ b/tensorflow/lite/toco/tflite/BUILD @@ -25,12 +25,12 @@ cc_library( ], deps = [ ":types", - "//tensorflow/contrib/lite/schema:schema_fbs", - "//tensorflow/contrib/lite/toco:graph_transformations", - "//tensorflow/contrib/lite/toco:model", "//tensorflow/core:framework", "//tensorflow/core:protos_all_cc", "//tensorflow/core:ptr_util", + "//tensorflow/lite/schema:schema_fbs", + "//tensorflow/lite/toco:graph_transformations", + "//tensorflow/lite/toco:model", "@com_google_absl//absl/memory", "@flatbuffers", ], @@ -44,9 +44,9 @@ tf_cc_test( tags = ["no_oss"], deps = [ ":operator", - "//tensorflow/contrib/lite/toco:tooling_util", "//tensorflow/core:ops", "//tensorflow/core:protos_all_cc", + "//tensorflow/lite/toco:tooling_util", "@com_google_googletest//:gtest_main", "@flatbuffers", ], @@ -61,9 +61,9 @@ cc_library( "types.h", ], deps = [ - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/schema:schema_fbs", - "//tensorflow/contrib/lite/toco:model", + "//tensorflow/lite:string_util", + "//tensorflow/lite/schema:schema_fbs", + "//tensorflow/lite/toco:model", ], ) @@ -92,11 +92,11 @@ cc_library( deps = [ ":operator", ":types", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite/schema:schema_fbs", - "//tensorflow/contrib/lite/toco:model", - "//tensorflow/contrib/lite/toco:tooling_util", - "//tensorflow/contrib/lite/tools/optimize:quantize_weights", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/schema:schema_fbs", + "//tensorflow/lite/toco:model", + "//tensorflow/lite/toco:tooling_util", + "//tensorflow/lite/tools/optimize:quantize_weights", "@com_google_absl//absl/strings", "@flatbuffers", ], @@ -110,8 +110,8 @@ tf_cc_test( tags = ["no_oss"], deps = [ ":export", - "//tensorflow/contrib/lite/schema:schema_fbs", "//tensorflow/core:ops", + "//tensorflow/lite/schema:schema_fbs", "@com_google_googletest//:gtest_main", ], ) @@ -128,11 +128,11 @@ cc_library( deps = [ ":operator", ":types", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/schema:schema_fbs", - "//tensorflow/contrib/lite/toco:model", - "//tensorflow/contrib/lite/toco:tooling_util", - "//tensorflow/contrib/lite/tools:verifier", + "//tensorflow/lite:framework", + "//tensorflow/lite/schema:schema_fbs", + "//tensorflow/lite/toco:model", + "//tensorflow/lite/toco:tooling_util", + "//tensorflow/lite/tools:verifier", "@flatbuffers", ], ) @@ -145,9 +145,9 @@ tf_cc_test( tags = ["no_oss"], deps = [ ":import", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite/schema:schema_fbs", "//tensorflow/core:ops", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/schema:schema_fbs", "@com_google_googletest//:gtest_main", "@flatbuffers", ], diff --git a/tensorflow/contrib/lite/toco/tflite/builtin_operator.h b/tensorflow/lite/toco/tflite/builtin_operator.h similarity index 90% rename from tensorflow/contrib/lite/toco/tflite/builtin_operator.h rename to tensorflow/lite/toco/tflite/builtin_operator.h index cfe7ecd9f982618dea3b3a5d02e69e3f15434bc2..ea012ff6e706ae0e546d93a1fd9c5cf085e25262 100644 --- a/tensorflow/contrib/lite/toco/tflite/builtin_operator.h +++ b/tensorflow/lite/toco/tflite/builtin_operator.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_BUILTIN_OPERATOR_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_BUILTIN_OPERATOR_H_ +#ifndef TENSORFLOW_LITE_TOCO_TFLITE_BUILTIN_OPERATOR_H_ +#define TENSORFLOW_LITE_TOCO_TFLITE_BUILTIN_OPERATOR_H_ #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/toco/tflite/operator.h" +#include "tensorflow/lite/toco/tflite/operator.h" namespace toco { @@ -71,4 +71,4 @@ class BuiltinOperator : public BaseOperator { } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_BUILTIN_OPERATOR_H_ +#endif // TENSORFLOW_LITE_TOCO_TFLITE_BUILTIN_OPERATOR_H_ diff --git a/tensorflow/contrib/lite/toco/tflite/custom_operator.h b/tensorflow/lite/toco/tflite/custom_operator.h similarity index 90% rename from tensorflow/contrib/lite/toco/tflite/custom_operator.h rename to tensorflow/lite/toco/tflite/custom_operator.h index bd5713618ff379be42fd1b76649cfb2cf55b843d..2ca740bb90d5ad51768637c19542068b14876ede 100644 --- a/tensorflow/contrib/lite/toco/tflite/custom_operator.h +++ b/tensorflow/lite/toco/tflite/custom_operator.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_CUSTOM_OPERATOR_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_CUSTOM_OPERATOR_H_ +#ifndef TENSORFLOW_LITE_TOCO_TFLITE_CUSTOM_OPERATOR_H_ +#define TENSORFLOW_LITE_TOCO_TFLITE_CUSTOM_OPERATOR_H_ #include "flatbuffers/flexbuffers.h" #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/toco/tflite/operator.h" +#include "tensorflow/lite/toco/tflite/operator.h" namespace toco { @@ -71,4 +71,4 @@ class CustomOperator : public BaseOperator { } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_CUSTOM_OPERATOR_H_ +#endif // TENSORFLOW_LITE_TOCO_TFLITE_CUSTOM_OPERATOR_H_ diff --git a/tensorflow/contrib/lite/toco/tflite/export.cc b/tensorflow/lite/toco/tflite/export.cc similarity index 97% rename from tensorflow/contrib/lite/toco/tflite/export.cc rename to tensorflow/lite/toco/tflite/export.cc index 30efd67f8c21306c74d3d018185e3d944528762a..13630bea54e831e3df0e97b4ba8aa772d4b47b58 100644 --- a/tensorflow/contrib/lite/toco/tflite/export.cc +++ b/tensorflow/lite/toco/tflite/export.cc @@ -12,17 +12,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/export.h" +#include "tensorflow/lite/toco/tflite/export.h" #include "flatbuffers/flexbuffers.h" #include "absl/strings/str_join.h" -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/toco/tflite/operator.h" -#include "tensorflow/contrib/lite/toco/tflite/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" -#include "tensorflow/contrib/lite/tools/optimize/quantize_weights.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/toco/tflite/operator.h" +#include "tensorflow/lite/toco/tflite/types.h" +#include "tensorflow/lite/toco/tooling_util.h" +#include "tensorflow/lite/tools/optimize/quantize_weights.h" +#include "tensorflow/lite/version.h" namespace toco { @@ -494,7 +494,7 @@ tensorflow::Status Export( "TensorFlow. If you have a custom " "implementation for them you can disable this error with " "--allow_custom_ops, or by setting allow_custom_ops=True " - "when calling tf.contrib.lite.TFLiteConverter(). Here is a list " + "when calling tf.lite.TFLiteConverter(). Here is a list " "of builtin operators you are using: ", absl::StrJoin(builtin_ops, ", "), ". Here is a list " @@ -508,10 +508,10 @@ tensorflow::Status Export( "TensorFlow operators, you might be able to use the extended " "runtime by passing --allow_flex_ops, or by setting " "target_ops=TFLITE_BUILTINS,SELECT_TF_OPS when calling " - "tf.contrib.lite.TFLiteConverter(). Otherwise, if you have a " + "tf.lite.TFLiteConverter(). Otherwise, if you have a " "custom implementation for them you can disable this error with " "--allow_custom_ops, or by setting allow_custom_ops=True " - "when calling tf.contrib.lite.TFLiteConverter(). Here is a list " + "when calling tf.lite.TFLiteConverter(). Here is a list " "of builtin operators you are using: ", absl::StrJoin(builtin_ops, ", "), ". Here is a list " diff --git a/tensorflow/contrib/lite/toco/tflite/export.h b/tensorflow/lite/toco/tflite/export.h similarity index 95% rename from tensorflow/contrib/lite/toco/tflite/export.h rename to tensorflow/lite/toco/tflite/export.h index 0a43e01c2e5a7ff3fd953eabf03b12b985bdb57e..4dd76daf8d9d8649e43fdf16d17b1a2059ce54f9 100644 --- a/tensorflow/contrib/lite/toco/tflite/export.h +++ b/tensorflow/lite/toco/tflite/export.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_EXPORT_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_EXPORT_H_ +#ifndef TENSORFLOW_LITE_TOCO_TFLITE_EXPORT_H_ +#define TENSORFLOW_LITE_TOCO_TFLITE_EXPORT_H_ -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tflite/operator.h" -#include "tensorflow/contrib/lite/util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tflite/operator.h" +#include "tensorflow/lite/util.h" namespace toco { @@ -171,4 +171,4 @@ void LoadOperatorsMap( } // namespace tflite } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_EXPORT_H_ +#endif // TENSORFLOW_LITE_TOCO_TFLITE_EXPORT_H_ diff --git a/tensorflow/contrib/lite/toco/tflite/export_test.cc b/tensorflow/lite/toco/tflite/export_test.cc similarity index 98% rename from tensorflow/contrib/lite/toco/tflite/export_test.cc rename to tensorflow/lite/toco/tflite/export_test.cc index f574874064458c223ccce535f2056bcb400492c6..2787cd07cfed537f60cfb8b15e1910532d36b229 100644 --- a/tensorflow/contrib/lite/toco/tflite/export_test.cc +++ b/tensorflow/lite/toco/tflite/export_test.cc @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/export.h" +#include "tensorflow/lite/toco/tflite/export.h" #include #include -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/toco/tflite/builtin_operator.h" -#include "tensorflow/contrib/lite/toco/tflite/operator.h" -#include "tensorflow/contrib/lite/toco/tflite/types.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/toco/tflite/builtin_operator.h" +#include "tensorflow/lite/toco/tflite/operator.h" +#include "tensorflow/lite/toco/tflite/types.h" #include "tensorflow/core/framework/node_def.pb.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/tflite/import.cc b/tensorflow/lite/toco/tflite/import.cc similarity index 95% rename from tensorflow/contrib/lite/toco/tflite/import.cc rename to tensorflow/lite/toco/tflite/import.cc index 1dd4915b31413e5afb04b45ee7c4893a2eded66d..88028aa144f2dcf090153252157a1b9b46e13279 100644 --- a/tensorflow/contrib/lite/toco/tflite/import.cc +++ b/tensorflow/lite/toco/tflite/import.cc @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/import.h" +#include "tensorflow/lite/toco/tflite/import.h" #include "flatbuffers/flexbuffers.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/toco/tflite/operator.h" -#include "tensorflow/contrib/lite/toco/tflite/types.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" -#include "tensorflow/contrib/lite/tools/verifier.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/toco/tflite/operator.h" +#include "tensorflow/lite/toco/tflite/types.h" +#include "tensorflow/lite/toco/tooling_util.h" +#include "tensorflow/lite/tools/verifier.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/tflite/import.h b/tensorflow/lite/toco/tflite/import.h similarity index 84% rename from tensorflow/contrib/lite/toco/tflite/import.h rename to tensorflow/lite/toco/tflite/import.h index 280677bae189fa345c2e19f6399a7b9ac7629ab5..f5de3b53b5bc24c327caac11b360c237cd766907 100644 --- a/tensorflow/contrib/lite/toco/tflite/import.h +++ b/tensorflow/lite/toco/tflite/import.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_IMPORT_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_IMPORT_H_ +#ifndef TENSORFLOW_LITE_TOCO_TFLITE_IMPORT_H_ +#define TENSORFLOW_LITE_TOCO_TFLITE_IMPORT_H_ -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/toco/model.h" namespace toco { @@ -46,4 +46,4 @@ void LoadOperatorsTable(const ::tflite::Model &input_model, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_IMPORT_H_ +#endif // TENSORFLOW_LITE_TOCO_TFLITE_IMPORT_H_ diff --git a/tensorflow/contrib/lite/toco/tflite/import_test.cc b/tensorflow/lite/toco/tflite/import_test.cc similarity index 98% rename from tensorflow/contrib/lite/toco/tflite/import_test.cc rename to tensorflow/lite/toco/tflite/import_test.cc index edd22f783f03b1fbd34039cd7b00f08d34ca9fc6..93ab5141abe81c4ed4c1ff0ac7ca5e89577c71fb 100644 --- a/tensorflow/contrib/lite/toco/tflite/import_test.cc +++ b/tensorflow/lite/toco/tflite/import_test.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/import.h" +#include "tensorflow/lite/toco/tflite/import.h" #include "flatbuffers/flexbuffers.h" #include #include -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/version.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/tflite/operator.cc b/tensorflow/lite/toco/tflite/operator.cc similarity index 99% rename from tensorflow/contrib/lite/toco/tflite/operator.cc rename to tensorflow/lite/toco/tflite/operator.cc index 0f4ea5cd214517c870281cc2bc2488d95c70a1d6..4f53ba9bf915e111ea42011af62ae4a8b6cc4bca 100644 --- a/tensorflow/contrib/lite/toco/tflite/operator.cc +++ b/tensorflow/lite/toco/tflite/operator.cc @@ -12,16 +12,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/operator.h" +#include "tensorflow/lite/toco/tflite/operator.h" // TODO(ycling): Consider refactoring to extract the LSTM definition out of // graph_transformation module. -#include "tensorflow/contrib/lite/toco/graph_transformations/lstm_utils.h" -#include "tensorflow/contrib/lite/toco/tflite/builtin_operator.h" -#include "tensorflow/contrib/lite/toco/tflite/custom_operator.h" -#include "tensorflow/contrib/lite/toco/tflite/simple_operator.h" -#include "tensorflow/contrib/lite/toco/tflite/types.h" -#include "tensorflow/contrib/lite/toco/tflite/whitelisted_flex_ops.h" +#include "tensorflow/lite/toco/graph_transformations/lstm_utils.h" +#include "tensorflow/lite/toco/tflite/builtin_operator.h" +#include "tensorflow/lite/toco/tflite/custom_operator.h" +#include "tensorflow/lite/toco/tflite/simple_operator.h" +#include "tensorflow/lite/toco/tflite/types.h" +#include "tensorflow/lite/toco/tflite/whitelisted_flex_ops.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/framework/op.h" diff --git a/tensorflow/contrib/lite/toco/tflite/operator.h b/tensorflow/lite/toco/tflite/operator.h similarity index 94% rename from tensorflow/contrib/lite/toco/tflite/operator.h rename to tensorflow/lite/toco/tflite/operator.h index 6e2a41bf53ad23185af7793e0bb87d9690b03f63..43f533cd47cf01689bb12926335a84ab3253ef45 100644 --- a/tensorflow/contrib/lite/toco/tflite/operator.h +++ b/tensorflow/lite/toco/tflite/operator.h @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_OPERATOR_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_OPERATOR_H_ +#ifndef TENSORFLOW_LITE_TOCO_TFLITE_OPERATOR_H_ +#define TENSORFLOW_LITE_TOCO_TFLITE_OPERATOR_H_ #include "flatbuffers/flatbuffers.h" #include "flatbuffers/flexbuffers.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/toco/model.h" namespace toco { @@ -122,4 +122,4 @@ bool ShouldExportAsFlexOp(bool allow_flex_ops, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_OPERATOR_H_ +#endif // TENSORFLOW_LITE_TOCO_TFLITE_OPERATOR_H_ diff --git a/tensorflow/contrib/lite/toco/tflite/operator_test.cc b/tensorflow/lite/toco/tflite/operator_test.cc similarity index 99% rename from tensorflow/contrib/lite/toco/tflite/operator_test.cc rename to tensorflow/lite/toco/tflite/operator_test.cc index 37a0ad2d1dff15cb643a6e9646cd100b11043d1b..8a776cbf0be57d906408afcd7d7d7a687a0d4c17 100644 --- a/tensorflow/contrib/lite/toco/tflite/operator_test.cc +++ b/tensorflow/lite/toco/tflite/operator_test.cc @@ -12,13 +12,13 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/operator.h" +#include "tensorflow/lite/toco/tflite/operator.h" #include "flatbuffers/flexbuffers.h" #include #include -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/node_def.pb.h" diff --git a/tensorflow/contrib/lite/toco/tflite/simple_operator.h b/tensorflow/lite/toco/tflite/simple_operator.h similarity index 86% rename from tensorflow/contrib/lite/toco/tflite/simple_operator.h rename to tensorflow/lite/toco/tflite/simple_operator.h index a7f7e886f61d3bbf221c0ab7a24d6c3e629ec274..e3e4c8551e931ff54f72c130cf1908ffa5e79514 100644 --- a/tensorflow/contrib/lite/toco/tflite/simple_operator.h +++ b/tensorflow/lite/toco/tflite/simple_operator.h @@ -12,10 +12,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_SIMPLE_OPERATOR_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_SIMPLE_OPERATOR_H_ +#ifndef TENSORFLOW_LITE_TOCO_TFLITE_SIMPLE_OPERATOR_H_ +#define TENSORFLOW_LITE_TOCO_TFLITE_SIMPLE_OPERATOR_H_ -#include "tensorflow/contrib/lite/toco/tflite/operator.h" +#include "tensorflow/lite/toco/tflite/operator.h" namespace toco { @@ -49,4 +49,4 @@ class SimpleOperator : public BaseOperator { } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_SIMPLE_OPERATOR_H_ +#endif // TENSORFLOW_LITE_TOCO_TFLITE_SIMPLE_OPERATOR_H_ diff --git a/tensorflow/contrib/lite/toco/tflite/types.cc b/tensorflow/lite/toco/tflite/types.cc similarity index 98% rename from tensorflow/contrib/lite/toco/tflite/types.cc rename to tensorflow/lite/toco/tflite/types.cc index 754f0b4b8c661355c99d9e5a86f2d7844414a303..f878dafc1ed3c85197e6b161290ab4da548090f5 100644 --- a/tensorflow/contrib/lite/toco/tflite/types.cc +++ b/tensorflow/lite/toco/tflite/types.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/types.h" -#include "tensorflow/contrib/lite/string_util.h" +#include "tensorflow/lite/toco/tflite/types.h" +#include "tensorflow/lite/string_util.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/tflite/types.h b/tensorflow/lite/toco/tflite/types.h similarity index 87% rename from tensorflow/contrib/lite/toco/tflite/types.h rename to tensorflow/lite/toco/tflite/types.h index 3923756fc94e3175a6505740a96cce8d614c3990..bc2edb742974262257dfb21f24bf9900baeb495c 100644 --- a/tensorflow/contrib/lite/toco/tflite/types.h +++ b/tensorflow/lite/toco/tflite/types.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_TYPES_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_TYPES_H_ +#ifndef TENSORFLOW_LITE_TOCO_TFLITE_TYPES_H_ +#define TENSORFLOW_LITE_TOCO_TFLITE_TYPES_H_ -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/toco/model.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/toco/model.h" namespace toco { @@ -55,4 +55,4 @@ struct ActivationFunction { } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_TYPES_H_ +#endif // TENSORFLOW_LITE_TOCO_TFLITE_TYPES_H_ diff --git a/tensorflow/contrib/lite/toco/tflite/types_test.cc b/tensorflow/lite/toco/tflite/types_test.cc similarity index 99% rename from tensorflow/contrib/lite/toco/tflite/types_test.cc rename to tensorflow/lite/toco/tflite/types_test.cc index 8e9f30ba3a6e6b98fa9c4237567b0797a5a797aa..efa2911b5b8c25920e8f12c06d370711b4790d7e 100644 --- a/tensorflow/contrib/lite/toco/tflite/types_test.cc +++ b/tensorflow/lite/toco/tflite/types_test.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/types.h" +#include "tensorflow/lite/toco/tflite/types.h" #include diff --git a/tensorflow/contrib/lite/toco/tflite/whitelisted_flex_ops.cc b/tensorflow/lite/toco/tflite/whitelisted_flex_ops.cc similarity index 99% rename from tensorflow/contrib/lite/toco/tflite/whitelisted_flex_ops.cc rename to tensorflow/lite/toco/tflite/whitelisted_flex_ops.cc index d605a006becc60e4c373e8dcb8f4c48056aa77cb..221e9b8e34e2b86f7c7610796022864d4153f2ab 100644 --- a/tensorflow/contrib/lite/toco/tflite/whitelisted_flex_ops.cc +++ b/tensorflow/lite/toco/tflite/whitelisted_flex_ops.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tflite/whitelisted_flex_ops.h" +#include "tensorflow/lite/toco/tflite/whitelisted_flex_ops.h" #include diff --git a/tensorflow/contrib/lite/toco/tflite/whitelisted_flex_ops.h b/tensorflow/lite/toco/tflite/whitelisted_flex_ops.h similarity index 86% rename from tensorflow/contrib/lite/toco/tflite/whitelisted_flex_ops.h rename to tensorflow/lite/toco/tflite/whitelisted_flex_ops.h index ed2435fbe0bb366cb6b14ab7d303d5ae8a7cb369..2559a7052852cad01cba57002f09b09ca6103dfd 100644 --- a/tensorflow/contrib/lite/toco/tflite/whitelisted_flex_ops.h +++ b/tensorflow/lite/toco/tflite/whitelisted_flex_ops.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_WHITELISTED_FLEX_OPS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_WHITELISTED_FLEX_OPS_H_ +#ifndef TENSORFLOW_LITE_TOCO_TFLITE_WHITELISTED_FLEX_OPS_H_ +#define TENSORFLOW_LITE_TOCO_TFLITE_WHITELISTED_FLEX_OPS_H_ #include @@ -32,4 +32,4 @@ bool IsWhitelistedFlexOp(const std::string& tensorflow_op_name); } // namespace tflite } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TFLITE_WHITELISTED_FLEX_OPS_H_ +#endif // TENSORFLOW_LITE_TOCO_TFLITE_WHITELISTED_FLEX_OPS_H_ diff --git a/tensorflow/contrib/lite/toco/toco.cc b/tensorflow/lite/toco/toco.cc similarity index 90% rename from tensorflow/contrib/lite/toco/toco.cc rename to tensorflow/lite/toco/toco.cc index d1c431278581bd58a2d9434261d6701d686c3782..9740015850a05cdbc2ad2e97c508012e1678d998 100644 --- a/tensorflow/contrib/lite/toco/toco.cc +++ b/tensorflow/lite/toco/toco.cc @@ -17,14 +17,14 @@ limitations under the License. #include #include "absl/strings/string_view.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_cmdline_flags.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/toco_cmdline_flags.h" -#include "tensorflow/contrib/lite/toco/toco_flags.pb.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/toco_tooling.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_cmdline_flags.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/toco_cmdline_flags.h" +#include "tensorflow/lite/toco/toco_flags.pb.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/toco_tooling.h" +#include "tensorflow/lite/toco/toco_types.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/platform/logging.h" @@ -60,7 +60,7 @@ void ReadInputData(const ParsedTocoFlags& parsed_toco_flags, // Ensure savedmodel_directory is not set. QCHECK(!parsed_toco_flags.savedmodel_directory.specified()) - << "Use `tensorflow/contrib/lite/python/tflite_convert` script with " + << "Use `tensorflow/lite/python/tflite_convert` script with " << "SavedModel directories.\n"; // Checks the input file permissions and reads the contents. diff --git a/tensorflow/contrib/lite/toco/toco_cmdline_flags.cc b/tensorflow/lite/toco/toco_cmdline_flags.cc similarity index 99% rename from tensorflow/contrib/lite/toco/toco_cmdline_flags.cc rename to tensorflow/lite/toco/toco_cmdline_flags.cc index cff79776bc787ea8c9b0afa8cce556a175453bd0..57d49fc220ca04a3ef21e7ea7245c060dd865179 100644 --- a/tensorflow/contrib/lite/toco/toco_cmdline_flags.cc +++ b/tensorflow/lite/toco/toco_cmdline_flags.cc @@ -21,8 +21,8 @@ limitations under the License. #include "absl/strings/str_split.h" #include "absl/strings/strip.h" #include "absl/types/optional.h" -#include "tensorflow/contrib/lite/toco/toco_cmdline_flags.h" -#include "tensorflow/contrib/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/toco_cmdline_flags.h" +#include "tensorflow/lite/toco/toco_port.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/util/command_line_flags.h" diff --git a/tensorflow/contrib/lite/toco/toco_cmdline_flags.h b/tensorflow/lite/toco/toco_cmdline_flags.h similarity index 79% rename from tensorflow/contrib/lite/toco/toco_cmdline_flags.h rename to tensorflow/lite/toco/toco_cmdline_flags.h index 46eb3f57283cc52bf2877f578500f3a4a633be86..cf57055abc26e6a39820f6af3c03c3d49b4e54e3 100644 --- a/tensorflow/contrib/lite/toco/toco_cmdline_flags.h +++ b/tensorflow/lite/toco/toco_cmdline_flags.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_CMDLINE_FLAGS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_CMDLINE_FLAGS_H_ +#ifndef TENSORFLOW_LITE_TOCO_TOCO_CMDLINE_FLAGS_H_ +#define TENSORFLOW_LITE_TOCO_TOCO_CMDLINE_FLAGS_H_ #include #include -#include "tensorflow/contrib/lite/toco/args.h" -#include "tensorflow/contrib/lite/toco/toco_flags.pb.h" -#include "tensorflow/contrib/lite/toco/types.pb.h" +#include "tensorflow/lite/toco/args.h" +#include "tensorflow/lite/toco/toco_flags.pb.h" +#include "tensorflow/lite/toco/types.pb.h" namespace toco { // Parse and remove arguments handled from toco. Returns true if parsing @@ -33,4 +33,4 @@ void ReadTocoFlagsFromCommandLineFlags(const ParsedTocoFlags& parsed_toco_flags, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_CMDLINE_FLAGS_H_ +#endif // TENSORFLOW_LITE_TOCO_TOCO_CMDLINE_FLAGS_H_ diff --git a/tensorflow/contrib/lite/toco/toco_flags.proto b/tensorflow/lite/toco/toco_flags.proto similarity index 99% rename from tensorflow/contrib/lite/toco/toco_flags.proto rename to tensorflow/lite/toco/toco_flags.proto index ca3e64485e7a46c730966db27c1d5190a3632453..708707be918d405be805bfcdcafdd5f21ee17aae 100644 --- a/tensorflow/contrib/lite/toco/toco_flags.proto +++ b/tensorflow/lite/toco/toco_flags.proto @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto2"; -import "tensorflow/contrib/lite/toco/types.proto"; +import "tensorflow/lite/toco/types.proto"; package toco; diff --git a/tensorflow/contrib/lite/toco/toco_graphviz_dump_options.cc b/tensorflow/lite/toco/toco_graphviz_dump_options.cc similarity index 92% rename from tensorflow/contrib/lite/toco/toco_graphviz_dump_options.cc rename to tensorflow/lite/toco/toco_graphviz_dump_options.cc index 4e98e7081de4388e5425f0eea9f6bb5f5cdafcd7..449f0f07cec1282711c04785cce31b7d5aca436e 100644 --- a/tensorflow/contrib/lite/toco/toco_graphviz_dump_options.cc +++ b/tensorflow/lite/toco/toco_graphviz_dump_options.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/toco_graphviz_dump_options.h" +#include "tensorflow/lite/toco/toco_graphviz_dump_options.h" namespace toco { GraphVizDumpOptions* GraphVizDumpOptions::singleton() { diff --git a/tensorflow/contrib/lite/toco/toco_graphviz_dump_options.h b/tensorflow/lite/toco/toco_graphviz_dump_options.h similarity index 82% rename from tensorflow/contrib/lite/toco/toco_graphviz_dump_options.h rename to tensorflow/lite/toco/toco_graphviz_dump_options.h index 7cdd55e5422589aa000000b82d09b9d8397d7a88..00d9cd13a662722fff49af2edcda8d122864034d 100644 --- a/tensorflow/contrib/lite/toco/toco_graphviz_dump_options.h +++ b/tensorflow/lite/toco/toco_graphviz_dump_options.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_GRAPHVIZ_DUMP_OPTIONS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_GRAPHVIZ_DUMP_OPTIONS_H_ +#ifndef TENSORFLOW_LITE_TOCO_TOCO_GRAPHVIZ_DUMP_OPTIONS_H_ +#define TENSORFLOW_LITE_TOCO_TOCO_GRAPHVIZ_DUMP_OPTIONS_H_ #include @@ -29,4 +29,4 @@ struct GraphVizDumpOptions { } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_GRAPHVIZ_DUMP_OPTIONS_H_ +#endif // TENSORFLOW_LITE_TOCO_TOCO_GRAPHVIZ_DUMP_OPTIONS_H_ diff --git a/tensorflow/contrib/lite/toco/toco_port.cc b/tensorflow/lite/toco/toco_port.cc similarity index 98% rename from tensorflow/contrib/lite/toco/toco_port.cc rename to tensorflow/lite/toco/toco_port.cc index 204c0d101eac6d37355d49984a38ffd0d4dd27be..0881065a23f12295975e9ba7fb0c0a4f8917f5b0 100644 --- a/tensorflow/contrib/lite/toco/toco_port.cc +++ b/tensorflow/lite/toco/toco_port.cc @@ -14,8 +14,8 @@ limitations under the License. ==============================================================================*/ #include -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/toco_types.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/logging.h" diff --git a/tensorflow/contrib/lite/toco/toco_port.h b/tensorflow/lite/toco/toco_port.h similarity index 94% rename from tensorflow/contrib/lite/toco/toco_port.h rename to tensorflow/lite/toco/toco_port.h index 17f82b9dd7dcc633aa204038b6d965f4eb6967bb..2f39e3d6d5c02457e9ade320e7525fbf881b5389 100644 --- a/tensorflow/contrib/lite/toco/toco_port.h +++ b/tensorflow/lite/toco/toco_port.h @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_PORT_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_PORT_H_ +#ifndef TENSORFLOW_LITE_TOCO_TOCO_PORT_H_ +#define TENSORFLOW_LITE_TOCO_TOCO_PORT_H_ // Portability layer for toco tool. Mainly, abstract filesystem access so we // can build and use on google internal environments and on OSX. #include #include "google/protobuf/text_format.h" -#include "tensorflow/contrib/lite/toco/format_port.h" +#include "tensorflow/lite/toco/format_port.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/platform.h" @@ -110,4 +110,4 @@ bool ParseFromStringEitherTextOrBinary(const std::string& input_file_contents, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_PORT_H_ +#endif // TENSORFLOW_LITE_TOCO_TOCO_PORT_H_ diff --git a/tensorflow/contrib/lite/toco/toco_port_test.cc b/tensorflow/lite/toco/toco_port_test.cc similarity index 88% rename from tensorflow/contrib/lite/toco/toco_port_test.cc rename to tensorflow/lite/toco/toco_port_test.cc index 650a617aebc053e789f41a56f9bb7fb514740f9a..f5fbb4caeb2882d51c4b586293eb202fcf60a9de 100644 --- a/tensorflow/contrib/lite/toco/toco_port_test.cc +++ b/tensorflow/lite/toco/toco_port_test.cc @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/toco_port.h" -#include "tensorflow/contrib/lite/toco/toco_types.h" +#include "tensorflow/lite/toco/toco_port.h" +#include "tensorflow/lite/toco/toco_types.h" #include #include @@ -23,9 +23,9 @@ namespace port { namespace { #ifdef PLATFORM_GOOGLE -#define TFLITE_PREFIX "third_party/tensorflow/contrib/lite/" +#define TFLITE_PREFIX "third_party/tensorflow/lite/" #else -#define TFLITE_PREFIX "tensorflow/contrib/lite/" +#define TFLITE_PREFIX "tensorflow/lite/" #endif TEST(TocoPortTest, Exists) { diff --git a/tensorflow/contrib/lite/toco/toco_tooling.cc b/tensorflow/lite/toco/toco_tooling.cc similarity index 96% rename from tensorflow/contrib/lite/toco/toco_tooling.cc rename to tensorflow/lite/toco/toco_tooling.cc index c4eacf836e3d5d481d32850898aec1fb98687360..88ff07ad13096a8484face32e831c3d23beb834b 100644 --- a/tensorflow/contrib/lite/toco/toco_tooling.cc +++ b/tensorflow/lite/toco/toco_tooling.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/toco_tooling.h" +#include "tensorflow/lite/toco/toco_tooling.h" #include #include @@ -20,16 +20,16 @@ limitations under the License. #include "absl/memory/memory.h" #include "absl/strings/str_join.h" -#include "tensorflow/contrib/lite/toco/allocate_transient_arrays.h" -#include "tensorflow/contrib/lite/toco/dump_graphviz.h" -#include "tensorflow/contrib/lite/toco/export_tensorflow.h" -#include "tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.h" -#include "tensorflow/contrib/lite/toco/import_tensorflow.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/tflite/export.h" -#include "tensorflow/contrib/lite/toco/tflite/import.h" -#include "tensorflow/contrib/lite/toco/toco_flags.pb.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/allocate_transient_arrays.h" +#include "tensorflow/lite/toco/dump_graphviz.h" +#include "tensorflow/lite/toco/export_tensorflow.h" +#include "tensorflow/lite/toco/graph_transformations/graph_transformations.h" +#include "tensorflow/lite/toco/import_tensorflow.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/tflite/export.h" +#include "tensorflow/lite/toco/tflite/import.h" +#include "tensorflow/lite/toco/toco_flags.pb.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/platform/logging.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/toco_tooling.h b/tensorflow/lite/toco/toco_tooling.h similarity index 84% rename from tensorflow/contrib/lite/toco/toco_tooling.h rename to tensorflow/lite/toco/toco_tooling.h index 40c0e7f0a3908934286a7deca0d9f9de034758de..742e3769269859c62522707ba415cd509e8df629 100644 --- a/tensorflow/contrib/lite/toco/toco_tooling.h +++ b/tensorflow/lite/toco/toco_tooling.h @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_TOOLING_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_TOOLING_H_ +#ifndef TENSORFLOW_LITE_TOCO_TOCO_TOOLING_H_ +#define TENSORFLOW_LITE_TOCO_TOCO_TOOLING_H_ #include #include -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/toco_flags.pb.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/toco_flags.pb.h" namespace toco { @@ -50,4 +50,4 @@ inline void Export(const TocoFlags& toco_flags, const Model& model, } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_TOOLING_H_ +#endif // TENSORFLOW_LITE_TOCO_TOCO_TOOLING_H_ diff --git a/tensorflow/contrib/lite/toco/toco_types.h b/tensorflow/lite/toco/toco_types.h similarity index 88% rename from tensorflow/contrib/lite/toco/toco_types.h rename to tensorflow/lite/toco/toco_types.h index 319f1066cdb33e60178f6db142712363d9f07f3d..da2efd6724a7042a3498b070f740947d0363f0da 100644 --- a/tensorflow/contrib/lite/toco/toco_types.h +++ b/tensorflow/lite/toco/toco_types.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_TYPES_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_TYPES_H_ +#ifndef TENSORFLOW_LITE_TOCO_TOCO_TYPES_H_ +#define TENSORFLOW_LITE_TOCO_TOCO_TYPES_H_ #include #include "tensorflow/core/platform/platform.h" @@ -42,4 +42,4 @@ using tensorflow::uint8; } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TOCO_TYPES_H_ +#endif // TENSORFLOW_LITE_TOCO_TOCO_TYPES_H_ diff --git a/tensorflow/contrib/lite/toco/tooling_util.cc b/tensorflow/lite/toco/tooling_util.cc similarity index 99% rename from tensorflow/contrib/lite/toco/tooling_util.cc rename to tensorflow/lite/toco/tooling_util.cc index 2d6968239efecf4291c853171ef7eb46eefdb224..e33f7c8452f88d8402f51ef1bc55a8dfe95631ec 100644 --- a/tensorflow/contrib/lite/toco/tooling_util.cc +++ b/tensorflow/lite/toco/tooling_util.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/tooling_util.h" #include #include @@ -27,9 +27,9 @@ limitations under the License. #include "absl/strings/str_replace.h" #include "absl/strings/str_split.h" #include "re2/re2.h" -#include "tensorflow/contrib/lite/toco/dump_graphviz.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/toco_graphviz_dump_options.h" +#include "tensorflow/lite/toco/dump_graphviz.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/toco_graphviz_dump_options.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/logging.h" diff --git a/tensorflow/contrib/lite/toco/tooling_util.h b/tensorflow/lite/toco/tooling_util.h similarity index 96% rename from tensorflow/contrib/lite/toco/tooling_util.h rename to tensorflow/lite/toco/tooling_util.h index 5f4b8cb66a2c5471158f761f61e4e49c78a95584..92ce82632f96859ce4f425dac64c4e2b812f156e 100644 --- a/tensorflow/contrib/lite/toco/tooling_util.h +++ b/tensorflow/lite/toco/tooling_util.h @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOCO_TOOLING_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_TOCO_TOOLING_UTIL_H_ +#ifndef TENSORFLOW_LITE_TOCO_TOOLING_UTIL_H_ +#define TENSORFLOW_LITE_TOCO_TOOLING_UTIL_H_ #include #include @@ -28,12 +28,12 @@ limitations under the License. #if TOCO_SUPPORT_PORTABLE_PROTOS #include "third_party/protobuf/include/google/protobuf/text_format.h" #endif // TOCO_SUPPORT_PORTABLE_PROTOS -#include "tensorflow/contrib/lite/kernels/internal/types.h" -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/model_flags.pb.h" -#include "tensorflow/contrib/lite/toco/runtime/types.h" -#include "tensorflow/contrib/lite/toco/toco_flags.pb.h" -#include "tensorflow/contrib/lite/toco/types.pb.h" +#include "tensorflow/lite/kernels/internal/types.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/model_flags.pb.h" +#include "tensorflow/lite/toco/runtime/types.h" +#include "tensorflow/lite/toco/toco_flags.pb.h" +#include "tensorflow/lite/toco/types.pb.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/status.h" @@ -358,4 +358,4 @@ void CopyMinMaxAndQuantizationRelatedFields(const Array& src, Array* dst); } // namespace toco -#endif // TENSORFLOW_CONTRIB_LITE_TOCO_TOOLING_UTIL_H_ +#endif // TENSORFLOW_LITE_TOCO_TOOLING_UTIL_H_ diff --git a/tensorflow/contrib/lite/toco/tooling_util_test.cc b/tensorflow/lite/toco/tooling_util_test.cc similarity index 98% rename from tensorflow/contrib/lite/toco/tooling_util_test.cc rename to tensorflow/lite/toco/tooling_util_test.cc index eb495646a2df0d0295eab54fcc5a5bf156a59d39..e3826cb8fde69f05c2f3d8daa64e534639fe5fbb 100644 --- a/tensorflow/contrib/lite/toco/tooling_util_test.cc +++ b/tensorflow/lite/toco/tooling_util_test.cc @@ -16,8 +16,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/toco/model.h" -#include "tensorflow/contrib/lite/toco/tooling_util.h" +#include "tensorflow/lite/toco/model.h" +#include "tensorflow/lite/toco/tooling_util.h" #include "tensorflow/core/lib/core/status.h" namespace toco { diff --git a/tensorflow/contrib/lite/toco/types.proto b/tensorflow/lite/toco/types.proto similarity index 100% rename from tensorflow/contrib/lite/toco/types.proto rename to tensorflow/lite/toco/types.proto diff --git a/tensorflow/contrib/lite/tools/BUILD b/tensorflow/lite/tools/BUILD similarity index 60% rename from tensorflow/contrib/lite/tools/BUILD rename to tensorflow/lite/tools/BUILD index 0b268264031f4f1e86b2956a75bde173a945ddf4..93725b5de473e43c4f7c398a2ac0bf1a52e0b3f2 100644 --- a/tensorflow/contrib/lite/tools/BUILD +++ b/tensorflow/lite/tools/BUILD @@ -4,7 +4,7 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 -load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite") +load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") load("//tensorflow:tensorflow.bzl", "tf_cc_binary") common_copts = ["-Wall"] @@ -13,7 +13,7 @@ py_binary( name = "visualize", srcs = ["visualize.py"], data = [ - "//tensorflow/contrib/lite/schema:schema.fbs", + "//tensorflow/lite/schema:schema.fbs", "//tensorflow/python:platform", "@flatbuffers//:flatc", ], @@ -24,9 +24,9 @@ tf_cc_binary( name = "generate_op_registrations", srcs = ["gen_op_registration_main.cc"], deps = [ - "//tensorflow/contrib/lite/tools:gen_op_registration", "//tensorflow/core:framework_internal", "//tensorflow/core:lib", + "//tensorflow/lite/tools:gen_op_registration", "@com_google_absl//absl/strings", ], ) @@ -36,8 +36,8 @@ cc_library( srcs = ["gen_op_registration.cc"], hdrs = ["gen_op_registration.h"], deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string", + "//tensorflow/lite:framework", + "//tensorflow/lite:string", "@com_googlesource_code_re2//:re2", ], ) @@ -46,11 +46,11 @@ cc_test( name = "gen_op_registration_test", srcs = ["gen_op_registration_test.cc"], data = [ - "//tensorflow/contrib/lite:testdata/0_subgraphs.bin", - "//tensorflow/contrib/lite:testdata/2_subgraphs.bin", - "//tensorflow/contrib/lite:testdata/empty_model.bin", - "//tensorflow/contrib/lite:testdata/test_model.bin", - "//tensorflow/contrib/lite:testdata/test_model_broken.bin", + "//tensorflow/lite:testdata/0_subgraphs.bin", + "//tensorflow/lite:testdata/2_subgraphs.bin", + "//tensorflow/lite:testdata/empty_model.bin", + "//tensorflow/lite:testdata/test_model.bin", + "//tensorflow/lite:testdata/test_model_broken.bin", ], tags = [ "no_oss", @@ -68,10 +68,10 @@ cc_library( srcs = ["verifier.cc"], hdrs = ["verifier.h"], deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/schema:schema_fbs", + "//tensorflow/lite:framework", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite:string_util", + "//tensorflow/lite/schema:schema_fbs", ], ) @@ -85,11 +85,11 @@ cc_test( ], deps = [ ":verifier", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:schema_fbs_version", - "//tensorflow/contrib/lite/schema:schema_fbs", - "//tensorflow/contrib/lite/testing:util", "//tensorflow/core:framework_lite", + "//tensorflow/lite:framework", + "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/schema:schema_fbs", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", "@flatbuffers", ], diff --git a/tensorflow/contrib/lite/tools/accuracy/BUILD b/tensorflow/lite/tools/accuracy/BUILD similarity index 92% rename from tensorflow/contrib/lite/tools/accuracy/BUILD rename to tensorflow/lite/tools/accuracy/BUILD index 1b60d6a60d39ccb59613871d1f438b31c16fec7a..64475e057ae41534891bbce20324e8c588118e3c 100644 --- a/tensorflow/contrib/lite/tools/accuracy/BUILD +++ b/tensorflow/lite/tools/accuracy/BUILD @@ -5,8 +5,8 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 load("//tensorflow:tensorflow.bzl", "tf_cc_binary", "tf_cc_test") -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts", "tflite_linkopts") -load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite") +load("//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_linkopts") +load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") common_linkopts = tflite_linkopts() + select({ "//conditions:default": [], @@ -22,8 +22,8 @@ cc_library( hdrs = ["utils.h"], copts = tflite_copts(), deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", ] + select( { "//tensorflow:android": [ @@ -40,9 +40,9 @@ tf_cc_test( name = "utils_test", srcs = ["utils_test.cc"], args = [ - "--test_model_file=$(location //tensorflow/contrib/lite:testdata/multi_add.bin)", + "--test_model_file=$(location //tensorflow/lite:testdata/multi_add.bin)", ], - data = ["//tensorflow/contrib/lite:testdata/multi_add.bin"], + data = ["//tensorflow/lite:testdata/multi_add.bin"], linkopts = common_linkopts, linkstatic = 1, tags = [ @@ -72,8 +72,8 @@ cc_library( copts = tflite_copts(), deps = [ ":utils", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels:builtin_ops", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels:builtin_ops", ] + select( { "//tensorflow:android": [ @@ -102,9 +102,9 @@ tf_cc_test( name = "run_tflite_model_op_test", srcs = ["run_tflite_model_op_test.cc"], args = [ - "--test_model_file=$(location //tensorflow/contrib/lite:testdata/multi_add.bin)", + "--test_model_file=$(location //tensorflow/lite:testdata/multi_add.bin)", ], - data = ["//tensorflow/contrib/lite:testdata/multi_add.bin"], + data = ["//tensorflow/lite:testdata/multi_add.bin"], linkopts = common_linkopts, linkstatic = 1, tags = [ diff --git a/tensorflow/contrib/lite/tools/accuracy/README.md b/tensorflow/lite/tools/accuracy/README.md similarity index 100% rename from tensorflow/contrib/lite/tools/accuracy/README.md rename to tensorflow/lite/tools/accuracy/README.md diff --git a/tensorflow/contrib/lite/tools/accuracy/accuracy_eval_stage.h b/tensorflow/lite/tools/accuracy/accuracy_eval_stage.h similarity index 88% rename from tensorflow/contrib/lite/tools/accuracy/accuracy_eval_stage.h rename to tensorflow/lite/tools/accuracy/accuracy_eval_stage.h index 9cb843729aa8c127814be23f1183b5a9edcb1702..5a2ba3d2a7a2f13f10b4b8a060c99c4ee63cb6f2 100644 --- a/tensorflow/contrib/lite/tools/accuracy/accuracy_eval_stage.h +++ b/tensorflow/lite/tools/accuracy/accuracy_eval_stage.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_ACCURACY_EVAL_STAGE_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_ACCURACY_EVAL_STAGE_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_ACCURACY_EVAL_STAGE_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_ACCURACY_EVAL_STAGE_H_ #include @@ -46,4 +46,4 @@ class AccuracyEval { }; } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_ACCURACY_EVAL_STAGE_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_ACCURACY_EVAL_STAGE_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/android_required_build_flags.cc b/tensorflow/lite/tools/accuracy/android_required_build_flags.cc similarity index 100% rename from tensorflow/contrib/lite/tools/accuracy/android_required_build_flags.cc rename to tensorflow/lite/tools/accuracy/android_required_build_flags.cc diff --git a/tensorflow/contrib/lite/tools/accuracy/csv_writer.h b/tensorflow/lite/tools/accuracy/csv_writer.h similarity index 92% rename from tensorflow/contrib/lite/tools/accuracy/csv_writer.h rename to tensorflow/lite/tools/accuracy/csv_writer.h index 806b0d9418e8b03b92c0f33b6d531ce248ae43a6..d74a803ce18766c23c0e6ee0d574bc19daf83361 100644 --- a/tensorflow/contrib/lite/tools/accuracy/csv_writer.h +++ b/tensorflow/lite/tools/accuracy/csv_writer.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_CSV_WRITER_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_CSV_WRITER_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_CSV_WRITER_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_CSV_WRITER_H_ #include #include @@ -76,4 +76,4 @@ class CSVWriter { }; } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_CSV_WRITER_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_CSV_WRITER_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline.cc b/tensorflow/lite/tools/accuracy/eval_pipeline.cc similarity index 95% rename from tensorflow/contrib/lite/tools/accuracy/eval_pipeline.cc rename to tensorflow/lite/tools/accuracy/eval_pipeline.cc index a03aba6a2685db7a535829f98303174e9399b94d..658824a7d03fe6dd514c2ab48d85e341a89e26cc 100644 --- a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline.cc +++ b/tensorflow/lite/tools/accuracy/eval_pipeline.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/eval_pipeline.h" +#include "tensorflow/lite/tools/accuracy/eval_pipeline.h" namespace tensorflow { namespace metrics { diff --git a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline.h b/tensorflow/lite/tools/accuracy/eval_pipeline.h similarity index 89% rename from tensorflow/contrib/lite/tools/accuracy/eval_pipeline.h rename to tensorflow/lite/tools/accuracy/eval_pipeline.h index c9cfc866139da86d7de2036a07315e66dfaf60f0..1ec21b07e8bce1b17a63b75ee129b43a0c74d74f 100644 --- a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline.h +++ b/tensorflow/lite/tools/accuracy/eval_pipeline.h @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_H_ #include -#include "tensorflow/contrib/lite/tools/accuracy/accuracy_eval_stage.h" -#include "tensorflow/contrib/lite/tools/accuracy/stage.h" +#include "tensorflow/lite/tools/accuracy/accuracy_eval_stage.h" +#include "tensorflow/lite/tools/accuracy/stage.h" #include "tensorflow/core/public/session.h" namespace tensorflow { @@ -84,4 +84,4 @@ class EvalPipeline { }; } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.cc b/tensorflow/lite/tools/accuracy/eval_pipeline_builder.cc similarity index 97% rename from tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.cc rename to tensorflow/lite/tools/accuracy/eval_pipeline_builder.cc index 2e16437e1588b400b915a488e402a52efa3b755c..1b360d31b36e5715ee5ba70b51a536b525343ae0 100644 --- a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.cc +++ b/tensorflow/lite/tools/accuracy/eval_pipeline_builder.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.h" +#include "tensorflow/lite/tools/accuracy/eval_pipeline_builder.h" #include "absl/memory/memory.h" #include "tensorflow/cc/ops/standard_ops.h" diff --git a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.h b/tensorflow/lite/tools/accuracy/eval_pipeline_builder.h similarity index 89% rename from tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.h rename to tensorflow/lite/tools/accuracy/eval_pipeline_builder.h index 692db022f8bc747979337dec7f08af9fcb6932fa..18b52ac7bea3617fc682fe290d2d9fe704c0f839 100644 --- a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.h +++ b/tensorflow/lite/tools/accuracy/eval_pipeline_builder.h @@ -13,15 +13,15 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_BUILDER_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_BUILDER_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_BUILDER_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_BUILDER_H_ #include #include -#include "tensorflow/contrib/lite/tools/accuracy/accuracy_eval_stage.h" -#include "tensorflow/contrib/lite/tools/accuracy/eval_pipeline.h" -#include "tensorflow/contrib/lite/tools/accuracy/stage.h" +#include "tensorflow/lite/tools/accuracy/accuracy_eval_stage.h" +#include "tensorflow/lite/tools/accuracy/eval_pipeline.h" +#include "tensorflow/lite/tools/accuracy/stage.h" namespace tensorflow { namespace metrics { @@ -96,4 +96,4 @@ class EvalPipelineBuilder { } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_BUILDER_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_EVAL_PIPELINE_BUILDER_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder_test.cc b/tensorflow/lite/tools/accuracy/eval_pipeline_builder_test.cc similarity index 99% rename from tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder_test.cc rename to tensorflow/lite/tools/accuracy/eval_pipeline_builder_test.cc index 2d41929b7920f403cb6b9858a7c54cb13273fb95..9bf725439c486d776cdd76911ee8072871bc41e9 100644 --- a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder_test.cc +++ b/tensorflow/lite/tools/accuracy/eval_pipeline_builder_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.h" +#include "tensorflow/lite/tools/accuracy/eval_pipeline_builder.h" #include #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/public/session.h" diff --git a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline_test.cc b/tensorflow/lite/tools/accuracy/eval_pipeline_test.cc similarity index 98% rename from tensorflow/contrib/lite/tools/accuracy/eval_pipeline_test.cc rename to tensorflow/lite/tools/accuracy/eval_pipeline_test.cc index ea0f6e19df46d8934dc9eabb1c57a01bb5e91a1f..53cbf8ccd5b7fd10770ccdb3aeebca1414655082 100644 --- a/tensorflow/contrib/lite/tools/accuracy/eval_pipeline_test.cc +++ b/tensorflow/lite/tools/accuracy/eval_pipeline_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/eval_pipeline.h" +#include "tensorflow/lite/tools/accuracy/eval_pipeline.h" #include #include "tensorflow/cc/ops/standard_ops.h" #include "tensorflow/core/public/session.h" diff --git a/tensorflow/contrib/lite/tools/accuracy/file_reader_stage.cc b/tensorflow/lite/tools/accuracy/file_reader_stage.cc similarity index 93% rename from tensorflow/contrib/lite/tools/accuracy/file_reader_stage.cc rename to tensorflow/lite/tools/accuracy/file_reader_stage.cc index 61bed369f8b4f659ee12834efdc23f6315dd8d42..a106a79a4baedc3fe10876c8efda9ba45c606a67 100644 --- a/tensorflow/contrib/lite/tools/accuracy/file_reader_stage.cc +++ b/tensorflow/lite/tools/accuracy/file_reader_stage.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/file_reader_stage.h" +#include "tensorflow/lite/tools/accuracy/file_reader_stage.h" #include "tensorflow/cc/framework/scope.h" #include "tensorflow/cc/ops/standard_ops.h" diff --git a/tensorflow/contrib/lite/tools/accuracy/file_reader_stage.h b/tensorflow/lite/tools/accuracy/file_reader_stage.h similarity index 81% rename from tensorflow/contrib/lite/tools/accuracy/file_reader_stage.h rename to tensorflow/lite/tools/accuracy/file_reader_stage.h index 18db5837c1717ca5be966d8a4d764ea88d2674d3..19655e96973498c5dae1beb38debad0c55612155 100644 --- a/tensorflow/contrib/lite/tools/accuracy/file_reader_stage.h +++ b/tensorflow/lite/tools/accuracy/file_reader_stage.h @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_FILE_READER_STAGE_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_FILE_READER_STAGE_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_FILE_READER_STAGE_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_FILE_READER_STAGE_H_ #include -#include "tensorflow/contrib/lite/tools/accuracy/stage.h" +#include "tensorflow/lite/tools/accuracy/stage.h" namespace tensorflow { namespace metrics { @@ -34,4 +34,4 @@ class FileReaderStage : public Stage { }; } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_FILE_READER_STAGE_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_FILE_READER_STAGE_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/file_reader_stage_test.cc b/tensorflow/lite/tools/accuracy/file_reader_stage_test.cc similarity index 97% rename from tensorflow/contrib/lite/tools/accuracy/file_reader_stage_test.cc rename to tensorflow/lite/tools/accuracy/file_reader_stage_test.cc index a75f99187d6ea0918398899ccef1511faa3ee0a6..21be0a766b5ec47da404ee9feaf42cba361f0354 100644 --- a/tensorflow/contrib/lite/tools/accuracy/file_reader_stage_test.cc +++ b/tensorflow/lite/tools/accuracy/file_reader_stage_test.cc @@ -18,7 +18,7 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/tools/accuracy/file_reader_stage.h" +#include "tensorflow/lite/tools/accuracy/file_reader_stage.h" #include "tensorflow/core/public/session.h" namespace tensorflow { diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/BUILD b/tensorflow/lite/tools/accuracy/ilsvrc/BUILD similarity index 82% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/BUILD rename to tensorflow/lite/tools/accuracy/ilsvrc/BUILD index 98e2835b2ebd2f7918a939fb89aebec0fd54fb43..a4d21961a6f00ea288550a0b054519ebe1e7abdd 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/BUILD +++ b/tensorflow/lite/tools/accuracy/ilsvrc/BUILD @@ -5,8 +5,8 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 load("//tensorflow:tensorflow.bzl", "tf_cc_binary", "tf_cc_test") -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts", "tflite_linkopts") -load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite") +load("//tensorflow/lite:build_def.bzl", "tflite_copts", "tflite_linkopts") +load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") common_linkopts = tflite_linkopts() + select({ "//conditions:default": [], @@ -22,8 +22,8 @@ cc_library( hdrs = ["inception_preprocessing.h"], copts = tflite_copts(), deps = [ - "//tensorflow/contrib/lite/tools/accuracy:android_required_build_flags", - "//tensorflow/contrib/lite/tools/accuracy:stage", + "//tensorflow/lite/tools/accuracy:android_required_build_flags", + "//tensorflow/lite/tools/accuracy:stage", "//tensorflow/cc:cc_ops", "//tensorflow/cc:scope", ] + select( @@ -60,7 +60,7 @@ tf_cc_test( ], deps = [ ":inception_preprocessing", - "//tensorflow/contrib/lite/tools/accuracy:android_required_build_flags", + "//tensorflow/lite/tools/accuracy:android_required_build_flags", "@com_google_googletest//:gtest", ] + select( { @@ -83,7 +83,7 @@ cc_library( hdrs = ["imagenet_topk_eval.h"], copts = tflite_copts(), deps = [ - "//tensorflow/contrib/lite/tools/accuracy:accuracy_eval_stage", + "//tensorflow/lite/tools/accuracy:accuracy_eval_stage", ] + select( { "//tensorflow:android": [ @@ -127,12 +127,12 @@ cc_library( deps = [ ":imagenet_topk_eval", ":inception_preprocessing", - "//tensorflow/contrib/lite/tools/accuracy:android_required_build_flags", - "//tensorflow/contrib/lite/tools/accuracy:eval_pipeline", - "//tensorflow/contrib/lite/tools/accuracy:eval_pipeline_builder", - "//tensorflow/contrib/lite/tools/accuracy:file_reader_stage", - "//tensorflow/contrib/lite/tools/accuracy:run_tflite_model_stage", - "//tensorflow/contrib/lite/tools/accuracy:utils", + "//tensorflow/lite/tools/accuracy:android_required_build_flags", + "//tensorflow/lite/tools/accuracy:eval_pipeline", + "//tensorflow/lite/tools/accuracy:eval_pipeline_builder", + "//tensorflow/lite/tools/accuracy:file_reader_stage", + "//tensorflow/lite/tools/accuracy:run_tflite_model_stage", + "//tensorflow/lite/tools/accuracy:utils", "@com_google_absl//absl/memory", "//tensorflow/cc:cc_ops", "//tensorflow/cc:scope", @@ -164,8 +164,8 @@ tf_cc_binary( ":imagenet_model_evaluator", ":imagenet_topk_eval", "@com_google_absl//absl/memory", - "//tensorflow/contrib/lite/tools/accuracy:android_required_build_flags", - "//tensorflow/contrib/lite/tools/accuracy:csv_writer", + "//tensorflow/lite/tools/accuracy:android_required_build_flags", + "//tensorflow/lite/tools/accuracy:csv_writer", ] + select( { "//tensorflow:android": [ diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/README.md b/tensorflow/lite/tools/accuracy/ilsvrc/README.md similarity index 95% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/README.md rename to tensorflow/lite/tools/accuracy/ilsvrc/README.md index 362ea3ac34f60a93ec242bf11306c5798b982035..ac3a1566e2a2c834260acbfbee8908cc13efa42a 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/README.md +++ b/tensorflow/lite/tools/accuracy/ilsvrc/README.md @@ -75,14 +75,14 @@ bazel build -c opt \ --cxxopt='--std=c++11' \ --copt=-D__ANDROID_TYPES_FULL__ \ --copt=-DSUPPORT_SELECTIVE_REGISTRATION \ - //tensorflow/contrib/lite/tools/accuracy/ilsvrc:imagenet_accuracy_eval + //tensorflow/lite/tools/accuracy/ilsvrc:imagenet_accuracy_eval ``` (2) Connect your phone. Push the binary to your phone with adb push (make the directory if required): ``` -adb push bazel-bin/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_accuracy_eval /data/local/tmp +adb push bazel-bin/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_accuracy_eval /data/local/tmp ``` (3) Make the binary executable. @@ -136,7 +136,7 @@ adb shell /data/local/tmp/imagenet_accuracy_eval \ bazel run -c opt \ --cxxopt='--std=c++11' \ -- \ - //tensorflow/contrib/lite/tools/accuracy/ilsvrc:imagenet_accuracy_eval \ + //tensorflow/lite/tools/accuracy/ilsvrc:imagenet_accuracy_eval \ --model_file=mobilenet_quant_v1_224.tflite \ --ground_truth_images_path=${IMAGENET_IMAGES_DIR} \ --ground_truth_labels=${VALIDATION_LABELS} \ diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/clsloc_validation_blacklist.txt b/tensorflow/lite/tools/accuracy/ilsvrc/clsloc_validation_blacklist.txt similarity index 100% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/clsloc_validation_blacklist.txt rename to tensorflow/lite/tools/accuracy/ilsvrc/clsloc_validation_blacklist.txt diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/generate_validation_labels.py b/tensorflow/lite/tools/accuracy/ilsvrc/generate_validation_labels.py similarity index 100% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/generate_validation_labels.py rename to tensorflow/lite/tools/accuracy/ilsvrc/generate_validation_labels.py diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_accuracy_eval.cc b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_accuracy_eval.cc similarity index 96% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_accuracy_eval.cc rename to tensorflow/lite/tools/accuracy/ilsvrc/imagenet_accuracy_eval.cc index 2a8a2b9b59db062626d489159de7175a8803d4fc..090a023c02727c3c13fda1391d311cbeffa869a0 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_accuracy_eval.cc +++ b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_accuracy_eval.cc @@ -17,9 +17,9 @@ limitations under the License. #include #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/tools/accuracy/csv_writer.h" -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h" -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" +#include "tensorflow/lite/tools/accuracy/csv_writer.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/util/command_line_flags.h" diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.cc b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.cc similarity index 95% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.cc rename to tensorflow/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.cc index 63616fc3b4b0666c420200b559636e9568cf3ab0..9a74e221c13e72c286512175a7f633c87f75eedd 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.cc +++ b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h" #include #include @@ -22,13 +22,13 @@ limitations under the License. #include "absl/memory/memory.h" #include "tensorflow/cc/framework/scope.h" -#include "tensorflow/contrib/lite/tools/accuracy/eval_pipeline.h" -#include "tensorflow/contrib/lite/tools/accuracy/eval_pipeline_builder.h" -#include "tensorflow/contrib/lite/tools/accuracy/file_reader_stage.h" -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.h" -#include "tensorflow/contrib/lite/tools/accuracy/run_tflite_model_stage.h" -#include "tensorflow/contrib/lite/tools/accuracy/utils.h" +#include "tensorflow/lite/tools/accuracy/eval_pipeline.h" +#include "tensorflow/lite/tools/accuracy/eval_pipeline_builder.h" +#include "tensorflow/lite/tools/accuracy/file_reader_stage.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.h" +#include "tensorflow/lite/tools/accuracy/run_tflite_model_stage.h" +#include "tensorflow/lite/tools/accuracy/utils.h" #include "tensorflow/core/lib/core/blocking_counter.h" #include "tensorflow/core/lib/core/threadpool.h" #include "tensorflow/core/platform/init_main.h" diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h similarity index 91% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h rename to tensorflow/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h index 97e4232b358cab4f3b60d2a1eb8291e2e7931c8e..c3c49e9a51b525cfe012b55e04fd2d5ef50cf90c 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h +++ b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_model_evaluator.h @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_IMAGENET_MODEL_EVALUATOR_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_IMAGENET_MODEL_EVALUATOR_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_IMAGENET_MODEL_EVALUATOR_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_IMAGENET_MODEL_EVALUATOR_H_ #include #include -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" -#include "tensorflow/contrib/lite/tools/accuracy/utils.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" +#include "tensorflow/lite/tools/accuracy/utils.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/lib/core/status.h" @@ -121,4 +121,4 @@ class ImagenetModelEvaluator { } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_ILSVRC_IMAGENET_MODEL_EVALUATOR_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_ILSVRC_IMAGENET_MODEL_EVALUATOR_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.cc b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.cc similarity index 98% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.cc rename to tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.cc index c75baa82b1d013431b0c9f96c8183b298641e5eb..2b086cdf7075d7e6328ce0a41b17ca611ea3c4e2 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.cc +++ b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" #include diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h similarity index 91% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h rename to tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h index cad646a30ca96be011d9c4692904699f24e5bc22..e1fc445abf41b537f49cf5e909b0ec3ce72adb2e 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h +++ b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_IMAGENET_TOPK_EVAL_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_IMAGENET_TOPK_EVAL_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_IMAGENET_TOPK_EVAL_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_IMAGENET_TOPK_EVAL_H_ #include #include -#include "tensorflow/contrib/lite/tools/accuracy/accuracy_eval_stage.h" +#include "tensorflow/lite/tools/accuracy/accuracy_eval_stage.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/platform/mutex.h" @@ -80,4 +80,4 @@ class ImagenetTopKAccuracy : public AccuracyEval { } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_ILSVRC_IMAGENET_TOPK_EVAL_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_ILSVRC_IMAGENET_TOPK_EVAL_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval_test.cc b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval_test.cc similarity index 98% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval_test.cc rename to tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval_test.cc index ff332af5c5e56ec2e14b9e4ee509c6344be22c66..61b7afc552de60ef2a48fa3dfe88158f35108cc5 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval_test.cc +++ b/tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/imagenet_topk_eval.h" #include namespace tensorflow { diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.cc b/tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.cc similarity index 97% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.cc rename to tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.cc index 7512b39c32f98faed9b41f829666bf1d4d145d82..9a889f0dd88bc4c51b2c060baf0e89c126c98c1f 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.cc +++ b/tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.h" #include diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.h b/tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.h similarity index 89% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.h rename to tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.h index 15df71981756f6171b8e12bd9ed2a337c4867b64..4a1d3ce4769d1a7d3f46f39941eb3e9bcde7785c 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.h +++ b/tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.h @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_INCEPTION_PREPROCESSING_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_INCEPTION_PREPROCESSING_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_INCEPTION_PREPROCESSING_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_INCEPTION_PREPROCESSING_H_ #include -#include "tensorflow/contrib/lite/tools/accuracy/stage.h" +#include "tensorflow/lite/tools/accuracy/stage.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/lib/core/status.h" @@ -72,4 +72,4 @@ class InceptionPreprocessingStage : public Stage { } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_INCEPTION_PREPROCESSING_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_INCEPTION_PREPROCESSING_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing_test.cc b/tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing_test.cc similarity index 98% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing_test.cc rename to tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing_test.cc index 3587878ba3cadd13eb0af4c004f4f98184daf5de..5d0e01d7d18c451b978edbd08fc27934c8379961 100644 --- a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing_test.cc +++ b/tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing_test.cc @@ -17,7 +17,7 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/tools/accuracy/ilsvrc/inception_preprocessing.h" +#include "tensorflow/lite/tools/accuracy/ilsvrc/inception_preprocessing.h" #include "tensorflow/core/platform/init_main.h" #include "tensorflow/core/public/session.h" #include "tensorflow/core/util/command_line_flags.h" diff --git a/tensorflow/contrib/lite/tools/accuracy/ilsvrc/testdata/grace_hopper.jpg b/tensorflow/lite/tools/accuracy/ilsvrc/testdata/grace_hopper.jpg similarity index 100% rename from tensorflow/contrib/lite/tools/accuracy/ilsvrc/testdata/grace_hopper.jpg rename to tensorflow/lite/tools/accuracy/ilsvrc/testdata/grace_hopper.jpg diff --git a/tensorflow/contrib/lite/tools/accuracy/run_tflite_model_op.cc b/tensorflow/lite/tools/accuracy/run_tflite_model_op.cc similarity index 95% rename from tensorflow/contrib/lite/tools/accuracy/run_tflite_model_op.cc rename to tensorflow/lite/tools/accuracy/run_tflite_model_op.cc index da4258f1c131076f564f0002a3cd99b221a18852..5f413b8ee39324ecc4e74007ceb61689065ce9a8 100644 --- a/tensorflow/contrib/lite/tools/accuracy/run_tflite_model_op.cc +++ b/tensorflow/lite/tools/accuracy/run_tflite_model_op.cc @@ -16,12 +16,12 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/op_resolver.h" -#include "tensorflow/contrib/lite/tools/accuracy/utils.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/op_resolver.h" +#include "tensorflow/lite/tools/accuracy/utils.h" #include "tensorflow/core/framework/common_shape_fns.h" #include "tensorflow/core/framework/op_kernel.h" diff --git a/tensorflow/contrib/lite/tools/accuracy/run_tflite_model_op_test.cc b/tensorflow/lite/tools/accuracy/run_tflite_model_op_test.cc similarity index 100% rename from tensorflow/contrib/lite/tools/accuracy/run_tflite_model_op_test.cc rename to tensorflow/lite/tools/accuracy/run_tflite_model_op_test.cc diff --git a/tensorflow/contrib/lite/tools/accuracy/run_tflite_model_stage.cc b/tensorflow/lite/tools/accuracy/run_tflite_model_stage.cc similarity index 95% rename from tensorflow/contrib/lite/tools/accuracy/run_tflite_model_stage.cc rename to tensorflow/lite/tools/accuracy/run_tflite_model_stage.cc index c96795d4994ae3bee88da6ac6d26033c981b8d6a..6082290c0bc4fb6c7cbd0dc35f7ca7721103a9a5 100644 --- a/tensorflow/contrib/lite/tools/accuracy/run_tflite_model_stage.cc +++ b/tensorflow/lite/tools/accuracy/run_tflite_model_stage.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/run_tflite_model_stage.h" +#include "tensorflow/lite/tools/accuracy/run_tflite_model_stage.h" #include diff --git a/tensorflow/contrib/lite/tools/accuracy/run_tflite_model_stage.h b/tensorflow/lite/tools/accuracy/run_tflite_model_stage.h similarity index 85% rename from tensorflow/contrib/lite/tools/accuracy/run_tflite_model_stage.h rename to tensorflow/lite/tools/accuracy/run_tflite_model_stage.h index 90d12d6f424516859d6ca65c162663de44eeb391..61034491777a8d762339144f938d303ef0b8d29c 100644 --- a/tensorflow/contrib/lite/tools/accuracy/run_tflite_model_stage.h +++ b/tensorflow/lite/tools/accuracy/run_tflite_model_stage.h @@ -13,12 +13,12 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_RUN_TFLITE_MODEL_STAGE_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_RUN_TFLITE_MODEL_STAGE_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_RUN_TFLITE_MODEL_STAGE_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_RUN_TFLITE_MODEL_STAGE_H_ #include -#include "tensorflow/contrib/lite/tools/accuracy/stage.h" +#include "tensorflow/lite/tools/accuracy/stage.h" namespace tensorflow { namespace metrics { @@ -50,4 +50,4 @@ class RunTFLiteModelStage : public Stage { } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_RUN_TFLITE_MODEL_STAGE_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_RUN_TFLITE_MODEL_STAGE_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/stage.h b/tensorflow/lite/tools/accuracy/stage.h similarity index 90% rename from tensorflow/contrib/lite/tools/accuracy/stage.h rename to tensorflow/lite/tools/accuracy/stage.h index 8292ea2ec735dc6946a4516483b9b97e685e4949..0a9e3fbd055e67ff7764911df0dddc606ca488d1 100644 --- a/tensorflow/contrib/lite/tools/accuracy/stage.h +++ b/tensorflow/lite/tools/accuracy/stage.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_STAGE_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_STAGE_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_STAGE_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_STAGE_H_ #include "tensorflow/cc/framework/scope.h" @@ -53,4 +53,4 @@ class Stage { } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_STAGE_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_STAGE_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/utils.cc b/tensorflow/lite/tools/accuracy/utils.cc similarity index 92% rename from tensorflow/contrib/lite/tools/accuracy/utils.cc rename to tensorflow/lite/tools/accuracy/utils.cc index f5493301fc4d781418cc5c7397bae02ecc155c56..c19dc1ff7cca10745a367c027bef1067d117eb4a 100644 --- a/tensorflow/contrib/lite/tools/accuracy/utils.cc +++ b/tensorflow/lite/tools/accuracy/utils.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/accuracy/utils.h" +#include "tensorflow/lite/tools/accuracy/utils.h" #include @@ -22,10 +22,10 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/interpreter.h" -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/op_resolver.h" +#include "tensorflow/lite/interpreter.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/op_resolver.h" namespace tensorflow { namespace metrics { diff --git a/tensorflow/contrib/lite/tools/accuracy/utils.h b/tensorflow/lite/tools/accuracy/utils.h similarity index 85% rename from tensorflow/contrib/lite/tools/accuracy/utils.h rename to tensorflow/lite/tools/accuracy/utils.h index 37cbad4d51fd0ddf700b14ead037ae4aeed4d82a..5b7639317eff0b2404dd0de780b992805f659697 100644 --- a/tensorflow/contrib/lite/tools/accuracy/utils.h +++ b/tensorflow/lite/tools/accuracy/utils.h @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_UTILS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_UTILS_H_ +#ifndef TENSORFLOW_LITE_TOOLS_ACCURACY_UTILS_H_ +#define TENSORFLOW_LITE_TOOLS_ACCURACY_UTILS_H_ #include #include -#include "tensorflow/contrib/lite/context.h" +#include "tensorflow/lite/context.h" #include "tensorflow/core/framework/tensor_shape.h" namespace tensorflow { @@ -43,4 +43,4 @@ Status ReadFileLines(const string& file_path, } // namespace utils } // namespace metrics } // namespace tensorflow -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_ACCURACY_UTILS_H_ +#endif // TENSORFLOW_LITE_TOOLS_ACCURACY_UTILS_H_ diff --git a/tensorflow/contrib/lite/tools/accuracy/utils_test.cc b/tensorflow/lite/tools/accuracy/utils_test.cc similarity index 97% rename from tensorflow/contrib/lite/tools/accuracy/utils_test.cc rename to tensorflow/lite/tools/accuracy/utils_test.cc index 727eba21b6c6005d367130b23e31bc223508bc60..401872f18ffb3a5a35d2712b90b4624244b68917 100644 --- a/tensorflow/contrib/lite/tools/accuracy/utils_test.cc +++ b/tensorflow/lite/tools/accuracy/utils_test.cc @@ -18,7 +18,7 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/tools/accuracy/utils.h" +#include "tensorflow/lite/tools/accuracy/utils.h" #include "tensorflow/core/platform/init_main.h" #include "tensorflow/core/util/command_line_flags.h" diff --git a/tensorflow/contrib/lite/tools/benchmark/BUILD b/tensorflow/lite/tools/benchmark/BUILD similarity index 71% rename from tensorflow/contrib/lite/tools/benchmark/BUILD rename to tensorflow/lite/tools/benchmark/BUILD index f990493dc5ab50cd89738c3fc4f35a8567389083..7646bdcca9f2641acb9ecbc183e79dabe13b57d9 100644 --- a/tensorflow/contrib/lite/tools/benchmark/BUILD +++ b/tensorflow/lite/tools/benchmark/BUILD @@ -4,9 +4,9 @@ package(default_visibility = [ licenses(["notice"]) # Apache 2.0 -load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite") -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_linkopts") +load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:build_def.bzl", "tflite_linkopts") common_copts = ["-Wall"] + tflite_copts() @@ -51,8 +51,8 @@ cc_binary( deps = [ ":benchmark_tflite_model_lib", ":logging", - "//tensorflow/contrib/lite/delegates/flex:delegate", - "//tensorflow/contrib/lite/testing:init_tensorflow", + "//tensorflow/lite/delegates/flex:delegate", + "//tensorflow/lite/testing:init_tensorflow", ], ) @@ -60,9 +60,9 @@ cc_test( name = "benchmark_test", srcs = ["benchmark_test.cc"], args = [ - "--graph=$(location //tensorflow/contrib/lite:testdata/multi_add.bin)", + "--graph=$(location //tensorflow/lite:testdata/multi_add.bin)", ], - data = ["//tensorflow/contrib/lite:testdata/multi_add.bin"], + data = ["//tensorflow/lite:testdata/multi_add.bin"], tags = [ "tflite_not_portable_android", "tflite_not_portable_ios", @@ -70,7 +70,7 @@ cc_test( deps = [ ":benchmark_tflite_model_lib", ":command_line_flags", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -92,7 +92,7 @@ cc_test( visibility = ["//visibility:private"], deps = [ ":command_line_flags", - "//tensorflow/contrib/lite/testing:util", + "//tensorflow/lite/testing:util", "@com_google_googletest//:gtest", ], ) @@ -108,10 +108,10 @@ cc_library( deps = [ ":benchmark_model_lib", ":logging", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/profiling:profile_summarizer", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/profiling:profile_summarizer", ], ) @@ -136,13 +136,13 @@ cc_library( ":benchmark_params", ":command_line_flags", ":logging", - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite:string_util", - "//tensorflow/contrib/lite/kernels:builtin_ops", - "//tensorflow/contrib/lite/profiling:profile_summarizer", - "//tensorflow/contrib/lite/profiling:profiler", - "//tensorflow/contrib/lite/profiling:time", "//tensorflow/core:stats_calculator_portable", + "//tensorflow/lite:framework", + "//tensorflow/lite:string_util", + "//tensorflow/lite/kernels:builtin_ops", + "//tensorflow/lite/profiling:profile_summarizer", + "//tensorflow/lite/profiling:profiler", + "//tensorflow/lite/profiling:time", ], ) diff --git a/tensorflow/contrib/lite/tools/benchmark/README.md b/tensorflow/lite/tools/benchmark/README.md similarity index 96% rename from tensorflow/contrib/lite/tools/benchmark/README.md rename to tensorflow/lite/tools/benchmark/README.md index 8d997639fb7a363f911b1183dfb05d8138e4c531..a71a2fa1c0ec3c17b49c6acd62feacfb029c43d2 100644 --- a/tensorflow/contrib/lite/tools/benchmark/README.md +++ b/tensorflow/lite/tools/benchmark/README.md @@ -9,7 +9,7 @@ of runs. Aggregrate latency statistics are reported after running the benchmark. The instructions below are for running the binary on Desktop and Android, for iOS please use the -[iOS benchmark app](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/tools/benchmark/ios). +[iOS benchmark app](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/benchmark/ios). ## Parameters @@ -45,14 +45,14 @@ and the following optional parameters: bazel build -c opt \ --config=android_arm \ --cxxopt='--std=c++11' \ - tensorflow/contrib/lite/tools/benchmark:benchmark_model + tensorflow/lite/tools/benchmark:benchmark_model ``` (2) Connect your phone. Push the binary to your phone with adb push (make the directory if required): ``` -adb push bazel-bin/tensorflow/contrib/lite/tools/benchmark/benchmark_model /data/local/tmp +adb push bazel-bin/tensorflow/lite/tools/benchmark/benchmark_model /data/local/tmp ``` (3) Make the binary executable. @@ -79,14 +79,14 @@ adb shell /data/local/tmp/benchmark_model \ (1) build the binary ``` -bazel build -c opt tensorflow/contrib/lite/tools/benchmark:benchmark_model +bazel build -c opt tensorflow/lite/tools/benchmark:benchmark_model ``` (2) Run on your compute graph, similar to the Android case but without the need of adb shell. For example: ``` -bazel-bin/tensorflow/contrib/lite/tools/benchmark/benchmark_model \ +bazel-bin/tensorflow/lite/tools/benchmark/benchmark_model \ --graph=mobilenet_quant_v1_224.tflite \ --num_threads=4 ``` @@ -126,7 +126,7 @@ bazel build -c opt \ --config=android_arm \ --cxxopt='--std=c++11' \ --copt=-DTFLITE_PROFILING_ENABLED \ - tensorflow/contrib/lite/tools/benchmark:benchmark_model + tensorflow/lite/tools/benchmark:benchmark_model ``` This compiles TFLite with profiling enabled, now you can run the benchmark binary like before. The binary will produce detailed statistics for each operation similar to those shown below: diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_main.cc b/tensorflow/lite/tools/benchmark/benchmark_main.cc similarity index 89% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_main.cc rename to tensorflow/lite/tools/benchmark/benchmark_main.cc index 372d31e838e5666df492ee3156022249a2d97691..dcf82a8b7ec348f118a546f6dd8b640184b8abef 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_main.cc +++ b/tensorflow/lite/tools/benchmark/benchmark_main.cc @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.h" -#include "tensorflow/contrib/lite/tools/benchmark/logging.h" +#include "tensorflow/lite/tools/benchmark/benchmark_tflite_model.h" +#include "tensorflow/lite/tools/benchmark/logging.h" namespace tflite { namespace benchmark { diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_model.cc b/tensorflow/lite/tools/benchmark/benchmark_model.cc similarity index 96% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_model.cc rename to tensorflow/lite/tools/benchmark/benchmark_model.cc index f86c0445b0525cd053c733b18bb7f1205d310d43..05148aea65b6e5a517f5a538f26909994d53cc4f 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_model.cc +++ b/tensorflow/lite/tools/benchmark/benchmark_model.cc @@ -13,15 +13,15 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/benchmark/benchmark_model.h" +#include "tensorflow/lite/tools/benchmark/benchmark_model.h" #include #include #include -#include "tensorflow/contrib/lite/profiling/time.h" -#include "tensorflow/contrib/lite/tools/benchmark/logging.h" +#include "tensorflow/lite/profiling/time.h" +#include "tensorflow/lite/tools/benchmark/logging.h" namespace { void SleepForSeconds(double sleep_seconds) { diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_model.h b/tensorflow/lite/tools/benchmark/benchmark_model.h similarity index 93% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_model.h rename to tensorflow/lite/tools/benchmark/benchmark_model.h index cc215a7b7f08a959ca732773a54efdf928c1fc2e..d8a9b05010aba465b58d8b2616df8fce263035ce 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_model.h +++ b/tensorflow/lite/tools/benchmark/benchmark_model.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_MODEL_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_MODEL_H_ +#ifndef TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_MODEL_H_ +#define TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_MODEL_H_ #include #include @@ -23,8 +23,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/tools/benchmark/benchmark_params.h" -#include "tensorflow/contrib/lite/tools/benchmark/command_line_flags.h" +#include "tensorflow/lite/tools/benchmark/benchmark_params.h" +#include "tensorflow/lite/tools/benchmark/command_line_flags.h" #include "tensorflow/core/util/stats_calculator.h" namespace tflite { @@ -160,4 +160,4 @@ class BenchmarkModel { } // namespace benchmark } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_MODEL_H_ +#endif // TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_MODEL_H_ diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_params.cc b/tensorflow/lite/tools/benchmark/benchmark_params.cc similarity index 92% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_params.cc rename to tensorflow/lite/tools/benchmark/benchmark_params.cc index 1dcf580a9d4995e6cb3706d3562bc8a2f4670082..5ab3adff553674170563dbdbce17a6759582b5da 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_params.cc +++ b/tensorflow/lite/tools/benchmark/benchmark_params.cc @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/benchmark/benchmark_params.h" +#include "tensorflow/lite/tools/benchmark/benchmark_params.h" #include #include #include -#include "tensorflow/contrib/lite/tools/benchmark/logging.h" +#include "tensorflow/lite/tools/benchmark/logging.h" namespace tflite { namespace benchmark { diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_params.h b/tensorflow/lite/tools/benchmark/benchmark_params.h similarity index 90% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_params.h rename to tensorflow/lite/tools/benchmark/benchmark_params.h index c98f47bb0d89864dff54d7cdebe764e56e4cfda2..594baa5b4ec1ecb3e721689c64698dea8e2ab5b4 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_params.h +++ b/tensorflow/lite/tools/benchmark/benchmark_params.h @@ -13,14 +13,14 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_PARAMS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_PARAMS_H_ +#ifndef TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_PARAMS_H_ +#define TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_PARAMS_H_ #include #include #include #include -#include "tensorflow/contrib/lite/tools/benchmark/logging.h" +#include "tensorflow/lite/tools/benchmark/logging.h" namespace tflite { namespace benchmark { @@ -98,4 +98,4 @@ class BenchmarkParams { } // namespace benchmark } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_PARAMS_H_ +#endif // TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_PARAMS_H_ diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_plus_flex_main.cc b/tensorflow/lite/tools/benchmark/benchmark_plus_flex_main.cc similarity index 85% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_plus_flex_main.cc rename to tensorflow/lite/tools/benchmark/benchmark_plus_flex_main.cc index b9cf6c67d2fe941e180b0c80b58c5e8d837dd4ff..6e72a293770afd5f47220df15152a69ba7d3a559 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_plus_flex_main.cc +++ b/tensorflow/lite/tools/benchmark/benchmark_plus_flex_main.cc @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/testing/init_tensorflow.h" -#include "tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.h" -#include "tensorflow/contrib/lite/tools/benchmark/logging.h" +#include "tensorflow/lite/testing/init_tensorflow.h" +#include "tensorflow/lite/tools/benchmark/benchmark_tflite_model.h" +#include "tensorflow/lite/tools/benchmark/logging.h" namespace tflite { namespace benchmark { diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_test.cc b/tensorflow/lite/tools/benchmark/benchmark_test.cc similarity index 92% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_test.cc rename to tensorflow/lite/tools/benchmark/benchmark_test.cc index b697bb394db9b967dfaaff649517dcc23e85ccb0..59d23d90086761422ebbf8f7164a1626cd164dd2 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_test.cc +++ b/tensorflow/lite/tools/benchmark/benchmark_test.cc @@ -18,9 +18,9 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/testing/util.h" -#include "tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.h" -#include "tensorflow/contrib/lite/tools/benchmark/command_line_flags.h" +#include "tensorflow/lite/testing/util.h" +#include "tensorflow/lite/tools/benchmark/benchmark_tflite_model.h" +#include "tensorflow/lite/tools/benchmark/command_line_flags.h" namespace { const std::string* g_model_path = nullptr; diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.cc b/tensorflow/lite/tools/benchmark/benchmark_tflite_model.cc similarity index 97% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.cc rename to tensorflow/lite/tools/benchmark/benchmark_tflite_model.cc index 2a3df7f289ffb7ac1ad3ebc2d6fc42ecf67e2be9..e063a144b66b1c963e6184ec825e82ec61264dad 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.cc +++ b/tensorflow/lite/tools/benchmark/benchmark_tflite_model.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.h" +#include "tensorflow/lite/tools/benchmark/benchmark_tflite_model.h" #include #include @@ -23,11 +23,11 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/kernels/register.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/op_resolver.h" -#include "tensorflow/contrib/lite/string_util.h" -#include "tensorflow/contrib/lite/tools/benchmark/logging.h" +#include "tensorflow/lite/kernels/register.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/op_resolver.h" +#include "tensorflow/lite/string_util.h" +#include "tensorflow/lite/tools/benchmark/logging.h" #ifdef TFLITE_CUSTOM_OPS_HEADER void RegisterSelectedOps(::tflite::MutableOpResolver* resolver); diff --git a/tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.h b/tensorflow/lite/tools/benchmark/benchmark_tflite_model.h similarity index 84% rename from tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.h rename to tensorflow/lite/tools/benchmark/benchmark_tflite_model.h index 25a302b2aaea400ea66e76dae3e6add71180e1cc..8ad3a5dbe50980e7815843e1ef5744249d596552 100644 --- a/tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.h +++ b/tensorflow/lite/tools/benchmark/benchmark_tflite_model.h @@ -13,16 +13,16 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_TFLITE_MODEL_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_TFLITE_MODEL_H_ +#ifndef TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_TFLITE_MODEL_H_ +#define TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_TFLITE_MODEL_H_ #include #include #include -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/profiling/profile_summarizer.h" -#include "tensorflow/contrib/lite/tools/benchmark/benchmark_model.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/profiling/profile_summarizer.h" +#include "tensorflow/lite/tools/benchmark/benchmark_model.h" namespace tflite { namespace benchmark { @@ -79,4 +79,4 @@ class BenchmarkTfLiteModel : public BenchmarkModel { } // namespace benchmark } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_BENCHMARK_TFLITE_MODEL_H_ +#endif // TENSORFLOW_LITE_TOOLS_BENCHMARK_BENCHMARK_TFLITE_MODEL_H_ diff --git a/tensorflow/contrib/lite/tools/benchmark/command_line_flags.cc b/tensorflow/lite/tools/benchmark/command_line_flags.cc similarity index 98% rename from tensorflow/contrib/lite/tools/benchmark/command_line_flags.cc rename to tensorflow/lite/tools/benchmark/command_line_flags.cc index ff818b9dcb5ee0b58b95c3dceae74083dbd4f0da..002fa7dea3e9c01dec96e074d0db6c869cc0d791 100644 --- a/tensorflow/contrib/lite/tools/benchmark/command_line_flags.cc +++ b/tensorflow/lite/tools/benchmark/command_line_flags.cc @@ -10,7 +10,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/benchmark/command_line_flags.h" +#include "tensorflow/lite/tools/benchmark/command_line_flags.h" #include #include diff --git a/tensorflow/contrib/lite/tools/benchmark/command_line_flags.h b/tensorflow/lite/tools/benchmark/command_line_flags.h similarity index 95% rename from tensorflow/contrib/lite/tools/benchmark/command_line_flags.h rename to tensorflow/lite/tools/benchmark/command_line_flags.h index 6a0affd83449350d6268fc845aa0997f14809525..cc71450053ee8d9006e4c3ab06cfd9a5163e6bee 100644 --- a/tensorflow/contrib/lite/tools/benchmark/command_line_flags.h +++ b/tensorflow/lite/tools/benchmark/command_line_flags.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_COMMAND_LINE_FLAGS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_COMMAND_LINE_FLAGS_H_ +#ifndef TENSORFLOW_LITE_TOOLS_BENCHMARK_COMMAND_LINE_FLAGS_H_ +#define TENSORFLOW_LITE_TOOLS_BENCHMARK_COMMAND_LINE_FLAGS_H_ #include #include @@ -120,4 +120,4 @@ class Flags { } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_COMMAND_LINE_FLAGS_H_ +#endif // TENSORFLOW_LITE_TOOLS_BENCHMARK_COMMAND_LINE_FLAGS_H_ diff --git a/tensorflow/contrib/lite/tools/benchmark/command_line_flags_test.cc b/tensorflow/lite/tools/benchmark/command_line_flags_test.cc similarity index 97% rename from tensorflow/contrib/lite/tools/benchmark/command_line_flags_test.cc rename to tensorflow/lite/tools/benchmark/command_line_flags_test.cc index 03da8051099899241fa5241374d754adb1aa93c6..36eb75b06a84e828b20c271c52fff4ad97cdf6cd 100644 --- a/tensorflow/contrib/lite/tools/benchmark/command_line_flags_test.cc +++ b/tensorflow/lite/tools/benchmark/command_line_flags_test.cc @@ -13,10 +13,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/benchmark/command_line_flags.h" +#include "tensorflow/lite/tools/benchmark/command_line_flags.h" #include #include -#include "tensorflow/contrib/lite/testing/util.h" +#include "tensorflow/lite/testing/util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/README.md b/tensorflow/lite/tools/benchmark/ios/README.md similarity index 84% rename from tensorflow/contrib/lite/tools/benchmark/ios/README.md rename to tensorflow/lite/tools/benchmark/ios/README.md index 46144f7bf8e142b960d3fe1068686e366bb6c198..3dc29d9b94119564344e2060665daf585a3acd2d 100644 --- a/tensorflow/contrib/lite/tools/benchmark/ios/README.md +++ b/tensorflow/lite/tools/benchmark/ios/README.md @@ -18,15 +18,15 @@ Mobilenet_1.0_224 model ## To build/install/run - Follow instructions at -[iOS build for TFLite](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/g3doc/ios.md) +[iOS build for TFLite](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/ios.md) to build TFLite. Running ```bash -tensorflow/contrib/lite/build_ios_universal_lib.sh +tensorflow/lite/build_ios_universal_lib.sh ``` -will also build `tensorflow/contrib/lite/gen/lib/benchmark-lib.a` . +will also build `tensorflow/lite/gen/lib/benchmark-lib.a` . - Now copy the downloaded model file to `benchmark_data` directory. @@ -37,7 +37,7 @@ and other benchmark parameters. resources that need to be copied. - Ensure that `Build Phases -> Link Binary With Library` contains the -`Accelerate framework` and `tensorflow/contrib/lite/gen/lib/benchmark-lib.a`. +`Accelerate framework` and `tensorflow/lite/gen/lib/benchmark-lib.a`. - Now try running the app. The app has a single button that runs the benchmark on the model and displays results in a text view below. diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark.xcodeproj/project.pbxproj b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark.xcodeproj/project.pbxproj similarity index 92% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark.xcodeproj/project.pbxproj rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark.xcodeproj/project.pbxproj index 8436c7528180409838087e8eddd340187bbcd0a1..958936a6607effbca927e0c8cd9db7e47617acc8 100644 --- a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark.xcodeproj/project.pbxproj +++ b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark.xcodeproj/project.pbxproj @@ -20,7 +20,7 @@ /* Begin PBXFileReference section */ 6FE7579920D59CE500F01636 /* benchmark_params.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = benchmark_params.json; sourceTree = ""; }; - 6FE7579C20D5A5E000F01636 /* benchmark-lib.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "benchmark-lib.a"; path = "$SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/gen/lib/benchmark-lib.a"; sourceTree = ""; }; + 6FE7579C20D5A5E000F01636 /* benchmark-lib.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "benchmark-lib.a"; path = "$SRCROOT/../../../../../../../tensorflow/lite/tools/make/gen/lib/benchmark-lib.a"; sourceTree = ""; }; 6FE7579E20D5A6A700F01636 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = System/Library/Frameworks/Accelerate.framework; sourceTree = SDKROOT; }; 6FE757A020D5AB8000F01636 /* mobilenet_v1_1.0_224.tflite */ = {isa = PBXFileReference; lastKnownFileType = file; path = mobilenet_v1_1.0_224.tflite; sourceTree = ""; }; 6FE93FF820D592D8008C9FE4 /* TFLiteBenchmark.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TFLiteBenchmark.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -310,18 +310,18 @@ CODE_SIGN_STYLE = Automatic; "HEADER_SEARCH_PATHS[arch=*]" = ( $SRCROOT/../../../../../../../, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/eigen, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/gemmlowp, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/neon_2_sse, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/farmhash/src, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/flatbuffers/include, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/eigen, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/gemmlowp, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/neon_2_sse, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/farmhash/src, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include, ); INFOPLIST_FILE = TFLiteBenchmark/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - "LIBRARY_SEARCH_PATHS[arch=*]" = $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/gen/lib; + "LIBRARY_SEARCH_PATHS[arch=*]" = $SRCROOT/../../../../../../../tensorflow/lite/tools/make/gen/lib; PRODUCT_BUNDLE_IDENTIFIER = example.TFLiteBenchmark; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; @@ -336,18 +336,18 @@ CODE_SIGN_STYLE = Automatic; "HEADER_SEARCH_PATHS[arch=*]" = ( $SRCROOT/../../../../../../../, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/eigen, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/gemmlowp, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/neon_2_sse, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/farmhash/src, - $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/downloads/flatbuffers/include, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/eigen, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/gemmlowp, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/neon_2_sse, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/farmhash/src, + $SRCROOT/../../../../../../../tensorflow/lite/tools/make/downloads/flatbuffers/include, ); INFOPLIST_FILE = TFLiteBenchmark/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - "LIBRARY_SEARCH_PATHS[arch=*]" = $SRCROOT/../../../../../../../tensorflow/contrib/lite/tools/make/gen/lib; + "LIBRARY_SEARCH_PATHS[arch=*]" = $SRCROOT/../../../../../../../tensorflow/lite/tools/make/gen/lib; PRODUCT_BUNDLE_IDENTIFIER = example.TFLiteBenchmark; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/AppDelegate.h b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/AppDelegate.h similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/AppDelegate.h rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/AppDelegate.h diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/AppDelegate.m b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/AppDelegate.m similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/AppDelegate.m rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/AppDelegate.m diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Assets.xcassets/AppIcon.appiconset/Contents.json b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Assets.xcassets/AppIcon.appiconset/Contents.json rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Assets.xcassets/Contents.json b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Assets.xcassets/Contents.json similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Assets.xcassets/Contents.json rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Assets.xcassets/Contents.json diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Base.lproj/LaunchScreen.storyboard b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Base.lproj/LaunchScreen.storyboard rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Base.lproj/LaunchScreen.storyboard diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Base.lproj/Main.storyboard b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Base.lproj/Main.storyboard similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Base.lproj/Main.storyboard rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Base.lproj/Main.storyboard diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.h b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.h similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.h rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.h diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.mm b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.mm similarity index 97% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.mm rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.mm index 356d5b0e17abc715de9b8f7a20ec7459f3468da1..590c215f51546f04475f0f84828058b33dfe187d 100644 --- a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.mm +++ b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/BenchmarkViewController.mm @@ -18,8 +18,8 @@ #import #import #import -#import "tensorflow/contrib/lite/tools/benchmark/benchmark_tflite_model.h" -#import "tensorflow/contrib/lite/tools/benchmark/logging.h" +#import "tensorflow/lite/tools/benchmark/benchmark_tflite_model.h" +#import "tensorflow/lite/tools/benchmark/logging.h" namespace { NSString* FilePathForResourceName(NSString* filename) { diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Info.plist b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Info.plist similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Info.plist rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/Info.plist diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/benchmark_data/benchmark_params.json b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/benchmark_data/benchmark_params.json similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/benchmark_data/benchmark_params.json rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/benchmark_data/benchmark_params.json diff --git a/tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/main.m b/tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/main.m similarity index 100% rename from tensorflow/contrib/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/main.m rename to tensorflow/lite/tools/benchmark/ios/TFLiteBenchmark/TFLiteBenchmark/main.m diff --git a/tensorflow/contrib/lite/tools/benchmark/logging.h b/tensorflow/lite/tools/benchmark/logging.h similarity index 92% rename from tensorflow/contrib/lite/tools/benchmark/logging.h rename to tensorflow/lite/tools/benchmark/logging.h index 4045d1e7311512ee56f60601b3ddb0560ba1bffa..71dd511a080ecc6297daa9adb863c543a042dd88 100644 --- a/tensorflow/contrib/lite/tools/benchmark/logging.h +++ b/tensorflow/lite/tools/benchmark/logging.h @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_LOGGING_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_LOGGING_H_ +#ifndef TENSORFLOW_LITE_TOOLS_BENCHMARK_LOGGING_H_ +#define TENSORFLOW_LITE_TOOLS_BENCHMARK_LOGGING_H_ // LOG and CHECK macros for benchmarks. @@ -73,4 +73,4 @@ class LoggingWrapper { #define TFLITE_BENCHMARK_CHECK_EQ(a, b) TFLITE_BENCHMARK_CHECK(a == b) -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_BENCHMARK_LOGGING_H_ +#endif // TENSORFLOW_LITE_TOOLS_BENCHMARK_LOGGING_H_ diff --git a/tensorflow/contrib/lite/tools/gen_op_registration.cc b/tensorflow/lite/tools/gen_op_registration.cc similarity index 93% rename from tensorflow/contrib/lite/tools/gen_op_registration.cc rename to tensorflow/lite/tools/gen_op_registration.cc index d80ea59170b4edc67ca45a4410890f60cf5259e7..ca66eef46607ae43c7c1c0ec2de6098ca4c71e14 100644 --- a/tensorflow/contrib/lite/tools/gen_op_registration.cc +++ b/tensorflow/lite/tools/gen_op_registration.cc @@ -16,8 +16,8 @@ limitations under the License. #include #include "re2/re2.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/tools/gen_op_registration.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/tools/gen_op_registration.h" namespace tflite { diff --git a/tensorflow/contrib/lite/tools/gen_op_registration.h b/tensorflow/lite/tools/gen_op_registration.h similarity index 82% rename from tensorflow/contrib/lite/tools/gen_op_registration.h rename to tensorflow/lite/tools/gen_op_registration.h index 5f2ac6ca97fde9a2fe6f4bcf20184f6ef6606f0b..a616720c934b9ed302defd139a4e48d94496d61d 100644 --- a/tensorflow/contrib/lite/tools/gen_op_registration.h +++ b/tensorflow/lite/tools/gen_op_registration.h @@ -12,11 +12,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_GEN_OP_REGISTRATION_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_GEN_OP_REGISTRATION_H_ +#ifndef TENSORFLOW_LITE_TOOLS_GEN_OP_REGISTRATION_H_ +#define TENSORFLOW_LITE_TOOLS_GEN_OP_REGISTRATION_H_ -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/string.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/string.h" namespace tflite { @@ -36,4 +36,4 @@ void ReadOpsFromModel(const ::tflite::Model* model, } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_GEN_OP_REGISTRATION_H_ +#endif // TENSORFLOW_LITE_TOOLS_GEN_OP_REGISTRATION_H_ diff --git a/tensorflow/contrib/lite/tools/gen_op_registration_main.cc b/tensorflow/lite/tools/gen_op_registration_main.cc similarity index 98% rename from tensorflow/contrib/lite/tools/gen_op_registration_main.cc rename to tensorflow/lite/tools/gen_op_registration_main.cc index f7df80821fc383063c6e19148bfb13801368b334..090b709478d7e73a731a6e87fbdcb1445fa84c8a 100644 --- a/tensorflow/contrib/lite/tools/gen_op_registration_main.cc +++ b/tensorflow/lite/tools/gen_op_registration_main.cc @@ -21,7 +21,7 @@ limitations under the License. #include #include "absl/strings/strip.h" -#include "tensorflow/contrib/lite/tools/gen_op_registration.h" +#include "tensorflow/lite/tools/gen_op_registration.h" #include "tensorflow/core/platform/init_main.h" #include "tensorflow/core/util/command_line_flags.h" diff --git a/tensorflow/contrib/lite/tools/gen_op_registration_test.cc b/tensorflow/lite/tools/gen_op_registration_test.cc similarity index 88% rename from tensorflow/contrib/lite/tools/gen_op_registration_test.cc rename to tensorflow/lite/tools/gen_op_registration_test.cc index 28a98d68ab23a558a682dd6debb6081f2a1640dc..0ae91018ddf3db0ae0e36fd78545c72cd6dba2ca 100644 --- a/tensorflow/contrib/lite/tools/gen_op_registration_test.cc +++ b/tensorflow/lite/tools/gen_op_registration_test.cc @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/gen_op_registration.h" +#include "tensorflow/lite/tools/gen_op_registration.h" #include #include @@ -43,25 +43,25 @@ TEST_F(GenOpRegistrationTest, TestNonExistantFiles) { } TEST_F(GenOpRegistrationTest, TestModels) { - ReadOps("tensorflow/contrib/lite/testdata/test_model.bin"); + ReadOps("tensorflow/lite/testdata/test_model.bin"); EXPECT_THAT(builtin_ops_, ElementsAreArray({"CONV_2D"})); EXPECT_THAT(custom_ops_, ElementsAreArray({"testing_op"})); } TEST_F(GenOpRegistrationTest, TestEmptyModels) { - ReadOps("tensorflow/contrib/lite/testdata/empty_model.bin"); + ReadOps("tensorflow/lite/testdata/empty_model.bin"); EXPECT_EQ(builtin_ops_.size(), 0); EXPECT_EQ(custom_ops_.size(), 0); } TEST_F(GenOpRegistrationTest, TestZeroSubgraphs) { - ReadOps("tensorflow/contrib/lite/testdata/0_subgraphs.bin"); + ReadOps("tensorflow/lite/testdata/0_subgraphs.bin"); EXPECT_EQ(builtin_ops_.size(), 0); EXPECT_EQ(custom_ops_.size(), 0); } TEST_F(GenOpRegistrationTest, TestBrokenMmap) { - ReadOps("tensorflow/contrib/lite/testdata/test_model_broken.bin"); + ReadOps("tensorflow/lite/testdata/test_model_broken.bin"); EXPECT_EQ(builtin_ops_.size(), 0); EXPECT_EQ(custom_ops_.size(), 0); } diff --git a/tensorflow/contrib/lite/tools/make/Makefile b/tensorflow/lite/tools/make/Makefile similarity index 77% rename from tensorflow/contrib/lite/tools/make/Makefile rename to tensorflow/lite/tools/make/Makefile index 16012a3fb16398003eb6cc934e6fe91318b2849a..8f123558545723a603646523aad5dd47cb620e46 100644 --- a/tensorflow/contrib/lite/tools/make/Makefile +++ b/tensorflow/lite/tools/make/Makefile @@ -20,7 +20,7 @@ endif HOST_ARCH := $(shell if [[ $(shell uname -m) =~ i[345678]86 ]]; then echo x86_32; else echo $(shell uname -m); fi) # Override these on the make command line to target a specific architecture. For example: -# make -f tensorflow/contrib/lite/Makefile TARGET=rpi TARGET_ARCH=armv7l +# make -f tensorflow/lite/Makefile TARGET=rpi TARGET_ARCH=armv7l TARGET := $(HOST_OS) TARGET_ARCH := $(HOST_ARCH) @@ -70,55 +70,55 @@ BENCHMARK_BINARY_NAME := benchmark_model # A small example program that shows how to link against the library. MINIMAL_SRCS := \ -tensorflow/contrib/lite/examples/minimal/minimal.cc +tensorflow/lite/examples/minimal/minimal.cc # What sources we want to compile, must be kept in sync with the main Bazel # build files. PROFILER_SRCS := \ - tensorflow/contrib/lite/profiling/time.cc + tensorflow/lite/profiling/time.cc PROFILE_SUMMARIZER_SRCS := \ - tensorflow/contrib/lite/profiling/profile_summarizer.cc \ + tensorflow/lite/profiling/profile_summarizer.cc \ tensorflow/core/util/stats_calculator.cc CORE_CC_ALL_SRCS := \ -$(wildcard tensorflow/contrib/lite/*.cc) \ -$(wildcard tensorflow/contrib/lite/*.c) \ -$(wildcard tensorflow/contrib/lite/c/*.c) \ -$(wildcard tensorflow/contrib/lite/core/api/*.cc) +$(wildcard tensorflow/lite/*.cc) \ +$(wildcard tensorflow/lite/*.c) \ +$(wildcard tensorflow/lite/c/*.c) \ +$(wildcard tensorflow/lite/core/api/*.cc) ifneq ($(BUILD_TYPE),micro) CORE_CC_ALL_SRCS += \ -$(wildcard tensorflow/contrib/lite/kernels/*.cc) \ -$(wildcard tensorflow/contrib/lite/kernels/internal/*.cc) \ -$(wildcard tensorflow/contrib/lite/kernels/internal/optimized/*.cc) \ -$(wildcard tensorflow/contrib/lite/kernels/internal/reference/*.cc) \ +$(wildcard tensorflow/lite/kernels/*.cc) \ +$(wildcard tensorflow/lite/kernels/internal/*.cc) \ +$(wildcard tensorflow/lite/kernels/internal/optimized/*.cc) \ +$(wildcard tensorflow/lite/kernels/internal/reference/*.cc) \ $(PROFILER_SRCS) \ -$(wildcard tensorflow/contrib/lite/kernels/*.c) \ -$(wildcard tensorflow/contrib/lite/kernels/internal/*.c) \ -$(wildcard tensorflow/contrib/lite/kernels/internal/optimized/*.c) \ -$(wildcard tensorflow/contrib/lite/kernels/internal/reference/*.c) \ -$(wildcard tensorflow/contrib/lite/tools/make/downloads/farmhash/src/farmhash.cc) \ -$(wildcard tensorflow/contrib/lite/tools/make/downloads/fft2d/fftsg.c) +$(wildcard tensorflow/lite/kernels/*.c) \ +$(wildcard tensorflow/lite/kernels/internal/*.c) \ +$(wildcard tensorflow/lite/kernels/internal/optimized/*.c) \ +$(wildcard tensorflow/lite/kernels/internal/reference/*.c) \ +$(wildcard tensorflow/lite/tools/make/downloads/farmhash/src/farmhash.cc) \ +$(wildcard tensorflow/lite/tools/make/downloads/fft2d/fftsg.c) endif # Remove any duplicates. CORE_CC_ALL_SRCS := $(sort $(CORE_CC_ALL_SRCS)) CORE_CC_EXCLUDE_SRCS := \ -$(wildcard tensorflow/contrib/lite/*test.cc) \ -$(wildcard tensorflow/contrib/lite/*/*test.cc) \ -$(wildcard tensorflow/contrib/lite/*/*/*test.cc) \ -$(wildcard tensorflow/contrib/lite/*/*/*/*test.cc) \ -$(wildcard tensorflow/contrib/lite/kernels/test_util.cc) \ +$(wildcard tensorflow/lite/*test.cc) \ +$(wildcard tensorflow/lite/*/*test.cc) \ +$(wildcard tensorflow/lite/*/*/*test.cc) \ +$(wildcard tensorflow/lite/*/*/*/*test.cc) \ +$(wildcard tensorflow/lite/kernels/test_util.cc) \ $(MINIMAL_SRCS) ifeq ($(BUILD_TYPE),micro) CORE_CC_EXCLUDE_SRCS += \ -tensorflow/contrib/lite/mmap_allocation.cc \ -tensorflow/contrib/lite/nnapi_delegate.cc +tensorflow/lite/mmap_allocation.cc \ +tensorflow/lite/nnapi_delegate.cc endif # Filter out all the excluded files. TF_LITE_CC_SRCS := $(filter-out $(CORE_CC_EXCLUDE_SRCS), $(CORE_CC_ALL_SRCS)) # Benchmark sources -BENCHMARK_SRCS_DIR := tensorflow/contrib/lite/tools/benchmark +BENCHMARK_SRCS_DIR := tensorflow/lite/tools/benchmark BENCHMARK_ALL_SRCS := $(TFLITE_CC_SRCS) \ $(wildcard $(BENCHMARK_SRCS_DIR)/*.cc) \ $(PROFILE_SUMMARIZER_SRCS) @@ -180,11 +180,11 @@ all: $(LIB_PATH) $(MINIMAL_BINARY) $(BENCHMARK_BINARY) micro: $(LIB_PATH) # Hack for generating schema file bypassing flatbuffer parsing -tensorflow/contrib/lite/schema/schema_generated.h: - @cp -u tensorflow/contrib/lite/schema/schema_generated.h.OPENSOURCE tensorflow/contrib/lite/schema/schema_generated.h +tensorflow/lite/schema/schema_generated.h: + @cp -u tensorflow/lite/schema/schema_generated.h.OPENSOURCE tensorflow/lite/schema/schema_generated.h # Gathers together all the objects we've compiled into a single '.a' archive. -$(LIB_PATH): tensorflow/contrib/lite/schema/schema_generated.h $(LIB_OBJS) +$(LIB_PATH): tensorflow/lite/schema/schema_generated.h $(LIB_OBJS) @mkdir -p $(dir $@) $(AR) $(ARFLAGS) $(LIB_PATH) $(LIB_OBJS) diff --git a/tensorflow/contrib/lite/tools/make/build_ios_universal_lib.sh b/tensorflow/lite/tools/make/build_ios_universal_lib.sh similarity index 69% rename from tensorflow/contrib/lite/tools/make/build_ios_universal_lib.sh rename to tensorflow/lite/tools/make/build_ios_universal_lib.sh index fe056945a652b04d078947f58bfe6ab60aa1f387..477883b49095b2017770e076abacb31e9e97c8f7 100755 --- a/tensorflow/contrib/lite/tools/make/build_ios_universal_lib.sh +++ b/tensorflow/lite/tools/make/build_ios_universal_lib.sh @@ -23,17 +23,17 @@ cd "$SCRIPT_DIR/../../../../.." make_library() { for arch in x86_64 armv7 armv7s arm64 do - make -f tensorflow/contrib/lite/tools/make/Makefile TARGET=ios TARGET_ARCH=${arch} \ + make -f tensorflow/lite/tools/make/Makefile TARGET=ios TARGET_ARCH=${arch} \ -j 8 done - mkdir -p tensorflow/contrib/lite/tools/make/gen/lib + mkdir -p tensorflow/lite/tools/make/gen/lib lipo \ - tensorflow/contrib/lite/tools/make/gen/ios_x86_64/lib/${1} \ - tensorflow/contrib/lite/tools/make/gen/ios_armv7/lib/${1} \ - tensorflow/contrib/lite/tools/make/gen/ios_armv7s/lib/${1} \ - tensorflow/contrib/lite/tools/make/gen/ios_arm64/lib/${1} \ + tensorflow/lite/tools/make/gen/ios_x86_64/lib/${1} \ + tensorflow/lite/tools/make/gen/ios_armv7/lib/${1} \ + tensorflow/lite/tools/make/gen/ios_armv7s/lib/${1} \ + tensorflow/lite/tools/make/gen/ios_arm64/lib/${1} \ -create \ - -output tensorflow/contrib/lite/tools/make/gen/lib/${1} + -output tensorflow/lite/tools/make/gen/lib/${1} } make_library libtensorflow-lite.a diff --git a/tensorflow/contrib/lite/tools/make/build_rpi_lib.sh b/tensorflow/lite/tools/make/build_rpi_lib.sh similarity index 87% rename from tensorflow/contrib/lite/tools/make/build_rpi_lib.sh rename to tensorflow/lite/tools/make/build_rpi_lib.sh index 24ecd4356df12c25dbdbf81684b7de128e8d11f4..d4047bb0eb5071432d4628fef1cbebbe7e023f8c 100755 --- a/tensorflow/contrib/lite/tools/make/build_rpi_lib.sh +++ b/tensorflow/lite/tools/make/build_rpi_lib.sh @@ -19,4 +19,4 @@ set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$SCRIPT_DIR/../../../../.." -CC_PREFIX=arm-linux-gnueabihf- make -j 3 -f tensorflow/contrib/lite/tools/make/Makefile TARGET=rpi TARGET_ARCH=armv7l +CC_PREFIX=arm-linux-gnueabihf- make -j 3 -f tensorflow/lite/tools/make/Makefile TARGET=rpi TARGET_ARCH=armv7l diff --git a/tensorflow/contrib/lite/tools/make/download_dependencies.sh b/tensorflow/lite/tools/make/download_dependencies.sh similarity index 98% rename from tensorflow/contrib/lite/tools/make/download_dependencies.sh rename to tensorflow/lite/tools/make/download_dependencies.sh index 3570f9a38d3fdc435e5c0caeb04da39c422710f1..aa5495329b10577447f5d3ade8faf157021dde3a 100755 --- a/tensorflow/contrib/lite/tools/make/download_dependencies.sh +++ b/tensorflow/lite/tools/make/download_dependencies.sh @@ -19,7 +19,7 @@ set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$SCRIPT_DIR/../../../../.." -DOWNLOADS_DIR=tensorflow/contrib/lite/tools/make/downloads +DOWNLOADS_DIR=tensorflow/lite/tools/make/downloads BZL_FILE_PATH=tensorflow/workspace.bzl # Ensure it is being run from repo root diff --git a/tensorflow/contrib/lite/tools/make/targets/ios_makefile.inc b/tensorflow/lite/tools/make/targets/ios_makefile.inc similarity index 100% rename from tensorflow/contrib/lite/tools/make/targets/ios_makefile.inc rename to tensorflow/lite/tools/make/targets/ios_makefile.inc diff --git a/tensorflow/contrib/lite/tools/make/targets/linux_makefile.inc b/tensorflow/lite/tools/make/targets/linux_makefile.inc similarity index 100% rename from tensorflow/contrib/lite/tools/make/targets/linux_makefile.inc rename to tensorflow/lite/tools/make/targets/linux_makefile.inc diff --git a/tensorflow/contrib/lite/tools/make/targets/riscv_makefile.inc b/tensorflow/lite/tools/make/targets/riscv_makefile.inc similarity index 100% rename from tensorflow/contrib/lite/tools/make/targets/riscv_makefile.inc rename to tensorflow/lite/tools/make/targets/riscv_makefile.inc diff --git a/tensorflow/contrib/lite/tools/make/targets/rpi_makefile.inc b/tensorflow/lite/tools/make/targets/rpi_makefile.inc similarity index 100% rename from tensorflow/contrib/lite/tools/make/targets/rpi_makefile.inc rename to tensorflow/lite/tools/make/targets/rpi_makefile.inc diff --git a/tensorflow/contrib/lite/tools/make/targets/stm32f1_makefile.inc b/tensorflow/lite/tools/make/targets/stm32f1_makefile.inc similarity index 100% rename from tensorflow/contrib/lite/tools/make/targets/stm32f1_makefile.inc rename to tensorflow/lite/tools/make/targets/stm32f1_makefile.inc diff --git a/tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc b/tensorflow/lite/tools/make/targets/stm32f7_makefile.inc similarity index 100% rename from tensorflow/contrib/lite/tools/make/targets/stm32f7_makefile.inc rename to tensorflow/lite/tools/make/targets/stm32f7_makefile.inc diff --git a/tensorflow/contrib/lite/tools/optimize/BUILD b/tensorflow/lite/tools/optimize/BUILD similarity index 67% rename from tensorflow/contrib/lite/tools/optimize/BUILD rename to tensorflow/lite/tools/optimize/BUILD index 51ccaedc23d0abfda83295879b007f2479d0c571..0a0d5cc4123ba64c7208c5e74344248b28af6851 100644 --- a/tensorflow/contrib/lite/tools/optimize/BUILD +++ b/tensorflow/lite/tools/optimize/BUILD @@ -8,17 +8,17 @@ licenses(["notice"]) # Apache 2.0 exports_files(["LICENSE"]) -load("//tensorflow/contrib/lite:build_def.bzl", "tflite_copts") +load("//tensorflow/lite:build_def.bzl", "tflite_copts") cc_library( name = "quantize_weights", srcs = ["quantize_weights.cc"], hdrs = ["quantize_weights.h"], deps = [ - "//tensorflow/contrib/lite:framework", - "//tensorflow/contrib/lite/kernels/internal:tensor_utils", - "//tensorflow/contrib/lite/schema:schema_fbs", "//tensorflow/core:tflite_portable_logging", + "//tensorflow/lite:framework", + "//tensorflow/lite/kernels/internal:tensor_utils", + "//tensorflow/lite/schema:schema_fbs", "@com_google_absl//absl/memory", "@flatbuffers", ], diff --git a/tensorflow/contrib/lite/tools/optimize/g3doc/quantize_weights.md b/tensorflow/lite/tools/optimize/g3doc/quantize_weights.md similarity index 96% rename from tensorflow/contrib/lite/tools/optimize/g3doc/quantize_weights.md rename to tensorflow/lite/tools/optimize/g3doc/quantize_weights.md index 93fe576583eaaf43e6fae8a63f4480dae59c3568..2517882c84c3079d134e2b144aae2bcfec4059af 100644 --- a/tensorflow/contrib/lite/tools/optimize/g3doc/quantize_weights.md +++ b/tensorflow/lite/tools/optimize/g3doc/quantize_weights.md @@ -3,7 +3,7 @@ ## Recommended usage The Quantize Weights transformation is integrated with -[tflite_convert](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/toco/g3doc/cmdline_reference.md#transformation-flags). +[tflite_convert](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/toco/g3doc/cmdline_reference.md#transformation-flags). The recommended way of invoking this tool is by simply adding the `--post_training_quantize` flag to your original tflite_convert invocation. For diff --git a/tensorflow/contrib/lite/tools/optimize/quantize_weights.cc b/tensorflow/lite/tools/optimize/quantize_weights.cc similarity index 94% rename from tensorflow/contrib/lite/tools/optimize/quantize_weights.cc rename to tensorflow/lite/tools/optimize/quantize_weights.cc index d02d78bf53a145f6ab9cd61cecb4f8be391a31a6..a13774f7130b932a65f162d4b54bfe5325475ed5 100644 --- a/tensorflow/contrib/lite/tools/optimize/quantize_weights.cc +++ b/tensorflow/lite/tools/optimize/quantize_weights.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/optimize/quantize_weights.h" +#include "tensorflow/lite/tools/optimize/quantize_weights.h" #include #include @@ -21,10 +21,10 @@ limitations under the License. #include "flatbuffers/flexbuffers.h" #include "absl/memory/memory.h" -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/kernels/internal/tensor_utils.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/kernels/internal/tensor_utils.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/schema/schema_generated.h" #include "tensorflow/core/platform/logging.h" namespace tflite { @@ -110,24 +110,24 @@ std::vector GetWeightInputIndices(const BuiltinOperator& op_code) { op_code == BuiltinOperator_EMBEDDING_LOOKUP) { return {1}; } else if (op_code == BuiltinOperator_SVDF) { - // https://www.tensorflow.org/code/tensorflow/contrib/lite/kernels/svdf.cc + // https://www.tensorflow.org/code/tensorflow/lite/kernels/svdf.cc return {1, 2}; } else if (op_code == BuiltinOperator_LSTM || op_code == BuiltinOperator_UNIDIRECTIONAL_SEQUENCE_LSTM) { - // https://www.tensorflow.org/code/tensorflow/contrib/lite/kernels/lstm.cc - // https://www.tensorflow.org/code/tensorflow/contrib/lite/kernels/unidirectional_sequence_lstm.cc + // https://www.tensorflow.org/code/tensorflow/lite/kernels/lstm.cc + // https://www.tensorflow.org/code/tensorflow/lite/kernels/unidirectional_sequence_lstm.cc return {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 16}; } else if (op_code == BuiltinOperator_RNN || op_code == BuiltinOperator_UNIDIRECTIONAL_SEQUENCE_RNN) { - // https://www.tensorflow.org/code/tensorflow/contrib/lite/kernels/basic_rnn.cc - // https://www.tensorflow.org/code/tensorflow/contrib/lite/kernels/unidirectional_sequence_rnn.cc + // https://www.tensorflow.org/code/tensorflow/lite/kernels/basic_rnn.cc + // https://www.tensorflow.org/code/tensorflow/lite/kernels/unidirectional_sequence_rnn.cc return {1, 2}; } else if (op_code == BuiltinOperator_BIDIRECTIONAL_SEQUENCE_LSTM) { - // https://www.tensorflow.org/code/tensorflow/contrib/lite/kernels/bidirectional_sequence_lstm.cc + // https://www.tensorflow.org/code/tensorflow/lite/kernels/bidirectional_sequence_lstm.cc return {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 33}; } else if (op_code == BuiltinOperator_BIDIRECTIONAL_SEQUENCE_RNN) { - // https://www.tensorflow.org/code/tensorflow/contrib/lite/kernels/bidirectional_sequence_rnn.cc + // https://www.tensorflow.org/code/tensorflow/lite/kernels/bidirectional_sequence_rnn.cc return {1, 2, 4, 5}; } return {}; diff --git a/tensorflow/contrib/lite/tools/optimize/quantize_weights.h b/tensorflow/lite/tools/optimize/quantize_weights.h similarity index 85% rename from tensorflow/contrib/lite/tools/optimize/quantize_weights.h rename to tensorflow/lite/tools/optimize/quantize_weights.h index 706f10b87b166c74d747031a982113fd258616da..c2c0b0ce83435dc423a62cea598e35ba45a0561f 100644 --- a/tensorflow/contrib/lite/tools/optimize/quantize_weights.h +++ b/tensorflow/lite/tools/optimize/quantize_weights.h @@ -12,14 +12,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_OPTIMIZE_QUANTIZE_WEIGHTS_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_OPTIMIZE_QUANTIZE_WEIGHTS_H_ +#ifndef TENSORFLOW_LITE_TOOLS_OPTIMIZE_QUANTIZE_WEIGHTS_H_ +#define TENSORFLOW_LITE_TOOLS_OPTIMIZE_QUANTIZE_WEIGHTS_H_ #include #include "flatbuffers/flexbuffers.h" -#include "tensorflow/contrib/lite/context.h" -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/context.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { namespace optimize { @@ -54,4 +54,4 @@ TfLiteStatus QuantizeWeights(flatbuffers::FlatBufferBuilder* builder, } // namespace optimize } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_OPTIMIZE_QUANTIZE_WEIGHTS_H_ +#endif // TENSORFLOW_LITE_TOOLS_OPTIMIZE_QUANTIZE_WEIGHTS_H_ diff --git a/tensorflow/contrib/lite/tools/optimize/quantize_weights_test.cc b/tensorflow/lite/tools/optimize/quantize_weights_test.cc similarity index 95% rename from tensorflow/contrib/lite/tools/optimize/quantize_weights_test.cc rename to tensorflow/lite/tools/optimize/quantize_weights_test.cc index 387b3471c2c4c59948113cd609941577607fa737..32725e5ee29c364d56754c08a2cb1084ef049fdb 100644 --- a/tensorflow/contrib/lite/tools/optimize/quantize_weights_test.cc +++ b/tensorflow/lite/tools/optimize/quantize_weights_test.cc @@ -12,15 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/optimize/quantize_weights.h" +#include "tensorflow/lite/tools/optimize/quantize_weights.h" #include #include "flatbuffers/flexbuffers.h" #include #include -#include "tensorflow/contrib/lite/model.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" +#include "tensorflow/lite/model.h" +#include "tensorflow/lite/schema/schema_generated.h" namespace tflite { namespace optimize { @@ -160,7 +160,7 @@ class QuantizeWeightsTest : public ::testing::Test { TEST_F(QuantizeWeightsTest, SimpleTestWithHybrid) { string model_path = - "third_party/tensorflow/contrib/lite/tools/optimize/testdata/" + "third_party/tensorflow/lite/tools/optimize/testdata/" "mobilenet_v1_0.25_128.tflite"; std::unique_ptr input_fb = FlatBufferModel::BuildFromFile(model_path.data()); @@ -177,7 +177,7 @@ TEST_F(QuantizeWeightsTest, SimpleTestWithHybrid) { TEST_F(QuantizeWeightsTest, SimpleTestWithoutHybrid) { string model_path = - "third_party/tensorflow/contrib/lite/tools/optimize/testdata/" + "third_party/tensorflow/lite/tools/optimize/testdata/" "mobilenet_v1_0.25_128.tflite"; std::unique_ptr input_fb = FlatBufferModel::BuildFromFile(model_path.data()); @@ -195,7 +195,7 @@ TEST_F(QuantizeWeightsTest, SimpleTestWithoutHybrid) { TEST_F(QuantizeWeightsTest, SimpleTestWithWeightsMinNumElements) { string model_path = - "third_party/tensorflow/contrib/lite/tools/optimize/testdata/" + "third_party/tensorflow/lite/tools/optimize/testdata/" "mobilenet_v1_0.25_128.tflite"; std::unique_ptr input_fb = FlatBufferModel::BuildFromFile(model_path.data()); diff --git a/tensorflow/contrib/lite/tools/verifier.cc b/tensorflow/lite/tools/verifier.cc similarity index 97% rename from tensorflow/contrib/lite/tools/verifier.cc rename to tensorflow/lite/tools/verifier.cc index 8d3a7a624265ca6f9933f36949fd6fdbb3c39c40..02d6e6b23cdd66c9dd87700e4be6bb2cfbee407f 100644 --- a/tensorflow/contrib/lite/tools/verifier.cc +++ b/tensorflow/lite/tools/verifier.cc @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/tools/verifier.h" +#include "tensorflow/lite/tools/verifier.h" #include -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/string_util.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/string_util.h" +#include "tensorflow/lite/version.h" namespace tflite { diff --git a/tensorflow/contrib/lite/tools/verifier.h b/tensorflow/lite/tools/verifier.h similarity index 87% rename from tensorflow/contrib/lite/tools/verifier.h rename to tensorflow/lite/tools/verifier.h index a596c650a0c2533b6ece3cc7c692d863c2d3f860..50b6432d4e3d82fa1e7e01096d84e6be6495ee01 100644 --- a/tensorflow/contrib/lite/tools/verifier.h +++ b/tensorflow/lite/tools/verifier.h @@ -13,13 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_TOOLS_VERIFIER_H_ -#define TENSORFLOW_CONTRIB_LITE_TOOLS_VERIFIER_H_ +#ifndef TENSORFLOW_LITE_TOOLS_VERIFIER_H_ +#define TENSORFLOW_LITE_TOOLS_VERIFIER_H_ #include -#include "tensorflow/contrib/lite/error_reporter.h" -#include "tensorflow/contrib/lite/model.h" +#include "tensorflow/lite/error_reporter.h" +#include "tensorflow/lite/model.h" namespace tflite { @@ -49,4 +49,4 @@ bool Verify(const void* buf, size_t len, const OpResolver& resolver, } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_TOOLS_VERIFIER_H_ +#endif // TENSORFLOW_LITE_TOOLS_VERIFIER_H_ diff --git a/tensorflow/contrib/lite/tools/verifier_test.cc b/tensorflow/lite/tools/verifier_test.cc similarity index 96% rename from tensorflow/contrib/lite/tools/verifier_test.cc rename to tensorflow/lite/tools/verifier_test.cc index ad7d59ecb41a0c81a6a4d8edae5fa6b4b5a7bede..98abafad927ae45cd7de428d0011e234f345dd6e 100644 --- a/tensorflow/contrib/lite/tools/verifier_test.cc +++ b/tensorflow/lite/tools/verifier_test.cc @@ -18,13 +18,13 @@ limitations under the License. #include "flatbuffers/flatbuffers.h" #include "flatbuffers/util.h" #include -#include "tensorflow/contrib/lite/allocation.h" -#include "tensorflow/contrib/lite/error_reporter.h" -#include "tensorflow/contrib/lite/op_resolver.h" -#include "tensorflow/contrib/lite/schema/schema_generated.h" -#include "tensorflow/contrib/lite/testing/util.h" -#include "tensorflow/contrib/lite/tools/verifier.h" -#include "tensorflow/contrib/lite/version.h" +#include "tensorflow/lite/allocation.h" +#include "tensorflow/lite/error_reporter.h" +#include "tensorflow/lite/op_resolver.h" +#include "tensorflow/lite/schema/schema_generated.h" +#include "tensorflow/lite/testing/util.h" +#include "tensorflow/lite/tools/verifier.h" +#include "tensorflow/lite/version.h" #include "tensorflow/core/framework/numeric_types.h" namespace tflite { diff --git a/tensorflow/contrib/lite/tools/visualize.py b/tensorflow/lite/tools/visualize.py similarity index 99% rename from tensorflow/contrib/lite/tools/visualize.py rename to tensorflow/lite/tools/visualize.py index bf8889aa2ab856289ca52a2728ffd3f7de29b69f..431da2ef08523f7b5413c28de8bbaed4f0e59206 100644 --- a/tensorflow/contrib/lite/tools/visualize.py +++ b/tensorflow/lite/tools/visualize.py @@ -31,7 +31,7 @@ import sys from tensorflow.python.platform import resource_loader # Schema to use for flatbuffers -_SCHEMA = "third_party/tensorflow/contrib/lite/schema/schema.fbs" +_SCHEMA = "third_party/tensorflow/lite/schema/schema.fbs" # TODO(angerson): fix later when rules are simplified.. _SCHEMA = resource_loader.get_path_to_datafile("../schema/schema.fbs") diff --git a/tensorflow/contrib/lite/tutorials/BUILD b/tensorflow/lite/tutorials/BUILD similarity index 100% rename from tensorflow/contrib/lite/tutorials/BUILD rename to tensorflow/lite/tutorials/BUILD diff --git a/tensorflow/contrib/lite/tutorials/dataset.py b/tensorflow/lite/tutorials/dataset.py similarity index 100% rename from tensorflow/contrib/lite/tutorials/dataset.py rename to tensorflow/lite/tutorials/dataset.py diff --git a/tensorflow/contrib/lite/tutorials/mnist_tflite.py b/tensorflow/lite/tutorials/mnist_tflite.py similarity index 95% rename from tensorflow/contrib/lite/tutorials/mnist_tflite.py rename to tensorflow/lite/tutorials/mnist_tflite.py index 7b8bf5b5dbc8462d859c189af16c461244bfc374..002365717fce9e98dad6bacaaff6cdc4e6f5280a 100644 --- a/tensorflow/contrib/lite/tutorials/mnist_tflite.py +++ b/tensorflow/lite/tutorials/mnist_tflite.py @@ -19,7 +19,7 @@ from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf # pylint: disable=g-bad-import-order -from tensorflow.contrib.lite.tutorials import dataset +from tensorflow.lite.tutorials import dataset flags = tf.app.flags flags.DEFINE_string('data_dir', '/tmp/data_dir', @@ -69,7 +69,7 @@ def run_eval(interpreter, input_image): def main(_): - interpreter = tf.contrib.lite.Interpreter(model_path=flags.model_file) + interpreter = tf.lite.Interpreter(model_path=flags.model_file) interpreter.allocate_tensors() num_correct, total = 0, 0 for input_data in test_image_generator(): diff --git a/tensorflow/contrib/lite/tutorials/post_training_quant.ipynb b/tensorflow/lite/tutorials/post_training_quant.ipynb similarity index 95% rename from tensorflow/contrib/lite/tutorials/post_training_quant.ipynb rename to tensorflow/lite/tutorials/post_training_quant.ipynb index 80cdb2f080ba51c28b8328bb1f524a807e1e04e9..3ff145d9ce9291ad4fbc2f49b423d78632019059 100644 --- a/tensorflow/contrib/lite/tutorials/post_training_quant.ipynb +++ b/tensorflow/lite/tutorials/post_training_quant.ipynb @@ -19,10 +19,10 @@ "source": [ "\u003ctable class=\"tfo-notebook-buttons\" align=\"left\"\u003e\n", " \u003ctd\u003e\n", - " \u003ca target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/tutorials/post_training_quant.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003eRun in Google Colab\u003c/a\u003e\n", + " \u003ca target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/tensorflow/blob/master/tensorflow/lite/tutorials/post_training_quant.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003eRun in Google Colab\u003c/a\u003e\n", " \u003c/td\u003e\n", " \u003ctd\u003e\n", - " \u003ca target=\"_blank\" href=\"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/tutorials/post_training_quant.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003eView source on GitHub\u003c/a\u003e\n", + " \u003ca target=\"_blank\" href=\"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/tutorials/post_training_quant.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003eView source on GitHub\u003c/a\u003e\n", " \u003c/td\u003e\n", "\u003c/table\u003e" ] @@ -252,7 +252,7 @@ "source": [ "import tensorflow as tf\n", "tf.enable_eager_execution()\n", - "converter = tf.contrib.lite.TocoConverter.from_saved_model(saved_model_dir)\n", + "converter = tf.lite.TocoConverter.from_saved_model(saved_model_dir)\n", "tflite_model = converter.convert()" ] }, @@ -386,7 +386,7 @@ "images, labels = tf.to_float(mnist_test[0])/255.0, mnist_test[1]\n", "\n", "# Note: If you change the batch size, then use \n", - "# `tf.contrib.lite.Interpreter.resize_tensor_input` to also change it for\n", + "# `tf.lite.Interpreter.resize_tensor_input` to also change it for\n", "# the interpreter.\n", "mnist_ds = tf.data.Dataset.from_tensor_slices((images, labels)).batch(1)" ] @@ -411,7 +411,7 @@ }, "outputs": [], "source": [ - "interpreter = tf.contrib.lite.Interpreter(model_path=str(tflite_model_file))\n", + "interpreter = tf.lite.Interpreter(model_path=str(tflite_model_file))\n", "interpreter.allocate_tensors()\n", "input_index = interpreter.get_input_details()[0][\"index\"]\n", "output_index = interpreter.get_output_details()[0][\"index\"]" @@ -428,7 +428,7 @@ "outputs": [], "source": [ "tf.logging.set_verbosity(tf.logging.DEBUG)\n", - "interpreter_quant = tf.contrib.lite.Interpreter(model_path=str(tflite_model_quant_file))" + "interpreter_quant = tf.lite.Interpreter(model_path=str(tflite_model_quant_file))" ] }, { @@ -592,7 +592,7 @@ "\n", "We now consider another example. Resnets with pre-activation layers (Resnet-v2) are widely used for vision applications.\n", " Pre-trained frozen graph for resnet-v2-101 is available at the\n", - " [Tensorflow Lite model repository](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/g3doc/models.md).\n", + " [Tensorflow Lite model repository](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/models.md).\n", "\n", "We can convert the frozen graph to a TFLite flatbuffer with quantization by:\n" ] @@ -648,7 +648,7 @@ "graph_def_file = pathlib.Path(archive_path).parent/\"resnet_v2_101_299_frozen.pb\"\n", "input_arrays = [\"input\"] \n", "output_arrays = [\"output\"]\n", - "converter = tf.contrib.lite.TocoConverter.from_frozen_graph(\n", + "converter = tf.lite.TocoConverter.from_frozen_graph(\n", " str(graph_def_file), input_arrays, output_arrays, input_shapes={\"input\":[1,299,299,3]})\n", "converter.post_training_quantize = True\n", "resnet_tflite_file = graph_def_file.parent/\"resnet_v2_101_quantized.tflite\"\n", @@ -678,7 +678,7 @@ "source": [ "\n", "The model size reduces from 171 MB to 43 MB.\n", - "The accuracy of this model on imagenet can be evaluated using the scripts provided for [TFLite accuracy measurement](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/tools/accuracy/ilsvrc).\n", + "The accuracy of this model on imagenet can be evaluated using the scripts provided for [TFLite accuracy measurement](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/tools/accuracy/ilsvrc).\n", "\n", "The optimized model top-1 accuracy is 76.8, the same as the floating point model." ] diff --git a/tensorflow/contrib/lite/util.cc b/tensorflow/lite/util.cc similarity index 97% rename from tensorflow/contrib/lite/util.cc rename to tensorflow/lite/util.cc index 6aa35b52277910aea7ad0ea8753c2bad095b1f1f..866e4ebb0aa83ac3a6167de69626d0556ec2a9c5 100644 --- a/tensorflow/contrib/lite/util.cc +++ b/tensorflow/lite/util.cc @@ -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 limitations under the License. ==============================================================================*/ -#include "tensorflow/contrib/lite/util.h" +#include "tensorflow/lite/util.h" #include diff --git a/tensorflow/contrib/lite/util.h b/tensorflow/lite/util.h similarity index 92% rename from tensorflow/contrib/lite/util.h rename to tensorflow/lite/util.h index 31292a6f8131f78f0939b4ebbcb46dfd9c3312df..64a5b52e2f982bb4f7c4802f9b5b79a6edc0325e 100644 --- a/tensorflow/contrib/lite/util.h +++ b/tensorflow/lite/util.h @@ -18,11 +18,11 @@ limitations under the License. // Flatbuffer vectors. These functions can't live in `context.h` since it's pure // C. -#ifndef TENSORFLOW_CONTRIB_LITE_UTIL_H_ -#define TENSORFLOW_CONTRIB_LITE_UTIL_H_ +#ifndef TENSORFLOW_LITE_UTIL_H_ +#define TENSORFLOW_LITE_UTIL_H_ #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" +#include "tensorflow/lite/c/c_api_internal.h" namespace tflite { @@ -54,4 +54,4 @@ size_t CombineHashes(std::initializer_list hashes); } // namespace tflite -#endif // TENSORFLOW_CONTRIB_LITE_UTIL_H_ +#endif // TENSORFLOW_LITE_UTIL_H_ diff --git a/tensorflow/contrib/lite/util_test.cc b/tensorflow/lite/util_test.cc similarity index 94% rename from tensorflow/contrib/lite/util_test.cc rename to tensorflow/lite/util_test.cc index 25f3aded7140ff1075a52d5d30e270ee049c7c88..606d24274770d2a778eda2a93aba4690f354009e 100644 --- a/tensorflow/contrib/lite/util_test.cc +++ b/tensorflow/lite/util_test.cc @@ -17,8 +17,8 @@ limitations under the License. #include #include -#include "tensorflow/contrib/lite/c/c_api_internal.h" -#include "tensorflow/contrib/lite/util.h" +#include "tensorflow/lite/c/c_api_internal.h" +#include "tensorflow/lite/util.h" namespace tflite { namespace { diff --git a/tensorflow/contrib/lite/version.h b/tensorflow/lite/version.h similarity index 87% rename from tensorflow/contrib/lite/version.h rename to tensorflow/lite/version.h index efd63f4006ae661c6fdbbaa81cb02fa8947271f3..639d5a336a179462bd7922ecdc4970d267b99b24 100644 --- a/tensorflow/contrib/lite/version.h +++ b/tensorflow/lite/version.h @@ -12,12 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#ifndef TENSORFLOW_CONTRIB_LITE_VERSION_H_ -#define TENSORFLOW_CONTRIB_LITE_VERSION_H_ +#ifndef TENSORFLOW_LITE_VERSION_H_ +#define TENSORFLOW_LITE_VERSION_H_ // The version number of the Schema. Ideally all changes will be backward // compatible. If that ever changes, we must ensure that version is the first // entry in the new tflite root so that we can see that version is not 1. #define TFLITE_SCHEMA_VERSION (3) -#endif // TENSORFLOW_CONTRIB_LITE_VERSION_H_ +#endif // TENSORFLOW_LITE_VERSION_H_ diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD index 82a0f33c873df810f518147323bdd74a9d7d5959..9aa74edf2190fc27ed1a140a8d362c86ba198338 100644 --- a/tensorflow/python/BUILD +++ b/tensorflow/python/BUILD @@ -7,10 +7,10 @@ visibility = [ "//engedu/ml/tf_from_scratch:__pkg__", "//tensorflow:internal", - "//tensorflow/contrib/lite/toco/python:__pkg__", + "//tensorflow/lite/toco/python:__pkg__", "//tensorflow_models:__subpackages__", # TODO(aselle): to pass open source test. - "//bazel_pip/tensorflow/contrib/lite/toco/python:__pkg__", + "//bazel_pip/tensorflow/lite/toco/python:__pkg__", ] package(default_visibility = visibility) @@ -58,7 +58,7 @@ py_library( "//tensorflow/compiler/aot/tests:__pkg__", # TODO(b/34059704): remove when fixed "//tensorflow/contrib/learn:__pkg__", # TODO(b/34059704): remove when fixed "//tensorflow/contrib/learn/python/learn/datasets:__pkg__", # TODO(b/34059704): remove when fixed - "//tensorflow/contrib/lite/toco/python:__pkg__", # TODO(b/34059704): remove when fixed + "//tensorflow/lite/toco/python:__pkg__", # TODO(b/34059704): remove when fixed "//tensorflow/python/debug:__pkg__", # TODO(b/34059704): remove when fixed "//tensorflow/python/tools:__pkg__", # TODO(b/34059704): remove when fixed "//tensorflow/tools/quantization:__pkg__", # TODO(b/34059704): remove when fixed @@ -136,8 +136,8 @@ py_library( ":util", ":weights_broadcast_ops", ":while_v2", - "//tensorflow/contrib/lite/python:lite", "//tensorflow/core:protos_all_py", + "//tensorflow/lite/python:lite", "//tensorflow/python/compat", "//tensorflow/python/data", "//tensorflow/python/distribute:estimator_training", diff --git a/tensorflow/python/tools/api/generator/api_gen.bzl b/tensorflow/python/tools/api/generator/api_gen.bzl index 168d37f44a517bf1f8fffb9f5bc4c001accfe8f5..2e5d875a58ae4af1fb164694f925383b0d952fc3 100644 --- a/tensorflow/python/tools/api/generator/api_gen.bzl +++ b/tensorflow/python/tools/api/generator/api_gen.bzl @@ -17,7 +17,7 @@ def gen_api_init_files( api_version = 2, compat_api_versions = [], compat_init_templates = [], - packages = ["tensorflow.python", "tensorflow.contrib.lite.python.lite"], + packages = ["tensorflow.python", "tensorflow.lite.python.lite"], package_deps = ["//tensorflow/python:no_contrib"], output_package = "tensorflow", output_dir = ""): diff --git a/tensorflow/python/tools/api/generator/output_init_files_test.py b/tensorflow/python/tools/api/generator/output_init_files_test.py index 1514b5fad223efa67f5d53dc22c1a3e3374ea1dd..ab154af9101e32ecacda276004b0e2c39ced0b83 100644 --- a/tensorflow/python/tools/api/generator/output_init_files_test.py +++ b/tensorflow/python/tools/api/generator/output_init_files_test.py @@ -23,7 +23,7 @@ import sys # available in sys.modules # pylint: disable=unused-import from tensorflow import python as _tf_for_api_traversal -from tensorflow.contrib.lite.python import lite as _tflite_for_api_traversal +from tensorflow.lite.python import lite as _tflite_for_api_traversal # pylint: enable=unused-import from tensorflow.python.platform import test from tensorflow.python.util import tf_decorator diff --git a/tensorflow/tools/api/golden/v1/tensorflow.lite.-interpreter.pbtxt b/tensorflow/tools/api/golden/v1/tensorflow.lite.-interpreter.pbtxt index 9a22ee1f879f65a18cc69a312fe9bbf255911b19..ec0d9522bca9e0a272cccb21c3acc814a7462923 100644 --- a/tensorflow/tools/api/golden/v1/tensorflow.lite.-interpreter.pbtxt +++ b/tensorflow/tools/api/golden/v1/tensorflow.lite.-interpreter.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.Interpreter" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member_method { name: "__init__" diff --git a/tensorflow/tools/api/golden/v1/tensorflow.lite.-op-hint.-op-hint-argument-tracker.pbtxt b/tensorflow/tools/api/golden/v1/tensorflow.lite.-op-hint.-op-hint-argument-tracker.pbtxt index 66bf5256f6bc92665a00397455b4b224847afeff..1fe179f6c1b64ebc2f7535719bc1598577ee7f03 100644 --- a/tensorflow/tools/api/golden/v1/tensorflow.lite.-op-hint.-op-hint-argument-tracker.pbtxt +++ b/tensorflow/tools/api/golden/v1/tensorflow.lite.-op-hint.-op-hint-argument-tracker.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.OpHint.OpHintArgumentTracker" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member_method { name: "__init__" diff --git a/tensorflow/tools/api/golden/v1/tensorflow.lite.-op-hint.pbtxt b/tensorflow/tools/api/golden/v1/tensorflow.lite.-op-hint.pbtxt index 8c8e55f6cfb5892db4dfc2c86a711d40fa4f79d8..66e692a5a379203cb491980802b7003072bfe76c 100644 --- a/tensorflow/tools/api/golden/v1/tensorflow.lite.-op-hint.pbtxt +++ b/tensorflow/tools/api/golden/v1/tensorflow.lite.-op-hint.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.OpHint" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member { name: "AGGREGATE_FIRST" diff --git a/tensorflow/tools/api/golden/v1/tensorflow.lite.-t-f-lite-converter.pbtxt b/tensorflow/tools/api/golden/v1/tensorflow.lite.-t-f-lite-converter.pbtxt index b695c6cdf60ee01fd8d758b863764a7a8b0c00ec..c955b1a04a4b8af701a57ba2468145590c1a4a16 100644 --- a/tensorflow/tools/api/golden/v1/tensorflow.lite.-t-f-lite-converter.pbtxt +++ b/tensorflow/tools/api/golden/v1/tensorflow.lite.-t-f-lite-converter.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.TFLiteConverter" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member_method { name: "__init__" diff --git a/tensorflow/tools/api/golden/v1/tensorflow.lite.-toco-converter.pbtxt b/tensorflow/tools/api/golden/v1/tensorflow.lite.-toco-converter.pbtxt index da46b3f031dba768f271471b0340f4717245826a..3ef90b8bc4646a2adfcbeca2258ff5aa7cbf8894 100644 --- a/tensorflow/tools/api/golden/v1/tensorflow.lite.-toco-converter.pbtxt +++ b/tensorflow/tools/api/golden/v1/tensorflow.lite.-toco-converter.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.TocoConverter" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member_method { name: "__init__" diff --git a/tensorflow/tools/api/golden/v2/tensorflow.lite.-interpreter.pbtxt b/tensorflow/tools/api/golden/v2/tensorflow.lite.-interpreter.pbtxt index 9a22ee1f879f65a18cc69a312fe9bbf255911b19..ec0d9522bca9e0a272cccb21c3acc814a7462923 100644 --- a/tensorflow/tools/api/golden/v2/tensorflow.lite.-interpreter.pbtxt +++ b/tensorflow/tools/api/golden/v2/tensorflow.lite.-interpreter.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.Interpreter" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member_method { name: "__init__" diff --git a/tensorflow/tools/api/golden/v2/tensorflow.lite.-op-hint.-op-hint-argument-tracker.pbtxt b/tensorflow/tools/api/golden/v2/tensorflow.lite.-op-hint.-op-hint-argument-tracker.pbtxt index 66bf5256f6bc92665a00397455b4b224847afeff..1fe179f6c1b64ebc2f7535719bc1598577ee7f03 100644 --- a/tensorflow/tools/api/golden/v2/tensorflow.lite.-op-hint.-op-hint-argument-tracker.pbtxt +++ b/tensorflow/tools/api/golden/v2/tensorflow.lite.-op-hint.-op-hint-argument-tracker.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.OpHint.OpHintArgumentTracker" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member_method { name: "__init__" diff --git a/tensorflow/tools/api/golden/v2/tensorflow.lite.-op-hint.pbtxt b/tensorflow/tools/api/golden/v2/tensorflow.lite.-op-hint.pbtxt index 8c8e55f6cfb5892db4dfc2c86a711d40fa4f79d8..66e692a5a379203cb491980802b7003072bfe76c 100644 --- a/tensorflow/tools/api/golden/v2/tensorflow.lite.-op-hint.pbtxt +++ b/tensorflow/tools/api/golden/v2/tensorflow.lite.-op-hint.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.OpHint" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member { name: "AGGREGATE_FIRST" diff --git a/tensorflow/tools/api/golden/v2/tensorflow.lite.-t-f-lite-converter.pbtxt b/tensorflow/tools/api/golden/v2/tensorflow.lite.-t-f-lite-converter.pbtxt index b695c6cdf60ee01fd8d758b863764a7a8b0c00ec..c955b1a04a4b8af701a57ba2468145590c1a4a16 100644 --- a/tensorflow/tools/api/golden/v2/tensorflow.lite.-t-f-lite-converter.pbtxt +++ b/tensorflow/tools/api/golden/v2/tensorflow.lite.-t-f-lite-converter.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.TFLiteConverter" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member_method { name: "__init__" diff --git a/tensorflow/tools/api/golden/v2/tensorflow.lite.-toco-converter.pbtxt b/tensorflow/tools/api/golden/v2/tensorflow.lite.-toco-converter.pbtxt index da46b3f031dba768f271471b0340f4717245826a..3ef90b8bc4646a2adfcbeca2258ff5aa7cbf8894 100644 --- a/tensorflow/tools/api/golden/v2/tensorflow.lite.-toco-converter.pbtxt +++ b/tensorflow/tools/api/golden/v2/tensorflow.lite.-toco-converter.pbtxt @@ -1,6 +1,6 @@ path: "tensorflow.lite.TocoConverter" tf_class { - is_instance: "" + is_instance: "" is_instance: "" member_method { name: "__init__" diff --git a/tensorflow/tools/api/lib/python_object_to_proto_visitor.py b/tensorflow/tools/api/lib/python_object_to_proto_visitor.py index 9593c42d03cfd88f6f7163f9e970ae3234f04924..70df38ba8b8c46a51640b14591b6437dea639450 100644 --- a/tensorflow/tools/api/lib/python_object_to_proto_visitor.py +++ b/tensorflow/tools/api/lib/python_object_to_proto_visitor.py @@ -51,9 +51,9 @@ if sys.version_info.major == 3: _NORMALIZE_TYPE[""] = "" _NORMALIZE_ISINSTANCE = { "": # pylint: disable=line-too-long + "'tensorflow.lite.python.op_hint.OpHint.OpHintArgumentTracker'>": # pylint: disable=line-too-long "", + "'tensorflow.lite.python.op_hint.OpHintArgumentTracker'>", "": # pylint: disable=line-too-long "