---
title: "resultTensors(for:)"
framework: ML Compute
role: symbol
role_heading: Instance Method
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcgraph/resulttensors(for:)"
---

# resultTensors(for:)

Gets the result tensors for a layer in the training graph.

## Declaration

```swift
func resultTensors(for layer: MLCLayer) -> [MLCTensor]
```

## Parameters

- `layer`: A layer in the training graph.

## Return Value

Return Value A list of result tensors.

## See Also

### Inspecting Graphs

- [sourceTensors(for:)](mlcompute/mlcgraph/sourcetensors(for:).md)
- [device](mlcompute/mlcgraph/device.md)
- [layers](mlcompute/mlcgraph/layers.md)
- [summarizedDOTDescription](mlcompute/mlcgraph/summarizeddotdescription.md)
