One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

Transformer

protocol · iOS 16.0+ · SDK 27.1

protocol Transformer<Input, Output>

A transformer that takes an input and produces an output.

Members (2)

method · iOS 17.0+

export

Swift declaration
func export(to url: URL, metadata: ModelMetadata) throws

Exports this transformer as a CoreML model with userInfo. - Note: By default this method exports .mlpackage files. You can export a .mlmodel file by specifying that as the URL file extension. But if you specify .mlmodel and the transformer doesn't support it, this method will throw an error. - Parameters: - url: The location to write the model into. - metadata: Contextual user-provided information.

method · iOS 16.0+

export

Swift declaration
func export(to url: URL) throws

Exports this transformer as a CoreML model. - Note: By default this method exports .mlpackage files. You can export a .mlmodel file by specifying that as the URL file extension. But if you specify .mlmodel and the transformer doesn't support it, this method will throw an error. - Parameter url: The location to write the model into.

Skipped declarations

29 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Transformer.adaptedAsRandomTransformer()

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.appending(_:)

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.applied(to:eventHandler:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

Transformer.applied(to:eventHandler:)

This declaration needs Swift generic type arguments. (no canonical witness for Self.Input)

Transformer.prediction(from:eventHandler:)

This declaration needs Swift generic type arguments. (no canonical witness for Self.Input)

Transformer.callAsFunction(_:eventHandler:)

The iOS SDK compiler rejected this binding: cannot access associated type 'Input' from 'Transformer'; use a concrete type or generic parameter base instead

Transformer.callAsFunction(_:eventHandler:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.adaptedAsAnnotatedPredictionTransformer(annotationType:)

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.adaptedAsTemporal()

This protocol needs associated types that cannot yet cross the bridge.

Transformer.adaptedAsAnnotatedFeatureTransformer(annotationType:)

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.adaptedAsTemporal()

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.prediction(from:)

The iOS SDK compiler rejected this binding: cannot access associated type 'Input' from 'Transformer'; use a concrete type or generic parameter base instead

Transformer.prediction(from:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

Transformer.adaptedAsEstimator()

This protocol needs associated types that cannot yet cross the bridge.

Transformer.adaptedAsUpdatableEstimator()

This protocol needs associated types that cannot yet cross the bridge.

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

Transformer.appending(_:)

This declaration needs Swift generic type arguments. (no canonical witness for Other)

All CreateMLComponents types →