public     class
      InterpreterFactory
Factory for constructing InterpreterApi instances.
Deprecated; please use the InterpreterApi.create method instead.
Public Constructors
Public Methods
| InterpreterApi | 
create(File modelFile, InterpreterApi.Options options)
                
                   Constructs an  InterpreterApiinstance, using the specified model and options. | 
| InterpreterApi | 
create(ByteBuffer byteBuffer, InterpreterApi.Options options)
                
                   Constructs an  InterpreterApiinstance, using the specified model and options. | 
Inherited Methods
Public Constructors
public InterpreterFactory ()
Public Methods
public InterpreterApi create (File modelFile, InterpreterApi.Options options)
Constructs an InterpreterApi instance, using the specified model and options. The model
 will be loaded from a file.
Parameters
| modelFile | A file containing a pre-trained TF Lite model. | 
|---|---|
| options | A set of options for customizing interpreter behavior. | 
Throws
| IllegalArgumentException | if modelFiledoes not encode a valid TensorFlow Lite
     model. | 
|---|
public InterpreterApi create (ByteBuffer byteBuffer, InterpreterApi.Options options)
Constructs an InterpreterApi instance, using the specified model and options. The model
 will be read from a ByteBuffer.
Parameters
| byteBuffer | A pre-trained TF Lite model, in binary serialized form. The ByteBuffer should
     not be modified after the construction of an InterpreterApiinstance. TheByteBuffercan be either aMappedByteBufferthat memory-maps a model file, or a
     directByteBufferof nativeOrder() that contains the bytes content of a model. | 
|---|---|
| options | A set of options for customizing interpreter behavior. | 
Throws
| IllegalArgumentException | if byteBufferis not aMappedByteBuffernor a
     directByteBufferof nativeOrder. | 
|---|