# tfl.premade_lib.build_multi_unit_calibration_layers

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/lattice/blob/v2.1.1/tensorflow_lattice/python/premade_lib.py#L202-L288) |

Creates a mapping from feature names to calibration outputs.

#### View aliases


**Main aliases**

[`tfl.premade.premade_lib.build_multi_unit_calibration_layers`](https://www.tensorflow.org/lattice/api_docs/python/tfl/premade_lib/build_multi_unit_calibration_layers)

<br />

    tfl.premade_lib.build_multi_unit_calibration_layers(
        calibration_input_layer,
        calibration_output_units,
        model_config,
        layer_output_range,
        output_single_tensor,
        dtype
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `calibration_input_layer` | A mapping from feature name to [`keras.Input`](https://www.tensorflow.org/api_docs/python/tf/keras/Input). |
| `calibration_output_units` | A mapping from feature name to units. |
| `model_config` | Model configuration object describing model architecture. Should be one of the model configs in [`tfl.configs`](https://www.tensorflow.org/lattice/api_docs/python/tfl/configs). |
| `layer_output_range` | A [`tfl.premade_lib.LayerOutputRange`](https://www.tensorflow.org/lattice/api_docs/python/tfl/premade_lib/LayerOutputRange) enum. |
| `output_single_tensor` | If output for each feature should be a single tensor. |
| `dtype` | dtype |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A mapping from feature name to calibration output Tensors. ||

<br />