"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qtwebengine/src/3rdparty/chromium/third_party/tflite-support/patches/0001-bert-max-seq-len.patch" (8 Jun 2022, 1164 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 49cd597b3c1fbfef2e3772682aa98575654131ba Mon Sep 17 00:00:00 2001
    2 From: Sophie Chang <sophiechang@chromium.org>
    3 Date: Mon, 1 Mar 2021 19:33:21 +0000
    4 Subject: [PATCH] allow for more tokens
    5 
    6 ---
    7  .../cc/task/text/nlclassifier/bert_nl_classifier.h              | 2 +-
    8  1 file changed, 1 insertion(+), 1 deletion(-)
    9 
   10 diff --git a/third_party/tflite-support/src/tensorflow_lite_support/cc/task/text/nlclassifier/bert_nl_classifier.h b/third_party/tflite-support/src/tensorflow_lite_support/cc/task/text/nlclassifier/bert_nl_classifier.h
   11 index cd5c5a3ade03..e78085d98761 100644
   12 --- a/third_party/tflite-support/src/tensorflow_lite_support/cc/task/text/nlclassifier/bert_nl_classifier.h
   13 +++ b/third_party/tflite-support/src/tensorflow_lite_support/cc/task/text/nlclassifier/bert_nl_classifier.h
   14 @@ -52,7 +52,7 @@ class BertNLClassifier : public NLClassifier {
   15   public:
   16    using NLClassifier::NLClassifier;
   17    // Max number of tokens to pass to the model.
   18 -  static constexpr int kMaxSeqLen = 128;
   19 +  static constexpr int kMaxSeqLen = 512;
   20  
   21    // Factory function to create a BertNLClassifier from TFLite model with
   22    // metadata.
   23 -- 
   24 2.30.1.766.gb4fecdf3b7-goog
   25