Run a model
After you create a worker, use Execute
to run the model.
worker.Execute(inputTensor);
You can enable verbose mode when you create a worker. Sentis logs execution to the Console window when you run the model.
worker = WorkerFactory.CreateWorker(BackendType.GPUCompute, runtimeModel, verbose: true);
When you run a model for the first time in the Unity Editor, it might be slow because Sentis needs to compile code and shaders. Later runs are faster.
Refer to the Run a model
example in the sample scripts for an example.