docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Run a model

    After you create a worker, use Execute to run the model.

    worker.Execute(inputTensor);
    

    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.

    Additional resources

    • Run a model a layer at a time
    • Understand models in Sentis
    • Create an engine to run a model
    • Profile a model
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)