preferred
TypeScriptget preferred(): MLComputeDeviceSwift declarationlet preferred: MLComputeDeviceThe compute device that the framework prefers to execute the layer/operation.
struct · iOS 17.4+ · SDK 27.1
struct DeviceUsageThe anticipated compute devices that would be used for executing a layer/operation.
get preferred(): MLComputeDeviceSwift declarationlet preferred: MLComputeDeviceThe compute device that the framework prefers to execute the layer/operation.
get supported(): Array<MLComputeDevice>Swift declarationlet supported: [MLComputeDevice]The compute devices that can execute the layer/operation.
No declarations were skipped in this snapshot.