Automated sync from github.com/tensorflow/tensorflow (#2311) BUG=automated sync from upstream NO_CHECK_TFLITE_FILES=automated sync from upstream
diff --git a/tensorflow/lite/core/c/c_api_types.h b/tensorflow/lite/core/c/c_api_types.h index c1f0c56..268c0cc 100644 --- a/tensorflow/lite/core/c/c_api_types.h +++ b/tensorflow/lite/core/c/c_api_types.h
@@ -12,16 +12,24 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +// WARNING: Users of TensorFlow Lite should not include this file directly, but +// should instead include "third_party/tensorflow/lite/c/c_api_types.h". +// Only the TensorFlow Lite implementation itself should include this file +// directly. /// This file declares types used by the pure C inference API defined in /// c_api.h, some of which are also used in the C++ and C kernel and interpreter /// APIs. - -// WARNING: Users of TensorFlow Lite should not include this file directly, -// but should instead include -// "third_party/tensorflow/lite/c/c_api_types.h". -// Only the TensorFlow Lite implementation itself should include this -// file directly. +/// +// clang-format off +// NOLINTBEGIN(whitespace/line_length) +/// \note Users of TensorFlow Lite should use +/// +/// #include "tensorflow/lite/c/c_api_types.h" +/// +/// to access the APIs documented on this page. +// NOLINTEND(whitespace/line_length) +// clang-format on // IWYU pragma: private, include "third_party/tensorflow/lite/c/c_api_types.h" @@ -36,7 +44,7 @@ // clang-format off // NOLINTBEGIN(whitespace/line_length) -/** \defgroup c_api_types tensorflow/lite/c/c_api_types.h +/** \defgroup c_api_types lite/c/c_api_types.h * @{ */ // NOLINTEND(whitespace/line_length)
diff --git a/tensorflow/lite/core/c/common.h b/tensorflow/lite/core/c/common.h index 0ebba76..62ad3fc 100644 --- a/tensorflow/lite/core/c/common.h +++ b/tensorflow/lite/core/c/common.h
@@ -12,6 +12,10 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +// WARNING: Users of TensorFlow Lite should not include this file directly, but +// should instead include "third_party/tensorflow/lite/c/common.h". +// Only the TensorFlow Lite implementation itself should include this file +// directly. /// This file defines common C types and APIs for implementing operations, /// delegates and other constructs in TensorFlow Lite. The actual operations and @@ -32,12 +36,17 @@ /// /// NOTE: The order of values in these structs are "semi-ABI stable". New values /// should be added only to the end of structs and never reordered. +/// +// clang-format off +// NOLINTBEGIN(whitespace/line_length) +/// \note Users of TensorFlow Lite should use +/// +/// #include "tensorflow/lite/c/common.h" +/// +/// to access the APIs documented on this page. +// NOLINTEND(whitespace/line_length) +// clang-format on -// WARNING: Users of TensorFlow Lite should not include this file directly, -// but should instead include -// "third_party/tensorflow/lite/c/common.h". -// Only the TensorFlow Lite implementation itself should include this -// file directly. // IWYU pragma: private, include "third_party/tensorflow/lite/c/common.h" #ifndef TENSORFLOW_LITE_CORE_C_COMMON_H_ @@ -56,7 +65,7 @@ // clang-format off // NOLINTBEGIN(whitespace/line_length) -/** \defgroup common tensorflow/lite/c/common.h +/** \defgroup common lite/c/common.h * @{ */ // NOLINTEND(whitespace/line_length)