---
title: "init(graphObjects:)"
framework: ML Compute
role: symbol
role_heading: Initializer
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: "mlcompute/mlcinferencegraph/init(graphobjects:)"
---

# init(graphObjects:)

Creates an inference graph with the layers from the graph objects you specify.

## Declaration

```swift
convenience init(graphObjects: [MLCGraph])
```

## Parameters

- `graphObjects`: The graph objects whose layers you add to the inference graph.
