docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum InferenceDevice

    Where to perform inference.

    Namespace: Unity.MLAgents.Policies
    Assembly: Unity.ML-Agents.dll
    Syntax
    public enum InferenceDevice

    Fields

    Name Description
    Burst

    CPU inference using Burst. Corresponds to WorkerFactory.Type.CSharpBurst in Sentis.

    ComputeShader

    GPU inference with the Compute Shader backend. Corresponds to WorkerFactory.Type.ComputeShader in Sentis.

    Default

    Default inference. This is currently the same as Burst, but may change in the future.

    PixelShader

    GPU inference with the Pixel Shader backend. Corresponds to in WorkerFactory.Type.PixelShader Sentis. Burst is recommended instead; this is kept for legacy compatibility.

    In This Article
    Back to top
    Copyright © 2025 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)