docs: document android xnnpack delegate - #207
Open
patrickkabwe wants to merge 1 commit into
Open
Conversation
mrousavy
requested changes
Sep 11, 2026
| * | ||
| * @param source The `.tflite` model in form of either a `require(..)` statement or a `{ url: string }`. | ||
| * @param delegates The delegates to use for computations. Uses the standard CPU delegate per default. The `core-ml` or `metal` delegates are GPU-accelerated, but don't work on every model. | ||
| * @param delegates The delegates to use for computations. Uses the standard CPU delegate per default. On Android, use `xnnpack` to opt into XNNPACK CPU acceleration. The `core-ml`, `metal`, `android-gpu`, and `nnapi` delegates are hardware-accelerated, but don't work on every model. |
Member
There was a problem hiding this comment.
This documentation is messy and all over the place - do we have proper documentation for each delegate in the delegate enum definition? Then this @param here could just say @param The delegates to use for computations. See {@linkcode Delegate}
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.
No description provided.