---
title: "dequantize(_:scaleTensor:zeroPointTensor:dataType:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/dequantize(_:scaletensor:zeropointtensor:datatype:name:)"
---

# dequantize(_:scaleTensor:zeroPointTensor:dataType:name:)

Creates a dequantize operation and returns the result tensor.

## Declaration

```swift
func dequantize(_ tensor: MPSGraphTensor, scaleTensor: MPSGraphTensor, zeroPointTensor: MPSGraphTensor, dataType: MPSDataType, name: String?) -> MPSGraphTensor
```

## Parameters

- `tensor`: Input tensor to be dequantized.
- `scaleTensor`: The scale tensor with groups support.
- `zeroPointTensor`: The bias tensor with groups support.
- `dataType`: Float data type of the result tensor.
- `name`: The name for the operation.

## Return Value

Return Value A valid MPSGraphTensor array of datatype dataType.

## Discussion

Discussion Convert the i8, u8, i4 or u4 tensor to a float tensor by applying a scale and bias transform: result = scaleTensor(tensor - zeroPointTensor).
