---
title: "export(to:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/temporaltransformer/export(to:)"
---

# export(to:)

Exports this temporal transformer as a CoreML model.

## Declaration

```swift
func export(to url: URL) throws
```

## Parameters

- `url`: The location to write the model into.

## Discussion

Discussion 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.

## See Also

### Exporting

- [export(to:metadata:)](createmlcomponents/temporaltransformer/export(to:metadata:).md)
