Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18248
Note: Links to docs will display an error until the docs builds have been completed.
|
This PR needs a
|
Co-authored-by: kirklandsign <107070759+kirklandsign@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds a new Android “skill” reference doc under .claude/skills/ to guide work on the Android bindings/JNI layer in extension/android/.
Changes:
- Introduces
.claude/skills/android/SKILL.mddescribing Android architecture, key files, API usage, build/testing flows, and troubleshooting notes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| - **HybridClass methods** (called from fbjni): use `throwExecutorchException(errorCode, details)` for errors. | ||
| - **Plain JNIEXPORT functions**: use `setExecutorchPendingException(env, code, details)` instead — defined in `jni_helper.h`. |
| DType dtype = t.dtype(); | ||
| ``` | ||
|
|
||
| Supported dtypes: `UINT8`, `INT8`, `INT32`, `INT64`, `FLOAT16`, `FLOAT32`, `FLOAT64`. |
| ### Backend selection (CMake flags in build script) | ||
| | Flag | Default | Backend | | ||
| |------|---------|---------| | ||
| | `EXECUTORCH_BUILD_XNNPACK` | ON (via preset) | XNNPACK CPU | | ||
| | `EXECUTORCH_BUILD_QNN` | ON if `QNN_SDK_ROOT` set | Qualcomm QNN | | ||
| | `EXECUTORCH_BUILD_VULKAN` | OFF | Vulkan GPU | | ||
| | `EXECUTORCH_BUILD_NEURON` | ON if `NEURON_BUFFER_ALLOCATOR_LIB` set | MediaTek Neuron | | ||
| | `EXECUTORCH_BUILD_EXTENSION_LLM` | ON | LLM runner (Llama) | | ||
| | `EXECUTORCH_BUILD_LLAMA_JNI` | ON | LLM + ASR JNI bindings | | ||
| | `EXECUTORCH_BUILD_EXTENSION_TRAINING` | ON | Training support | | ||
| | `EXECUTORCH_ANDROID_PROFILING` | OFF | ETDump profiling | | ||
|
|
Summary
Adds
.claude/skills/android/SKILL.md— a skills reference doc for the Android codebase, following the same format as existing skills (building, cortex-m, binary-size, etc.).Covers:
extension/android/(Java API, JNI layer, build configs)Module,Tensor,EValue,LlmModulewith code examplesthrowExecutorchExceptionvssetExecutorchPendingException, thread safety, symbol visibilityTest plan
Documentation-only change. Verified markdown renders correctly and all referenced file paths, class names, method signatures, and build flags match the current codebase.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.