Skip to content

docs: document android xnnpack delegate - #207

Open
patrickkabwe wants to merge 1 commit into
margelo:mainfrom
patrickkabwe:docs/android-xnnpack-delegate
Open

docs: document android xnnpack delegate#207
patrickkabwe wants to merge 1 commit into
margelo:mainfrom
patrickkabwe:docs/android-xnnpack-delegate

Conversation

@patrickkabwe

Copy link
Copy Markdown
Contributor

No description provided.

*
* @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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants