docs.unity.cn
    Show / Hide Table of Contents

    Enum InferenceDevice

    Where to perform inference.

    Namespace: Unity.MLAgents.Policies
    Syntax
    public enum InferenceDevice : int

    Fields

    Name Description Value
    Burst

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

    CPU

    CPU inference. Corresponds to in WorkerFactory.Type.CSharp Barracuda. Burst is recommended instead; this is kept for legacy compatibility.

    Default

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

    GPU

    GPU inference. Corresponds to WorkerFactory.Type.ComputePrecompiled in Barracuda.

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Monday, November 8, 2021
    Terms of use