Enum InferenceDevice
Where to perform inference.
Namespace: Unity.MLAgents.Policies
Syntax
public enum InferenceDevice
Fields
| Name | Description | Value |
|---|---|---|
| CPU | CPU inference. Corresponds to in WorkerFactory.Type.CSharp Barracuda. Burst is recommended instead; this is kept for legacy compatibility. |
0 |
| GPU | GPU inference. Corresponds to WorkerFactory.Type.ComputePrecompiled in Barracuda. |
1 |
| Burst | CPU inference using Burst. Corresponds to WorkerFactory.Type.CSharpBurst in Barracuda. |
2 |