---
title: "sliceUpdateDataTensor(_:update:startsTensor:endsTensor:stridesTensor:startMask:endMask:squeezeMask:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/sliceupdatedatatensor(_:update:startstensor:endstensor:stridestensor:startmask:endmask:squeezemask:name:)"
---

# sliceUpdateDataTensor(_:update:startsTensor:endsTensor:stridesTensor:startMask:endMask:squeezeMask:name:)

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

## Declaration

```swift
func sliceUpdateDataTensor(_ dataTensor: MPSGraphTensor, update updateTensor: MPSGraphTensor, startsTensor: MPSGraphTensor, endsTensor: MPSGraphTensor, stridesTensor: MPSGraphTensor, startMask: UInt32, endMask: UInt32, squeezeMask: UInt32, 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.
- `startsTensor`: A Tensor that contains an array of numbers that specify the starting points for each dimension.
- `endsTensor`: A Tensor that contains an array of numbers that specify the ending points for each dimension.
- `stridesTensor`: A Tensor that contains an array of numbers that specify the strides for each dimension.
- `startMask`: A bitmask that indicates dimensions whose starts values the operation should ignore.
- `endMask`: A bitmask that indicates dimensions whose ends values the operation should ignore.
- `squeezeMask`: A bitmask that indicates dimensions the operation will squeeze out from the result.
- `name`: The name for the operation.

## Return Value

Return Value A valid MPSGraphTensor object
