File: README.chromium

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (64 lines) | stat: -rw-r--r-- 2,063 bytes parent folder | download
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
Name: TensorFlow Lite Support
Short Name: tflite-support
URL: https://github.com/tensorflow/tflite-support
Version: a1225b22c45137ed95d98564aac721060fe5515c
Revision: a1225b22c45137ed95d98564aac721060fe5515c
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.