• Home
Name Date Size #Lines LOC

..--

TensorFlowLiteSwift/04-Jul-2025-545471

README.mdD04-Jul-20251.4 KiB3528

README.md

1# Generating docs for TensorFlowLiteSwift
2
3Documentation is generated via [Jazzy](https://github.com/realm/jazzy) (Googlers
4see cr/363774564 for more details).
5
6To browse the Swift reference documentation visit
7https://www.tensorflow.org/lite/api_docs/swift.
8
9This directory contains a dummy Xcode project for generating documentation for
10TensorFlowLiteSwift via Jazzy, an open-source tool that hooks into Xcode's
11build tooling to parse doc comments. Unfortunately, TensorFlowLiteSwift is not
12primarily developed via xcodebuild, so the docs build can potentially become
13decoupled from upstream TensorFlowLiteSwift development.
14
15Known issues:
16- Every new file added to TensorFlowLiteSwift's BUILD must also manually be
17  added to this Xcode project.
18- This project (and the resulting documentation) does not split types  by
19  module, so there's no way to tell from looking at the generated documentation
20  which modules must be included in order to access a specific type.
21- The TensorFlowLiteC dependency is included in binary form, contributing
22  significant bloat to the git repository since each binary contains unused
23  architecture slices.
24
25To generate documentation outside of Google, run jazzy as you would on any other
26Swift module:
27
28```
29jazzy \
30  --swift-build-tool xcodebuild \
31  --module "TensorFlowLiteSwift" \
32  --author "The TensorFlow Authors" \
33  --sdk iphoneos \
34```
35