Platforms to show: All Mac Windows Linux Cross-Platform
MLModelConfigurationMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreML | MBS Mac64bit Plugin | 20.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Available in MacOS 10.14 or newer.
- 5 properties
- property allowLowPrecisionAccumulationOnGPU as Boolean
- property computeUnits as Integer
- property Handle as Integer
- property parameters as Dictionary
- property preferredMetalDevice as Integer
- 2 methods
- method Constructor
- method copy as MLModelConfigurationMBS
- shared method available as Boolean
- 3 constants
Compute Units
Constant | Value | Description |
---|---|---|
ComputeUnitsAll | 2 |
The option you choose to allow the model to use all compute units available, including the neural engine. |
ComputeUnitsCPUAndGPU | 1 |
The option you choose to allow the model to use both the CPU and GPU, but not the neural engine. |
ComputeUnitsCPUOnly | 0 |
The option you choose to limit the model to only use the CPU. |
This class has no sub classes.
Some methods using this class:
- MLModelMBS.modelWithContentsOfFile(file as FolderItem, configuration as MLModelConfigurationMBS, byref error as NSErrorMBS) as MLModelMBS
- MLModelMBS.modelWithContentsOfPath(Path as string, configuration as MLModelConfigurationMBS, byref error as NSErrorMBS) as MLModelMBS
- MLModelMBS.modelWithContentsOfURL(URL as string, configuration as MLModelConfigurationMBS, byref error as NSErrorMBS) as MLModelMBS
- MLUpdateTaskMBS.Constructor(file as FolderItem, trainingData as MLArrayBatchProviderMBS, configuration as MLModelConfigurationMBS, byref error as NSErrorMBS)
- MLUpdateTaskMBS.Constructor(file as FolderItem, trainingData as MLArrayBatchProviderMBS, configuration as MLModelConfigurationMBS, progressHandlers as MLUpdateProgressHandlersMBS, byref error as NSErrorMBS)
Some properties using for this class:
- MLModelMBS.configuration as MLModelConfigurationMBS
Some examples using this class:
Blog Entries
Release notes
- Version 20.0
- Added MLTaskMBS, MLBatchProviderMBS, MLParameterKeyMBS, MLUpdateTaskMBS, MLModelConfigurationMBS, MLArrayBatchProviderMBS, MLUpdateContextMBS, MLMetricKeyMBS, MLMultiArrayShapeConstraintMBS, MLUpdateProgressHandlersMBS, MLParameterDescriptionMBS, MLNumericConstraintMBS, MLKeyMBS, MLImageSizeMBS, MLImageSizeConstraintMBS, MLSequenceConstraintMBS, and MLSequenceMBS classes.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
MLMetricKeyMBS - MLModelDescriptionMBS