"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qtwebengine/src/3rdparty/chromium/third_party/tflite-support/patches/0001-no-absl-cord.patch" (8 Jun 2022, 1325 Bytes) of package /linux/misc/qt-everywhere-src-6.3.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 From 61fb20a08d2325d03759a5b9394c033901fc0a7f Mon Sep 17 00:00:00 2001
    2 From: Sophie Chang <sophiechang@chromium.org>
    3 Date: Wed, 3 Feb 2021 04:21:19 +0000
    4 Subject: [PATCH] do not use cord in tflite status payload
    5 
    6 ---
    7  .../tflite-support/src/tensorflow_lite_support/cc/common.cc    | 3 ---
    8  1 file changed, 3 deletions(-)
    9 
   10 diff --git a/third_party/tflite-support/src/tensorflow_lite_support/cc/common.cc b/third_party/tflite-support/src/tensorflow_lite_support/cc/common.cc
   11 index 47dd3bcc6581..ed373e96d555 100644
   12 --- a/third_party/tflite-support/src/tensorflow_lite_support/cc/common.cc
   13 +++ b/third_party/tflite-support/src/tensorflow_lite_support/cc/common.cc
   14 @@ -15,7 +15,6 @@ limitations under the License.
   15  
   16  #include "tensorflow_lite_support/cc/common.h"
   17  
   18 -#include "absl/strings/cord.h"
   19  #include "absl/strings/str_cat.h"
   20  
   21  namespace tflite {
   22 @@ -26,8 +25,6 @@ absl::Status CreateStatusWithPayload(absl::StatusCode canonical_code,
   23                                       TfLiteSupportStatus tfls_code) {
   24    // NOTE: Ignores `message` if the canonical code is ok.
   25    absl::Status status = absl::Status(canonical_code, message);
   26 -  // NOTE: Does nothing if the canonical code is ok.
   27 -  status.SetPayload(kTfLiteSupportPayload, absl::Cord(absl::StrCat(tfls_code)));
   28    return status;
   29  }
   30  
   31 -- 
   32 2.30.0.365.g02bc693789-goog
   33