Configuration
class MLEdgeModel.Configuration
The Configuration
type provides the ability to customize how edge models are created and executed on the local device.
Creating the Model Configuration
The Configuration
defines a trivial constructor.
Specifying the Compute Target
The computeTarget
is used to specify the compute target that will be used to accelerate model predictions:
Compute Target
The ComputeTarget
enumeration is defined in the MLEdgeModel
class.
Specifying the Compute Device
On systems with multiple GPU's, the model data allows for specifying the preferred compute device for accelerating model predictions.
Set this field to IntPtr.Zero
to use the default compute device.
The computeDevice
is exposed as an opaque pointer to a platform-specific type:
On iOS and macOS, this pointer is an
id<MTLDevice>
.On Windows, this pointer is an
ID3D12Device
.
Last updated