Configuration
class MLEdgeModel.Configuration
Creating the Model Configuration
/// <summary>
/// Create a configuration
/// </summary>
Configuration ();Specifying the Compute Target
/// <summary>
/// Specify the compute target used for model predictions.
/// </summary>
ComputeTarget computeTarget { get; set; }Compute Target
/// <summary>
/// Compute target used for model predictions.
/// </summary>
enum ComputeTarget : int {
/// <summary>
/// Use the default compute target for the given platform.
/// </summary>
Default = 0,
/// <summary>
/// Use the CPU.
/// </summary>
CPU = 1 << 0,
/// <summary>
/// Use the GPU.
/// </summary>
GPU = 1 << 1,
/// <summary>
/// Use the neural processing unit.
/// </summary>
NPU = 1 << 2,
/// <summary>
/// Use all available compute targets including the CPU, GPU, and neural processing units.
/// </summary>
All = CPU | GPU | NPU,
}Specifying the Compute Device
Last updated