<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/UpsampledAugmentationSequence",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents29UpsampledAugmentationSequenceV"
  },
  "title" : "UpsampledAugmentationSequence"
}
-->

# UpsampledAugmentationSequence

An async sequence of augmented elements.

```
struct UpsampledAugmentationSequence<Base, RandomTransformer, RandomNumberGenerator, Annotation> where Base : Collection, RandomTransformer : RandomTransformer, RandomNumberGenerator : RandomNumberGenerator, Base.Element == AnnotatedFeature<RandomTransformer.Input, Annotation>, RandomTransformer.Input == RandomTransformer.Output
```

## Topics

### Getting the transformer

[`let transformer: RandomTransformer`](/documentation/CreateMLComponents/UpsampledAugmentationSequence/transformer)

The transformation applied to each element.

### Creating an iterator

[`func makeAsyncIterator() -> UpsampledAugmentationSequence<Base, RandomTransformer, RandomNumberGenerator, Annotation>.AsyncIterator`](/documentation/CreateMLComponents/UpsampledAugmentationSequence/makeAsyncIterator())

Creates the asynchronous iterator that produces elements of this asynchronous sequence.

[`typealias Element`](/documentation/CreateMLComponents/UpsampledAugmentationSequence/Element)

The type of element produced by this asynchronous sequence.

### Default Implementations

[AsyncSequence Implementations](/documentation/CreateMLComponents/UpsampledAugmentationSequence/AsyncSequence-Implementations)

## Relationships

### Conforms To

[`AsyncSequence`](/documentation/Swift/AsyncSequence)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)