<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCGraph/node(with:sources:disableUpdate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCGraph(im)nodeWithLayer:sources:disableUpdate:"
  },
  "title" : "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.

```
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

A result tensor.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)