Run a model
After you create a worker, call Schedule
to run the model.
worker.Schedule(inputTensor);
The first scheduling of a model within the Unity Editor may be slow as Sentis needs to compile code and shaders as well as allocating internal memory. Subsequent runs will be faster due to caching. Including a dummy run when starting the application is a good idea.
For an example, refer to the Run a model
sample in the sample scripts.