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