# tfl.conditional_pwl_calibration.default_keypoint_input_parameters

<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/conditional_pwl_calibration.py#L114-L147) |

Helper creating default `keypoint_input_parameters`.

    tfl.conditional_pwl_calibration.default_keypoint_input_parameters(
        num_keypoints: Optional[int] = None,
        keypoints: Optional[Sequence[float]] = None,
        units: int = 1
    ) -> Optional[tf.Tensor]

Primarily used for testing.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `num_keypoints` | number of keypoints. If provided, keypoints will be equally spaced. |
| `keypoints` | sequence of increasing keypoints. |
| `units` | number of parallel calibrations on one input. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor with a shape of `(1, units, input_param_size)` or `(1, units, input_param_size)`. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` if parsing failed. ||

<br />