Crate objc2_core_ml

Source
Expand description

§Bindings to the CoreML framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

MLArrayBatchProviderMLArrayBatchProvider
A concrete convenience class conforming to MLBatchProvider.
MLCPUComputeDeviceMLCPUComputeDevice
Represents a CPU compute device.
MLComputePlanMLComputePlan
A class describing the plan for executing a model.
MLComputePlanCostMLComputePlanCost
A class representing the estimated cost of executing a layer/operation.
MLComputePlanDeviceUsageMLComputePlanDeviceUsage
The anticipated compute devices that would be used for executing a layer/operation.
MLComputeUnitsMLModelConfiguration
Apple’s documentation
MLDictionaryConstraintMLDictionaryConstraint
MLDictionaryConstraint
MLDictionaryFeatureProviderMLDictionaryFeatureProvider
A concrete convenience class conforming to MLFeatureProvider.
MLFeatureDescriptionMLFeatureDescription
Description of a feature
MLFeatureTypeMLFeatureType
Supported data type enumeration
MLFeatureValueMLFeatureValue
An immutable variant holding a data value of a supported MLFeatureType
MLGPUComputeDeviceMLGPUComputeDevice
Represents a GPU compute device.
MLImageConstraintMLImageConstraint
MLImageConstraint
MLImageSizeMLImageSize
Apple’s documentation
MLImageSizeConstraintMLImageSizeConstraint
Apple’s documentation
MLImageSizeConstraintTypeMLImageSizeConstraintType
Apple’s documentation
MLKeyMLKey
A class representing key used to store any value against
MLMetricKeyMLKey and MLMetricKey
A class to specify list of supported model update metrics.
MLModelMLModel
MLModel
MLModelAssetMLModelAsset
A compiled model asset.
MLModelCollectionDeprecatedMLModelCollection
MLModelCollection
MLModelCollectionEntryDeprecatedMLModelCollectionEntry
MLModelCollectionEntry Information about a model in a model collection.
MLModelConfigurationMLModelConfiguration
An object to hold options for loading a model.
MLModelDescriptionMLModelDescription
A description of a model containing input, output, and state feature descriptions, optionally outputted features with special meaning and metadata.
MLModelErrorMLModelError
MLModelError defines the set of MLModel related error codes.
MLModelStructureMLModelStructure
A class representing the structure of a model.
MLModelStructureNeuralNetworkMLModelStructureNeuralNetwork
A class representing the structure of a NeuralNetwork model.
MLModelStructureNeuralNetworkLayerMLModelStructureNeuralNetworkLayer
A class representing a layer in a NeuralNetwork.
MLModelStructurePipelineMLModelStructurePipeline
A class representing the structure of a Pipeline model.
MLModelStructureProgramMLModelStructureProgram
A class representing the structure of an ML Program model.
MLModelStructureProgramArgumentMLModelStructureProgramArgument
A class representing an argument in the Program.
MLModelStructureProgramBindingMLModelStructureProgramBinding
A class representing a binding in the Program
MLModelStructureProgramBlockMLModelStructureProgramBlock
A class representing a block in the Program.
MLModelStructureProgramFunctionMLModelStructureProgramFunction
A class representing a function in the Program.
MLModelStructureProgramNamedValueTypeMLModelStructureProgramNamedValueType
A class representing a named value type in a Program.
MLModelStructureProgramOperationMLModelStructureProgramOperation
A class representing an Operation in a Program.
MLModelStructureProgramValueMLModelStructureProgramValue
A class representing a constant value in the Program.
MLModelStructureProgramValueTypeMLModelStructureProgramValueType
A class representing the type of a value or a variable in the Program.
MLMultiArrayMLMultiArray
Use MLMultiArray to store a multi-dimensional value.
MLMultiArrayConstraintMLMultiArrayConstraint
Constraint describing expected MLMultiArray properties
MLMultiArrayDataTypeMLMultiArray
The data type of scalars in the multi-array.
MLMultiArrayShapeConstraintMLMultiArrayShapeConstraint
Apple’s documentation
MLMultiArrayShapeConstraintTypeMLMultiArrayShapeConstraintType
Apple’s documentation
MLNeuralEngineComputeDeviceMLNeuralEngineComputeDevice
Represents a NeuralEngine compute device for inference of machine learning models.
MLNumericConstraintMLNumericConstraint
Allows enforcement of constraints on the values of update parameters.
MLOptimizationHintsMLOptimizationHints
MLOptimizationHints
MLParameterDescriptionMLParameterDescription
Describes a model parameter along with a default value and any applicable constaint on the values.
MLParameterKeyMLKey and MLParameterKey
A class to specify list of supported model update parameters.
MLPredictionOptionsMLPredictionOptions
MLPredictionOptions
MLReshapeFrequencyHintMLReshapeFrequencyHint
The anticipated frequency of changing input shapes
MLSequenceMLSequence
An immutable container holding an ordered collection of feature values of the same type.
MLSequenceConstraintMLSequenceConstraint
Constraint describing expected MLSequence properties
MLSpecializationStrategyMLSpecializationStrategy
The optimization strategy for the model specialization.
MLStateMLState
Handle to the state buffers.
MLStateConstraintMLStateConstraint
Constraint of a state feature value.
MLTaskMLTask
Class that abstracts state transitions and basic task controls.
MLTaskStateMLTask
All possible states an MLTask can be in.
MLUpdateContextMLUpdateContext
Provides context for the update process when the progress or completion handlers are invoked.
MLUpdateProgressEventMLUpdateProgressEvent
Events on which update task is capable of invoking progress handler.
MLUpdateProgressHandlersMLUpdateProgressHandlers
Allows applications to register for progress and completion handlers.
MLUpdateTaskMLTask and MLUpdateTask
Main class for setting up and controlling a model update. It provides some utility class methods for performing an update synchronously as well as class constructors for configuring an update and give developers control for the execution of that update.

