---
title: "dequantize(_:scale:zeroPoint:dataType:name:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraph/dequantize(_:scale:zeropoint:datatype:name:)"
---

# dequantize(_:scale:zeroPoint:dataType:name:)

Creates Dequantize operation and returns the result tensor.

## Declaration

```swift
func dequantize(_ tensor: MPSGraphTensor, scale: Double, zeroPoint: Double, dataType: MPSDataType, name: String?) -> MPSGraphTensor
```

## Parameters

- `tensor`: Input tensor to be dequantized
- `scale`: Scale scalar parameter
- `zeroPoint`: Bias scalar parameter (converted to dataType of tensor)
- `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 or u8 tensor to a float tensor by applying a scale + bias transform: result = scale(tensor - zeroPoint)
