Repository navigation
Add LiteRT CompiledModel snippets for the litert-runtime skill - #1336
Open
john-rocky wants to merge 4 commits into
Open
john-rocky wants to merge 4 commits into
john-rocky wants to merge 4 commits into
Conversation
Adds LiteRtRuntimeSkillSnippets.kt to the ai module with region-tagged snippets backing the developer.android.com litert-runtime Android agent skill: imports, the Classifier helper (CompiledModel, TensorBuffer reuse, warm-up, close order), on-disk CompiledModel.create(filePath, ...), UiState/MainViewModel with GPU-to-CPU fallback, MainScreen, and preprocess. Adds the LiteRT 2.3.0 litert and litert-gpu dependencies.
No region tags around the import statements and the two LiteRT dependency lines, as suggested in the review of android#1186.
|
Here is the summary of changes. You are about to add 5 region tags.
This comment is generated by snippet-bot.
|
This was referenced Nov 26, 2026
Author
|
@kkuan2011 @ksemenova @JolandaVerhoef, could one of you review this pull request and approve its waiting workflow runs? It takes over #1186. |
|
Thanks @john-rocky to help follow up this PR. I can revert this PR, once your new change is done. |
kkuan2011
approved these changes
Dec 1, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is #1186 rebased onto
main, with two changes:I reran the local instrumented test from the 2.3.0 run reported on #1186. All 23 tests passed with LiteRT 2.4.1 on the same Pixel 8a.