<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShadersGraph",
  "identifier" : "/documentation/MetalPerformanceShadersGraph/MPSGraph/sliceUpdateDataTensor(_:update:starts:ends:strides:name:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal Performance Shaders Graph",
      "MetalPerformanceShadersGraph"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSGraph(im)sliceUpdateDataTensor:updateTensor:starts:ends:strides:name:"
  },
  "title" : "sliceUpdateDataTensor(_:update:starts:ends:strides:name:)"
}
-->

# sliceUpdateDataTensor(_:update:starts:ends:strides:name:)

Creates a strided-slice update operation with zero masks and returns the result tensor.

```
func sliceUpdateDataTensor(_ dataTensor: MPSGraphTensor, update updateTensor: MPSGraphTensor, starts: [NSNumber], ends: [NSNumber], strides: [NSNumber], name: String?) -> MPSGraphTensor
```

## Parameters

`dataTensor`

The large tensor that will receive the update.

`updateTensor`

The tensor with the new values that will replace values in the dataTensor.

`starts`

An array of numbers that specify the starting points for each dimension.

`ends`

An array of numbers that specify the ending points for each dimension.

`strides`

An array of numbers that specify the strides for each dimension.

`name`

The name for the operation.

## Return Value

A valid MPSGraphTensor object

---

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)