:nosearch: .. _op_ai_onnx_Clip-1: Clip - version 1 ================ This page documents version **1** of operator **Clip**. See :doc:`Clip` for the latest version (since version 13). - **Domain**: ``ai.onnx`` - **Since version**: 1 Clip operator limits the given input within an interval. The interval is specified with arguments 'min' and 'max'. They default to numeric_limits::lowest() and numeric_limits::max() respectively. **Inputs** - **input** (*T*): Input tensor whose elements to be clipped **Outputs** - **output** (*T*): Output tensor with clipped input elements **Attributes** - **consumed_inputs** (*int[]*): legacy optimization attribute. - **max** (*float*): Maximum value, above which element is replaced by max - **min** (*float*): Minimum value, under which element is replaced by min **Type Constraints** - **T**: Constrain input and output types to float tensors. Allowed types: tensor(double), tensor(float), tensor(float16).