CoreML.GetUsesCPUOnly
---------------------

Queries whether to use CPU only.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CoreML](component_CoreML.md) | [7.4](newinversion74.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "CoreML.GetUsesCPUOnly"; CoreMLRef ) 

**MBS**( **"CoreML.GetUsesCPUOnly";** /\* Queries whether to use CPU only. \*/  
**$CoreMLRef**) /\* The reference number to the model.e.g. $Model \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| CoreMLRef | The reference number to the model. | $Model |

### Result

Returns 1, 0 or error.

### Description

Queries whether to use CPU only.  
### See also

- [CoreML.SetUsesCPUOnly](CoreMLSetUsesCPUOnly.md)

This function is free to use.

Created 16th September 2017 , last changed 16th September 2017

  
[CoreML.Description](CoreMLDescription.md) - [CoreML.List](CoreMLList.md)

[HTML Version](CoreMLGetUsesCPUOnly.shtml)