Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets whether to use CPU only.

Component Version macOS Windows Linux Server iOS SDK
CoreML 7.4 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "CoreML.SetUsesCPUOnly"; CoreMLRef; Value )   More


Parameter Description Example
CoreMLRef The reference number to the model. $Model
Value The new setting.
1 = CPU only
0 = CPU and GPU (Default)


Returns OK or error.


Sets whether to use CPU only.
Set to 1 to disable GPU and only do processing on CPU.
Pass 0 (default) to use both.

See also

This function is free to use.

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

CoreML.ResultImage - CoreML.Update