---
title: TemporalTransformer
framework: createmlcomponents
role: symbol
role_heading: Protocol
path: createmlcomponents/temporaltransformer
---

# TemporalTransformer

A transformer that takes an asynchronous input sequence of temporal features and produces an asynchronous output  sequence.

## Declaration

```swift
protocol TemporalTransformer<Input, Output>
```

## Overview

Overview A temporal transformer, unlike a regular transformer, can accumulate multiple inputs before producing an output. For example, an audio transformer can accumulate audio buffers until the desired length is reached before producing an output.

## Topics

### Applying and adapting

- [applied(to:eventHandler:)](createmlcomponents/temporaltransformer/applied(to:eventhandler:).md)
- [adaptedAsEstimator()](createmlcomponents/temporaltransformer/adaptedasestimator().md)
- [adaptedAsUpdatableEstimator()](createmlcomponents/temporaltransformer/adaptedasupdatableestimator().md)
- [Input](createmlcomponents/temporaltransformer/input.md)
- [Output](createmlcomponents/temporaltransformer/output.md)
- [OutputSequence](createmlcomponents/temporaltransformer/outputsequence.md)

### Appending

- [appending(_:)](createmlcomponents/temporaltransformer/appending(_:).md)

### Transforming and predicting

- [callAsFunction(_:eventHandler:)](createmlcomponents/temporaltransformer/callasfunction(_:eventhandler:).md)
- [callAsFunction(to:eventHandler:)](createmlcomponents/temporaltransformer/callasfunction(to:eventhandler:).md)
- [prediction(from:)](createmlcomponents/temporaltransformer/prediction(from:).md)

### Exporting

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

## Relationships

### Conforming Types

- [AudioFeaturePrint](createmlcomponents/audiofeatureprint.md)
- [ComposedTemporalTransformer](createmlcomponents/composedtemporaltransformer.md)
- [Downsampler](createmlcomponents/downsampler.md)
- [HumanBodyActionCounter](createmlcomponents/humanbodyactioncounter.md)
- [LinearTimeSeriesForecaster.Model](createmlcomponents/lineartimeseriesforecaster/model.md)
- [SlidingWindowTransformer](createmlcomponents/slidingwindowtransformer.md)
- [TemporalAdaptor](createmlcomponents/temporaladaptor.md)
- [TimeSeriesClassifier.Model](createmlcomponents/timeseriesclassifier/model.md)
- [TransformerToTemporalAdaptor](createmlcomponents/transformertotemporaladaptor.md)

## See Also

### Protocols

- [Transformer](createmlcomponents/transformer.md)
- [RandomTransformer](createmlcomponents/randomtransformer.md)
- [Estimator](createmlcomponents/estimator.md)
- [TemporalEstimator](createmlcomponents/temporalestimator.md)
- [SupervisedEstimator](createmlcomponents/supervisedestimator.md)
- [SupervisedTemporalEstimator](createmlcomponents/supervisedtemporalestimator.md)
- [UpdatableEstimator](createmlcomponents/updatableestimator.md)
- [UpdatableSupervisedEstimator](createmlcomponents/updatablesupervisedestimator.md)
- [UpdatableSupervisedTemporalEstimator](createmlcomponents/updatablesupervisedtemporalestimator.md)
- [UpdatableSupervisedTabularEstimator](createmlcomponents/updatablesupervisedtabularestimator.md)
- [UpdatableTemporalEstimator](createmlcomponents/updatabletemporalestimator.md)
- [UpdatableTabularEstimator](createmlcomponents/updatabletabularestimator.md)
