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

# dequantize(_:scaleTensor:zeroPoint:dataType:axis:name:)

Creates Dequantize operation and returns the result tensor.

## Declaration

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

## Parameters

- `tensor`: Input tensor to be dequantized
- `scaleTensor`: Scale scalar or 1D Tensor parameter with size == tensor.shape[axis]
- `zeroPoint`: Bias scalar parameter (converted to dataType of tensor)
- `dataType`: Float data type of the result tensor.
- `axis`: Axis on which the scale 1D value is being broadcasted
- `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 = scaleTensor(tensor - zeroPoint)
