Package com.codename1.ai.inference


package com.codename1.ai.inference

Reusable on-device inference sessions for .tflite models.

Android uses LiteRT. iOS uses TensorFlow Lite Objective-C and may select the Core ML delegate. The builder links the runtime only when an application references InferenceSession. Other targets expose the same API with an explicit unsupported fallback.

  • Class
    Description
    Failure while loading or executing a LiteRT model.
    LiteRT session configuration.
     
    Reusable LiteRT model session.
    Downloads large LiteRT models once and exposes the cached file as a ModelSource.
    A .tflite model supplied as bytes, a filesystem path, or an app resource.
    Named tensor value passed to or returned from an inference session.
    Immutable model input/output metadata.
    Tensor element types supported by the portable LiteRT contract.