File: README.chromium

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (65 lines) | stat: -rw-r--r-- 2,088 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Name: TensorFlow Lite Support
Short Name: tflite-support
URL: https://github.com/tensorflow/tflite-support
Version: a1225b22c45137ed95d98564aac721060fe5515c
Revision: a1225b22c45137ed95d98564aac721060fe5515c
Update Mechanism: Manual
Date: 2025-04-16
License: Apache-2.0
License File: LICENSE
Security Critical: Yes
Shipped: yes
CPEPrefix: unknown

Description:
TFLite Support is a toolkit that helps users to develop ML and deploy TFLite
models onto mobile devices.  It works cross-Platform and is supported on
Java, C++ (WIP), and Swift (WIP).

Third party dependencies:
- tflite
- libzip
- utf
- tensorflow-text

Local modifications with their associated descriptions are contained in the
patches/ subdirectory.

Update process:

1) First, update Chrome's copy from the main tflite support repository:
   ```
   pushd third_party/tflite_support/
   rm -rf src/
   git clone https://github.com/tensorflow/tflite-support/ src
   rm -rf src/.git/
   git add src
   popd
   git commit -m "Initial roll."
   ```
2) Apply the patches in patches/:
   ```
   git am --keep-cr third_party/tflite_support/patches/*
   ```
3) This works somewhat like a rebase, and conflicts may need to be resolved
   along the way.
4) If additional patches are needed, record each distinct patch as its own git
   commit. A reasonably-sized patch would be "delete component <X> which is not
   used in Chrome". A patch named "fix the build for Chrome" would probably be
   too generic and large.
5) Regenerate the patches/ subdirectory:
   ```
   git rm third_party/tflite_support/patches/*
   git format-patch HEAD -<number of changes> -o third_party/tflite_support/patches
   git add third_party/tflite_support/patches/*
   ```

Important: do not proceed to the next steps until all local patches have been
updated and applied!

6) Remove the testdata directory, which contains many large binary artifacts:
   ```
   git rm -r third_party/tflite_support/src/tensorflow_lite_support/cc/test/testdata
   ```
   This is not tracked as a patchfile, as `git format-patch` can generate very
   large diffs for this.