---
title: "addInputs(_:)"
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/mlcinferencegraph/addinputs(_:)"
---

# addInputs(_:)

Adds the inputs you specify to the inference graph.

## Declaration

```swift
func addInputs(_ inputs: [String : MLCTensor]) -> Bool
```

## Parameters

- `inputs`: A dictionary that contains inputs.

## Return Value

Return Value true if the operation was successful.

## See Also

### Preparing Inference Graphs

- [addInputs(_:lossLabels:lossLabelWeights:)](mlcompute/mlcinferencegraph/addinputs(_:losslabels:losslabelweights:).md)
- [addOutputs(_:)](mlcompute/mlcinferencegraph/addoutputs(_:).md)
- [compile(options:device:)](mlcompute/mlcinferencegraph/compile(options:device:).md)
- [compile(options:device:inputTensors:inputTensorsData:)](mlcompute/mlcinferencegraph/compile(options:device:inputtensors:inputtensorsdata:).md)
- [link(with:)](mlcompute/mlcinferencegraph/link(with:).md)
- [MLCGraphCompilationOptions](mlcompute/mlcgraphcompilationoptions.md)
