struct Options
Options for configuring the
Interpreter.final class Interpreter
struct Options
Interpreter.init(modelPath: String, options: Options?, delegates: [Delegate]?) throws
let delegates: [Delegate]?
Array of Delegates for the Interpreter to use to perform graph operations.var inputTensorCount: Int
Tensors associated with the model.let options: Options?
Interpreter.var outputTensorCount: Int
Tensors associated with the model.func allocateTensors() throws
Tensors based on their Tensor.Shapes.func copy(Data, toInputAt: Int) throws -> Tensor
Tensor at the given index.func input(at: Int) throws -> Tensor
Tensor at the given index.func invoke() throws
func output(at: Int) throws -> Tensor
Tensor at the given index.func resizeInput(at: Int, to: Tensor.Shape) throws
Tensor at the given index to the specified Tensor.Shape.