Class InferenceSession
java.lang.Object
com.codename1.ai.inference.InferenceSession
- All Implemented Interfaces:
AutoCloseable
Reusable LiteRT model session.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static booleanstatic AsyncResource<InferenceSession> open(ModelSource source, InferenceOptions options) voidresizeInput(String name, int[] shape)
-
Method Details
-
isSupported
public static boolean isSupported() -
open
-
getInputs
-
getOutputs
-
run
-
resizeInput
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-