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.

Types

class InferenceExceptionReports model validation, delegate selection, allocation, or invocation failures from the portable inference API.
class InferenceOptionsConfigures how a reusable InferenceSession is created.
class InferenceSessionReusable, native on-device session for a TensorFlow Lite model.
class ModelCacheDownloads a large model into app-private storage and exposes it as a file-backed ModelSource.
class ModelSourceDescribes where an InferenceSession should obtain a .tflite model.
class TensorImmutable named tensor passed to or returned from an inference session.
class TensorInfoImmutable metadata for one model input or output.
enum TensorTypeTensor element types supported by the portable LiteRT contract.