:nosearch: .. _op_ai_onnx_Neg-1: Neg - version 1 =============== This page documents version **1** of operator **Neg**. See :doc:`Neg` for the latest version (since version 13). - **Domain**: ``ai.onnx`` - **Since version**: 1 Neg takes one input data (Tensor ) and produces one output data (Tensor ) where each element flipped sign, y = -x, is applied to the tensor elementwise. **Inputs** - **X** (*T*): Input tensor **Outputs** - **Y** (*T*): Output tensor **Type Constraints** - **T**: Constrain input and output types to float tensors. Allowed types: tensor(double), tensor(float), tensor(float16).