<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/transform/blob/v1.21.0/tensorflow_transform/mappers.py#L457-L486) |

Returns a column which is the input column scaled to have range \[0,1\].

    tft.scale_to_0_1(
        x: common_types.ConsistentTensorType,
        elementwise: bool = False,
        name: Optional[str] = None
    ) -> common_types.ConsistentTensorType

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Preprocessing data with TensorFlow Transform](https://www.tensorflow.org/tfx/tutorials/transform/census) - [Preprocess data with TensorFlow Transform](https://www.tensorflow.org/tfx/tutorials/transform/simple) - [](https://www.tensorflow.org/tfx/transform/get_started) |

<br />

<br />

<br />

| ## Args ||
|---|---|

<br />

*** ** * ** ***

x: A numeric `Tensor`, `SparseTensor`, or `RaggedTensor`.
elementwise: If true, scale each element of the tensor independently.
name: (Optional) A name for this operation.

<br />

<br />

<br />

| ## Returns ||
|---|---|

<br />

*** ** * ** ***

A `Tensor`, `SparseTensor`, or `RaggedTensor` containing the input column
scaled to
\[0, 1\]. If the analysis dataset is empty or contains a single distinct
value, then `x` is scaled using a sigmoid function.