Skip to content

Files

Latest commit

bebb86a · Apr 3, 2025

History

History

android

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 16, 2024
Mar 6, 2025
Nov 18, 2024
May 1, 2020
Mar 6, 2025
Aug 5, 2024
May 1, 2020
Apr 3, 2025
May 1, 2020
Aug 5, 2022
Nov 17, 2024

DJL Android

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

  • Core package: contains some Image processing toolkit for Android user using DJL
  • PyTorch Native: contains DJL PyTorch Android native package
  • ONNXRuntime: contains DJL ONNXRuntime Android package

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.32.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"
}