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 Delegate
s for the Interpreter
to use to perform graph operations.var inputTensorCount: Int
Tensor
s associated with the model.let options: Options?
Interpreter
.var outputTensorCount: Int
Tensor
s associated with the model.func allocateTensors() throws
Tensor
s based on their Tensor.Shape
s.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
.