---
title: "node(with:sources:disableUpdate:)"
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/node(with:sources:disableupdate:)"
---

# node(with:sources:disableUpdate:)

Adds the layer, source tensors, and option to disable optimizer updates that you specify to the graph.

## Declaration

```swift
func node(with layer: MLCLayer, sources: [MLCTensor], disableUpdate: Bool) -> MLCTensor?
```

## Parameters

- `layer`: The layer.
- `sources`: An array that contains the source tensors.
- `disableUpdate`: A Boolean that indicates whether you choose to disable the optimizer updates for this layer.

## Return Value

Return Value A result tensor.

## See Also

### Adding Layers to Graphs

- [node(with:source:)](mlcompute/mlcgraph/node(with:source:).md)
- [node(with:sources:)](mlcompute/mlcgraph/node(with:sources:).md)
- [node(with:sources:lossLabels:)](mlcompute/mlcgraph/node(with:sources:losslabels:).md)
