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.
-
ClassDescriptionReports model validation, delegate selection, allocation, or invocation failures from the portable inference API.Configures how a reusable
InferenceSessionis created.Execution targets understood by the portable inference API.Reusable, native on-device session for a TensorFlow Lite model.Downloads a large model into app-private storage and exposes it as a file-backedModelSource.Describes where anInferenceSessionshould obtain a.tflitemodel.Immutable named tensor passed to or returned from an inference session.Immutable metadata for one model input or output.Tensor element types supported by the portable LiteRT contract.