Automated sync from github.com/tensorflow/tensorflow (#2370) BUG=automated sync from upstream NO_CHECK_TFLITE_FILES=automated sync from upstream
diff --git a/tensorflow/lite/core/c/common.cc b/tensorflow/lite/core/c/common.cc index a2046fc..5430fe2 100644 --- a/tensorflow/lite/core/c/common.cc +++ b/tensorflow/lite/core/c/common.cc
@@ -384,6 +384,7 @@ TfLiteDelegate TfLiteDelegateCreate() { return TfLiteDelegate{}; } +// LINT.IfChange #ifndef TF_LITE_STATIC_MEMORY TfLiteOpaqueDelegate* TfLiteOpaqueDelegateCreate( const TfLiteOpaqueDelegateBuilder* opaque_delegate_builder) { @@ -419,6 +420,7 @@ return tflite_delegate->opaque_delegate_builder->data; } +// LINT.ThenChange(Google-internal path) // Returns a tensor data allocation strategy. TfLiteAllocationStrategy TfLiteTensorGetAllocationStrategy(
diff --git a/tensorflow/lite/core/c/common.h b/tensorflow/lite/core/c/common.h index ca29104..b2ceecb 100644 --- a/tensorflow/lite/core/c/common.h +++ b/tensorflow/lite/core/c/common.h
@@ -1393,6 +1393,7 @@ int64_t flags; } TfLiteOpaqueDelegateBuilder; +// LINT.IfChange #ifndef TF_LITE_STATIC_MEMORY /// Creates an opaque delegate and returns its address. The opaque delegate /// will behave according to the provided `opaque_delegate_builder`. The @@ -1426,6 +1427,7 @@ /// The data_ field of `delegate` will be returned if the /// `opaque_delegate_builder` field is null. void* TfLiteOpaqueDelegateGetData(const TfLiteOpaqueDelegate* delegate); +// LINT.ThenChange(Google-internal path) /// Returns a tensor data allocation strategy. TfLiteAllocationStrategy TfLiteTensorGetAllocationStrategy(