---
title: ComputeStream
framework: coreai
role: symbol
role_heading: Class
path: coreai/computestream
---

# ComputeStream

A stream of work to be run asynchronously.

## Declaration

```swift
final class ComputeStream
```

## Overview

Overview A compute stream is what is provided to encode(inputs:states:outputViews:to:) to encode the work onto the stream. Multiple inferences encoded to the same stream are serialized as needed based on the the values read/written.

## Topics

### Initializers

- [init()](coreai/computestream/init().md)
- [init(commandQueue:)](coreai/computestream/init(commandqueue:).md)

### Instance Methods

- [currentWorkCompleted()](coreai/computestream/currentworkcompleted().md)

## See Also

### Inference

- [InferenceFunction](coreai/inferencefunction.md)
- [InferenceFunctionDescriptor](coreai/inferencefunctiondescriptor.md)
- [InferenceValue](coreai/inferencevalue.md)
- [ImageDescriptor](coreai/imagedescriptor.md)
