MLContextOptions constructor
MLContextOptions({
- MLDeviceType? deviceType,
- MLPowerPreference? powerPreference,
Implementation
factory MLContextOptions(
{MLDeviceType? deviceType, MLPowerPreference? powerPreference}) =>
MLContextOptions._(
deviceType: deviceType?.value ?? MLDeviceType.cpu.value,
powerPreference:
powerPreference?.value ?? MLPowerPreference.valueDefault.value);