djl

DJL Android

DJL Android allows you to run inference with Android devices. It has the following two modules:

Installation

You need to have Android SDK and Android NDK installed on your machine.

The minimum API level for DJL Android is 26.

In gradle, you can add the 5 modules in your dependencies:

dependencies {
    implementation platform("ai.djl:bom:0.27.0")

    implementation "ai.djl:api"
    implementation "ai.djl.android:core"
    runtimeOnly "ai.djl.pytorch:pytorch-engine"
    runtimeOnly "ai.djl.android:pytorch-native"
    runtimeOnly "ai.djl.android:onnxruntime"
}