Statics§

MLFeatureValueImageOptionCropAndScaleMLFeatureValue_MLImageConversion
Key for VNImageCropAndScaleOption describing how to crop and scale the image (or region of interest) to the desired size
MLFeatureValueImageOptionCropRectMLFeatureValue_MLImageConversion
Key for CGRect describing a crop region of interest of image source in normalized coordinates
MLModelAuthorKeyMLModelMetadataKeys
The author of this model
MLModelCollectionDidChangeNotificationMLModelCollection
Notification posted when the model collection has changed.
MLModelCreatorDefinedKeyMLModelMetadataKeys
Any additional pertinent information specified by the model creator
MLModelDescriptionKeyMLModelMetadataKeys
A short description of what the model does and/or its purpose
MLModelErrorDomainMLModelError
Apple’s documentation
MLModelLicenseKeyMLModelMetadataKeys
License information for the model
MLModelVersionStringKeyMLModelMetadataKeys
A version number encoded as a string

Traits§

MLBatchProviderMLBatchProvider
Protocol for accessing a collection of feature providers
MLComputeDeviceProtocolMLComputeDeviceProtocol
Protocol for representing a compute device. The represented device is capable of running machine learning computations and other tasks like analysis and processing of images, sound, etc.
MLCustomLayerMLCustomLayer
Apple’s documentation
MLCustomModelMLCustomModel
Apple’s documentation
MLFeatureProviderMLFeatureProvider
Apple’s documentation
MLWritableMLWritable
Apple’s documentation

Functions§

MLAllComputeDevicesMLAllComputeDevices and MLComputeDeviceProtocol
Returns an array containing all compute devices.

Type Aliases§

MLFeatureValueImageOptionMLFeatureValue_MLImageConversion
Options keys passed into the MLFeatureValue construction for image types
MLModelMetadataKeyMLModelMetadataKeys
Keys to a dictionary that holds useful information about a model. All are optional with the aim of being helpful to a developer or user for descriptive purposes.